call_external won't release dll [message #12917] |
Fri, 11 September 1998 00:00 |
hdsfkj
Messages: 12 Registered: March 1998
|
Junior Member |
|
|
Hi
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?
Thanks in advance....
Donald Green
dfg@mit.edu
; $Id: idlpvinterface.pro,v 1.0 9/11/98 $
pro idlpvinterface
; this program tests the functions defined for IDL interface
; to the Pixel Vision Camera and associated hardware
; CALL_EXTERNAL is used as the interface into the idlpvinterface.dll
PRINT, "This program tests CALL_EXTERNAL using idlpvinterface.DLL"
w = 1048 ;width of image
h = 1026 ; height of image
Image = LONARR(10) ;create empty array for image
Image[0] = 20
lResult =
CALL_EXTERNAL('d:\idlpvint\idlpvinterface.dll','CaptureImage ',Image,w,h)
PRINT, "CaptureImage complete."
end
|
|
|