07-12-2011 01:11 AM
Hi,
i have encouter a problem during debugging external Dll. some of times i receive a error. unknown source position. library function error( return value == -12) out of memory.
however, after you pressing continue in popup windowns . program can continue without any error . so do someone recognize this error. ?
B.R
gerry
07-14-2011 10:28 AM
Its difficult to say much without more information, but when I have encountered this problem while debugging a dll, the program flow halts at the function returning the error. Default behavior in CVI 2010 environment I believe is to break on library errors. This can be verified/set in the Run->Break on->Library errors menu setting. Also important, both the calling application AND the .dll must have been built in debug mode. If that is true, and the "break on Library errors" mode is checked, when the program is executed, program flow will halt at the first occurrence of a library error, with a description in the Run-Time Errors box. If the error is thrown within the .dll, then you will see execution stop there.
Once this happens, you can right click on the offending function to open the function panel, and use the built in help to determine what -12 means.
If you need further help, please provide more information about the problem
Regard,
Ryk