> I have a program which is bringing me some problems.Its a windows form
> application with use of threading.
[quoted text clipped - 9 lines]
> try to move a form, it's frustating !! and i dont know the way to detect with
> the debugger what is happening.
Here are some possible approaches:
- Try to launch the application without debugger, then attach the debugger to it
- Register VS as the just-in-time debugger (Tools | Options | Debugging |
Just-in-time - check "Managed" and "Native". The next time when the exception
is raised, the debugger will be started and attached to the process, and
you should be able to debug the problem. (When you see the just-in-time debugger
dialog, check "Manually choose the debugging engines" and select both
native and managed engines in the subsequent dialog).
- If none of the above helps, you can use tracing to debug this problem
Also, the problem looks like a race condition, so pay attention to proper
synchronization in your code.
Regards,
Oleg
[VC++ MVP http://www.debuginfo.com/]