LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

non-debuggable thread caused a 'General protection' fault

Hello,

I am using LabWindows CVI Version 8.0.1 (356) on windows XP SP2
computer with .NET Framework 1.1

I have a program that used .NET assemblies thru a C wrapper done in
managed C++.
LabWindows app <-> C API wrapper (managed C++) <-> .NET API

When I try to debug my program, it crashes before entering the main
function.
The message is:
Unknown source position, thread id XXXXXX
A non-debuggable thread caused a 'General protection' fault at address
XXXXXX.

ps: in Visual Studio, there is an option "delay loaded" to load .NET
assemblies at the end. Do we have something similar in LabWindows?

Thank you

0 Kudos
Message 1 of 2
(3,405 Views)
No, there is no delay load in the CVI environment. If the managed C++ layer is a DLL, instead of implicitly loading this, you can try loading it explicitly in your program using LoadLibrary.
0 Kudos
Message 2 of 2
(3,396 Views)