LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

lvrt.dll crash in MFC

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?

0 Kudos
Message 1 of 3
(2,397 Views)

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?

0 Kudos
Message 2 of 3
(2,382 Views)

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.

0 Kudos
Message 3 of 3
(2,374 Views)