Article View: aus.computers.java
Article #404Re: Unloading DLL's
From: Paul Murray
Date: Tue, 05 Dec 2000 00:00
Date: Tue, 05 Dec 2000 00:00
28 lines
1956 bytes
1956 bytes
"AmC" <AndrewM@securbiz.com> wrote in message news:OTEW5.211$Vu1.4791@ozemail.com.au... > I'm more from the networking side of things, so forgive me if I'm not 100% > clear on this, but one of our programmers (they use JBase, a type of Java > environment) has asked if there is a way to force a DLL (that he is fairly > constantly modifying) out of memory so that it can be reloaded complete with > changes. > Does anyone have any ideas on how to do this without exiting the application > completely or without having to reboot the machine after every mod? You might be able to get away with it by making up a new classloader and loading the class with that. But getting the rest of the app to use the appropriate class might be a minor hassle. If the class in the DLL is used via an interface, you could make up a proxy. But this doesn't solve your real problem - which is making Windows unload the damn DLL. You might make it load the class fresh, but the class might still use the same DLL, so you haven't accomplished much. don't really know enough about JNI to help. Sorry! -------------------------------------------------------------- Repent! Quit your job! Slack off! http://www.users.bigpond.com/pmurray ICQ: 26066755
Technical Details
Message-ID:
<cM1X5.152304$e5.97588@newsfeeds.bigpond.com>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailReferences:
<OTEW5.211$Vu1.4791@ozemail.com.au>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 10d6db,548a17708bd03217 X-Google-Attributes: gid10d6db,public From: "Paul Murray" <pmurray@nospam.bigpond.com> Subject: Re: Unloading DLL's Date: 2000/12/05 Message-ID: <cM1X5.152304$e5.97588@newsfeeds.bigpond.com> X-Deja-AN: 701278158 References: <OTEW5.211$Vu1.4791@ozemail.com.au> X-Priority: 3 X-MimeOLE: Produced By Microsoft MimeOLE V5.00.3018.1300 X-Trace: newsfeeds.bigpond.com 976005256 203.54.250.29 (Tue, 05 Dec 2000 19:34:16 EST) Organization: Telstra BigPond Internet Services (http://www.bigpond.com) X-MSMail-Priority: Normal NNTP-Posting-Date: Tue, 05 Dec 2000 19:34:16 EST Newsgroups: aus.computers.java