comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » Re: call_external won't release dll
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Switch to threaded view of this topic Create a new topic Submit Reply
Re: call_external won't release dll [message #12908] Mon, 14 September 1998 00:00
hdsfkj is currently offline  hdsfkj
Messages: 12
Registered: March 1998
Junior Member
Thanks for the help guys....

I'll give the / a try....


Don.
dfg(at)mit(dot)edu


>
> (David Fanning)
>>
>
>
> Peter Mason
>
Re: call_external won't release dll [message #12915 is a reply to message #12908] Mon, 14 September 1998 00:00 Go to previous message
peterm is currently offline  peterm
Messages: 1
Registered: September 1998
Junior Member
davidf@dfanning.com (David Fanning) wrote:
> Don Green (dsfds@dsjhf.dfjk.jp) writes:
>
>> ...My problem is I haven't been
>> able to figure out how to get IDL to release
>> the dll after a run so that my compiler can write
>> a new version when I go back and make changes to the dll.
>> I end up being forced to close the IDL development
>> environment to get it to release after a call to
>> call_external....
>
> No, I'm afraid there is nothing to be done but to
> exit IDL each time. Sorry. :-(

OK, so this a little silly, but here goes... A few months back, David Kastrup
discovered, to his delight, that if you use "/" instead of "\" in your DLL's
path-spec, IDL will reload the DLL *each time* it's called. Trouble is, you
can only get away with this about 50 times in an IDL session. I mean of
course that David was delighted to discover how to fix the problem of his
DLL's stopping working after about 50 calls, and I don't think that he was
impressed enough with this behaviour to explore it for a moment longer, e.g.,
to check things like whether IDL was using the latest instance it had just
loaded or some previous one.

So if you *really* can't stand restarting your IDL session each time you
update your DLL you might give this a try, for what it's worth. (There might
be all kinds of other problems with it, what with several instances of the
DLL knocking around.) Also this was some time back and might have been IDL
5.0x-specific.


Peter Mason

-----== Posted via Deja News, The Leader in Internet Discussion ==-----
http://www.dejanews.com/rg_mkgrp.xp Create Your Own Free Member Forum
Re: call_external won't release dll [message #12916 is a reply to message #12908] Fri, 11 September 1998 00:00 Go to previous message
davidf is currently offline  davidf
Messages: 2866
Registered: September 1996
Senior Member
Don Green (dsfds@dsjhf.dfjk.jp) writes:

> I'm new to IDL and I'm using 5.1 . I'm writing
> an IDL wrapper for a bunch of c functions to
> control some hardware. My problem is I haven't been
> able to figure out how to get IDL to release
> the dll after a run so that my compiler can write
> a new version when I go back and make changes to the dll.
> I end up being forced to close the IDL development
> environment to get it to release after a call to
> call_external. Here is my IDL code below, is there some kind
> of 'dllclose' call to release d:\idlpvint\idlpvinterface.dll?

No, I'm afraid there is nothing to be done but to
exit IDL each time. Sorry. :-(

David

----------------------------------------------------------
David Fanning, Ph.D.
Fanning Software Consulting
E-Mail: davidf@dfanning.com
Phone: 970-221-0438, Toll-Free Book Orders: 1-888-461-0155
Coyote's Guide to IDL Programming: http://www.dfanning.com/
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Polyfill with pattern?
Next Topic: Re: WIN NT/95 DEVICE, DECOMPOSED=0

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Wed Oct 08 11:53:54 PDT 2025

Total time taken to generate the page: 0.00676 seconds