AlistairFrith

VBA Message "Can't enter break mode at this time"

Discussion created by AlistairFrith on Mar 22, 2011
Latest reply on Mar 25, 2011 by dhollebeek

I am repeatedly getting this message in my script, with options to "Continue", "End" and "Help" (I'll see what Help gives me... Ok, various reasons given but I don't think any of them apply). Any ideas why I might get this?

 

The code is within a 'ContextChanged' event handler that I set up in the Display.Open event. The handler calls some routines from a .NET DLL that give access to AF and I think it may be one of these calls that triggers the error. I have breakpoints at the start and end of the event handler and the end one is what prompts the message. If I remove it, I don't get the message (unless I am stepping through the code) but the event handler is detached from the event and I have to run the Display.Open code again.

 

I can obviously post the code if necessary but I don't have time right now. Let me know if it is needed.

 

 

 

Thanks,

 

--- Alistair.

Outcomes