02-07-2012 12:47 AM
I am deveveloping a efficiency critical application using VC2005 and MFC. I need to call videomaster libs of Labview. All my code is C++ and mfc. I can compile and link the app. But I debug it, in the loading process, the app crash and report a error saying "VideoMaster needs Labvew run-time engine 8.2.1" and a "lvrt.dll" crash of error code 998. While, if I initiate the app with a win32 console framework. The app runs well. So I suspect that the crash is due to the MFC framework. But I do need the UI characters of MFC and relative support for legacy codes. What's wrong with it?
02-08-2012 11:50 AM
MFC does strange things sometimes...
Just an idea: Don't link to your LV DLL. Call your LV DLL function dynamically via LoadLibrary() / GetProcAddress() / FreeLibrary() instead. What happens?
02-09-2012 08:42 AM
I managed to solve this problem. All I have to do is writing a wrap dll library to call videomaster functions. Now everything seems well.
Thank you.