PC Review


Reply
Thread Tools Rate Thread

Any ideas "can't enter break mode at this time" error gone amok

 
 
ArielMalek
Guest
Posts: n/a
 
      12th Jul 2008
Hello,
I am pressing the metal to get a project out way past deadline on my
Excel 2003 VBA app. I have a routine to programmatically delete and
clear out some text filled ranges and exit but am having problems with
it so I tried to set some debug break points in the code to find the
problem but I get the above Visual Basic error message which didn't
happen before believe in this routine. And it happened earlier trying
to debug another routine which seemed inappropriate. I also tried to
use the debug.assert method but it was just ignored. Right or wrong it
seems this error message is happening too much without apparent
reason. The help on it reads as follows:

"Can't enter break mode at this time


Break mode is the state in which a program is still running, but its
activity is suspended. This error has the following cause and
solution:

You tried to enter break mode, for example, by pressing CTRL+BREAK
(Windows) or COMMAND+PERIOD (Macintosh), pressing the Break button on
the Standard toolbar or the Debug toolbar, or by executing a
breakpoint in the running code.
A change was made programmatically to the project using the
extensibility (add-in) object model. This prevents the program from
having execution suspended. You can continue running, or end
execution, but can't suspend execution. "

I'm not sure what extensibility object model might be involved, but I
was fairly certain I could get break points to work in the routine
before.
If anyone has any experience or suggestions, it would be much
appreciated as I need to get this demo out pronto. Thanks, God bless,
Van
 
Reply With Quote
 
 
 
 
Joel
Guest
Posts: n/a
 
      12th Jul 2008
It is normal for some code in VBA to produce the message "Can't enter break
mode at this time". It makes the code harder to debug. I sometimes add
msgbox(...) to the code to help debug these problems. I think debug.print
.... will also work.


"ArielMalek" wrote:

> Hello,
> I am pressing the metal to get a project out way past deadline on my
> Excel 2003 VBA app. I have a routine to programmatically delete and
> clear out some text filled ranges and exit but am having problems with
> it so I tried to set some debug break points in the code to find the
> problem but I get the above Visual Basic error message which didn't
> happen before believe in this routine. And it happened earlier trying
> to debug another routine which seemed inappropriate. I also tried to
> use the debug.assert method but it was just ignored. Right or wrong it
> seems this error message is happening too much without apparent
> reason. The help on it reads as follows:
>
> "Can't enter break mode at this time
>
>
> Break mode is the state in which a program is still running, but its
> activity is suspended. This error has the following cause and
> solution:
>
> You tried to enter break mode, for example, by pressing CTRL+BREAK
> (Windows) or COMMAND+PERIOD (Macintosh), pressing the Break button on
> the Standard toolbar or the Debug toolbar, or by executing a
> breakpoint in the running code.
> A change was made programmatically to the project using the
> extensibility (add-in) object model. This prevents the program from
> having execution suspended. You can continue running, or end
> execution, but can't suspend execution. "
>
> I'm not sure what extensibility object model might be involved, but I
> was fairly certain I could get break points to work in the routine
> before.
> If anyone has any experience or suggestions, it would be much
> appreciated as I need to get this demo out pronto. Thanks, God bless,
> Van
>

 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
"can't enter break mode" error Rocky Microsoft Excel Programming 4 27th Aug 2008 12:32 AM
"can't enter break mode at this time" message when adding a projectreference dbKemp Microsoft Excel Programming 0 30th Jan 2008 03:12 PM
"Can't enter break mode at this time" error coming up =?Utf-8?B?cm9iczMxMzE=?= Microsoft Excel Programming 5 3rd Aug 2007 09:10 AM
"Can't enter break mode at this time" Paul T. Microsoft Excel Programming 5 25th Aug 2006 10:57 PM
"Can't Enter Break Mode"? =?Utf-8?B?Q1dpbGxpcw==?= Microsoft Excel Misc 2 31st May 2006 09:17 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 01:53 PM.