05-29-2007 11:01 AM
05-29-2007 11:32 AM
If you unload all VIs that call the DLL, then the DLL should unload. If it does not, either VI did not really unload or the DLL itself may be doing something to remain in memory. When DLLs start their own threads, it can be quite difficult to correctly stop those threads on Windows. Normally the first signal a DLL gets that it is being unloaded is the process detach call from the system. The problem is you cannot stop other threads from this call because of OS resources but you must make sure all your threads are done before this call returns. Many DLLs resort to making sure they never unload to avoid these issues.
05-29-2007 12:10 PM
05-29-2007 01:09 PM
05-30-2007 04:40 AM
05-31-2007 12:13 PM
Wiebe,
"Only problem is that you can't call a pointer to a function in native LabVIEW." ... This will be a problem for me. There are pointers in my dll call function.
I load the zip file "from http://forums.ni.com/ni/board/message?board.id=170&message.id=39381&view=by_date_ascending&page=1"
Using user32.dll, I receive error message while calling store address sub-vi (call calldlldll.dll). Using LVlibrary.dll gives error earlier. ......... regardless, thanks alot for the expample.
--Julia
06-01-2007 04:10 AM
06-01-2007 10:30 AM
06-01-2007 01:53 PM
Hello, Trey,
I have seen the same suggestion from LV 8.2 help file. It did not work. I tried with the example in this link, it doesn't work either. ..... Running into error: Error 7 .... "empty path constant or null path constant " actually cause the error. Another word, LV doesn't like the empty path constant, at leave the version 8.2.1 I am using won't take it.
Question, did anyone you know tryed the sample and executed without error?
Thanks!
---Julia
06-01-2007 02:34 PM
Trey B,
This works!!!!!!!!!!!!!!!!
Thanks for sure.
Please ignore my last post.
--Julia