03-13-2013 06:18 AM
Yep,it's one of those little annoying thing that if one is glad to can get rid off 🙂 once again thank
03-14-2013 04:29 AM
@Bublina wrote:
It is good to know, that if you specify "Attach to process" in debugging project properities, you can attach LabView, so you do not need to turn it off and on.
Depending what you do in your DLL this can catastrophally fail and lock up Visual Studio and LabVIEW completely. But a nice thing if it works.
03-14-2013 07:54 PM
How can that happen, I only do this when the Code is not running and the DLL usually unloaded.
03-15-2013 04:53 AM
Well I'm not enitrely sure how it happens. Supposedly the Debugger has to inject itself into the process somehow and the way this happens is among many other things also by hooking the application message loop. At the same time the DLL needs to get loaded which also messes with various things in the Windows interna including message handling and also involves some BFGL (big f*cking global locks) which prevent race conditions in the kernel when loading modules.
There are several variables that may play a role here such as the Visual C and LabVIEW version, as I'm still mainly developing with older Visual C versions but also what the DLL itself interfaces with. When debugging DLLs that interfaced to COM (which in itself also f*cks immensely with the application message queue under the hood) it was almost always certain to lock up somewhere during attaching the debugger and/or loading of the DLL.