01-04-2008 06:36 AM
01-04-2008 07:23 AM
01-04-2008 08:33 AM - edited 01-04-2008 08:35 AM
01-07-2008 12:57 PM
Hi Karthik,
It seems that your executable is crashing due to a WinAPI dll, namely the NTDLL.dll. I have two knowledge base articles that discuss this behavior, and these may be good first steps to take. I am not quite sure how the call to the DLL is behaving there since it is in a library on the workstation. Is your workstation also the development computer or is it the computer that the executable is deployed to? Let me know if either of the two suggestions below work, and we can go from there.
"This error can also be caused when running a LabVIEW built executable. If the VI calls a WinAPI DLL function and uses the full path to the DLL in the Call Library Function Node, the LabVIEW Application Builder will create a copy of the DLL in the data
directory of the executable. Some DLLs such as WinAPI DLLs should only reside in one location, such as C:\WINDOWS\system32
, otherwise errors/crashes can occur when called. To prevent this, remove the DLL path in the Call Library Function Node when calling WinAPI DLLs."
LabVIEW Application Error: The instruction at address x referenced memory at address y. The memory c...
"Built executables only look in certain directories for a given function library. For any built executable, be sure to have your DLL installed in one of the following:
<windows>\system
(\winnt\system32 for NT systems)
Thus, you can install a DLL in any directory that you wish, but be sure that the respective directory is, at the least, listed in autoexec.bat as described above.
Note: If you are calling WinAPI DLL located in the system directory, you have two options:
data
directory when building the application.
data
directory. Your executable will now spend some time searching for the DLL every time you launch the executable. Fix this by adding the <WINDOWS>\SYSTEM32
folder to the Tools » Options... » Paths » VI Search Path of the executable. "My Stand-Alone Executable Cannot Find My DLL, Even Though I Have Specified the Path for the DLL