View Single Post
  #1  
Old 23-04-2009, 11:28
vjCorel
Guest
 
Posts: n/a
Default BeginCommandGroup while debugging macro

Ok, I learnt the hard way that you must implement error trapping when using BeginCommandGroup or otherwise Corel Draw might crash.

Question now is what happens when the macro is being debugged. What happens if you hit a breakpoint between BeginCommandGroup and EndCommandGroup ? And what happens if at this point, on breakpoint, you cancel macro execution?

Lastly, in case debugging a macro with BeginCommandGroup is simply dangerous, how do you workaround? Do you use some kind of conditional compilation to disable BeginCommandGroup/EndCommandGroup when debugging?

P.S.: Sorry for the bunch of questions I just posted. I'm new to the forum (great forum!). And wasn't sure if a single post with all the subjects would have been better.
Reply With Quote