I am using the .net environment and this NI e xample...
http://zone.ni.com/devzone/cda/epd/p/id/3990
which is just a simple dll that outputs some numbers.
I get the following error
Attempting managed execution inside OS Loader lock. Do not attempt to
run managed code inside a DllMain or image initialization function
since doing so can cause the application to hang.
and it crashes! Any suggestions?