Hello,
I have a PointMonitor callback that I want to debug into.
Whenever the breakpoint in the callback method is hit (Editor_PointMonitor) Visual Studio breaks but does not go to source - instead it give me a message saying "Code Not Running - The current thread is not currentlly running or the call stack could not be obtained."
currentDoc.Editor.PointMonitor += Editor_PointMonitor; private void Editor_PointMonitor(object sender, PointMonitorEventArgs e) {
//breakpoint here int i = 1; i++; //some stuff }
If I remove the breakpoint from the callback I can debug the rest of the application. I'm usng VS 2013 but I've tried it with VS 2010 and it's the same.
Did anyone else have this issue? How did you solve it to actually do the callback debug?
Thank you.
Solved! Go to Solution.
Solved by AdrianSaf. Go to Solution.
Debugging point monitor events are difficult because most of the time you inadvertantly move the mouse while debugging which will probably invalidate your code
Found my answer here: http://through-the-interface.typepad.com/through_the_interface/2011/09/no-source-available-when-debu...
But disabling the fiber disables some of autocad's functionality (especially for AutoCAD Electrical).