07-20-2005 06:10 AM
07-20-2005 01:12 PM
Steffen -
Looking at our knowledge base, I do not see any reports of this type of error with TestStand or any other senario.
As a debug tool and not necessarily a final fix, is the problem reproducible if you add the MAX directory to your PATH environment variable?
One option to give us more details as to who and why this is failing to find the DLL is to profile the loaded DLLs using a third party tool like Dependency Walker 2.1 which can be downloaded from http://www.stevemiller.net/apps/
You can basically open the EXE that is reporting the DLL error and look at its dependencies. Then you can Select Profile>>Start Profiling and monitor the log windows to see what this may tell us when you can reproduce the error. Depending on the settings, another child window in Depends will be created for the Version Selector executable that TestStand may launch, so make sure that you look at the appropriate child window for the OI.
07-21-2005 05:24 AM
Hi Scott,
regarding your questions I can tell you the following:
1) I'm using a OI that was modified out of a simple OI shipped with TS. The development environment is CVI 7.1.
2) I attached the error message. Unfortunately it's in German because of German Win2K. But it says that the dll was not found in the listed directories.
3) The OI starts the sequence correctly but stops/hangs when it reaches the first step that uses DAQmx. The DAQmx functions are implemented in a CVI dll (dioclass.dll). I think that the error occurs when the TS Engine tries to load all necessary code modules because the error message pops up after the login screen of the TS Engine. I attach the section of the log window of dependency walker.
4) see #1 and #3 - there are no MAX or DAQ calls in the OI directly. Only my dioclass.dll which is called by TS steps uses DAQ.
I haven't tried to add MAX directory to PATH variable yet but I will do so soon. But I'm not sure if I can make a statement about it because the error is not really repeatable.
Regards
Steffen
07-21-2005 12:30 PM
Steffan -
Was the trace that you supplied from Depends for a senerio that failed to load the DLL? It looks like it found the DLL successfully.
07-22-2005 01:45 AM
07-22-2005 02:09 AM
07-22-2005 10:05 AM
Then try to turn off the following and try again:
I do not see how reinstalling MAX would necessarily help, but I have seen cases where it does.
07-25-2005 06:22 AM
Sorry Scott, I forgot to attach the jpg (happens from time to time...)
Unfortunately turning off the options you mentioned didn't make it possible to force the error to occur while profiling with Depends. I now have the situation that I can start the application directly without Depends and the error occurs and next time I start it with Depends and the error doesn't occur!
What I found out is, that the error never occurs the first time I start the application after having booted. In my TS sequence the last step is a Call Exe step to shutdown the system (shutdown.exe). When I abort this manually (call "shutdown -a" via dos prompt) and then close the OI, the error occurs when I then start the OI again. Is it possible that there is something left somewhere in memory that is not freed by the shutdown command or something like that?
Regards,
Steffen
07-25-2005 08:26 AM
Scott -
forget what I wrote about the shutdown command. Even if I skip the shutdown step and the sequence ends regularly the error occurs when I load the application a second time after having closed the OI.
It's kind of strange...
Regards
07-25-2005 09:05 AM