06-12-2008 08:03 PM
06-13-2008 05:40 AM
@wewe1215 wrote:I have a probelm when I use the "tool/import shared library(.dll)" wizard to generate the API from C.The API works correctly when I complete the wizard, but after I exit labview and re-start labview to run the API again. The error 1097 code "......this might corrupted LABVIEW's memory.............."appears.The only solution now is to re-generate or update the wizard to generate the API.I try to find the answer inThe paragraph in above article shows..........................."LabVIEW does not crash until it is closed
The most likely problem is that the DLL function being called has corrupted the memory. If you pass arrays or strings to the DLL, the DLL function cannot dynamically resize the array. Writing beyond the last element of the array or string could corrupt the memory and this may not be obvious until LabVIEW is closed."............................But it doesn't match my case. Does someone have idea about this? I Attach my .h file for reference