‎07-21-2009 07:42 AM
Hallo everyone:
I just confront a terrible problem, i wrote a program which load existing DLL files to read and set parameters of several modules, after start, it works well at beginning, but one hour or more later(unregulated), the program stops automatically and the whole labview quit without any error. There must be some conflict or memory crash, but I can not locate the problem because of no error message.
Is there anyone with relative experience about this problem, it real kills.
Thanks in advance.
‎07-21-2009 08:26 AM
In the program of DLL, did you free up the memory every time after you close it?
I would suggest try to monitor the memory usage while runing the VI.
‎07-21-2009 08:36 AM
thanks so much for your reply, i do not know what happened within DLL program, it is 3th party application, i just load them repeatedly, no free up action, and it seems that Labview have no memory realease or control function, so i monitor the memory usage while running the VI, but everything looks fine, this crash occurs suddenly, shorlty and unregulately, the whole labview are shut down after crash, quit terrible.
do you know any solution to realease memory in Labview?
‎07-21-2009 09:11 AM
I don't think LV has open/close library functions and they are handled automatically. In your DLL library, are there open/close functions? If yes, be sure to call them. Otherwise, I would suggest call the DLL in other language and try to see if it is a LV problem or the DLL problem. Good luck.
‎07-21-2009 09:21 AM
right now, this crash happened again when i openning IE, i do not know what kind of conflict that is, sometime it crashes when i open Word, sometime IE, quite strange problem.
‎07-21-2009 09:25 AM - edited ‎07-21-2009 09:26 AM
Just a shot in the dark here:
You said it crashes when you open Word or IE. Those are both Microsoft applications. Maybe there is a conflict while running other Microsoft software, if they are also trying to read/write to the dll simultaneously?
‎07-21-2009 09:34 AM
thanks for comments, the strange thing is that, these DLL have no relation with Labview at all, they are used to communicate with 3th party's devices.
‎07-22-2009 07:58 AM
‎12-07-2010 02:59 AM
I had the same problem. DLL comes from supplier. DLL crashes when closing. Won´t bother usualy, because you shut down your C++ Host software anyway. But in my case, I don´t want to crash labview. There was no way to fix this.
I had to implement the whole functionality with LabVIEW primitves. Not funny!
‎12-07-2010 03:45 AM
some update. the reason of my dll crash problem was found, all outputs from Call Libary Function Node shall be wired, ohterwise they may occupy too much memory, which causes the crash after a certain time.