Issue 24895 - macro error freezes OOo
Summary: macro error freezes OOo
Status: CLOSED NOT_AN_OOO_ISSUE
Alias: None
Product: udk
Classification: Code
Component: code (show other issues)
Version: current
Hardware: PC Windows XP
: P3 Trivial (vote)
Target Milestone: AOO PleaseHelp
Assignee: ab
QA Contact: issues@udk
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-01-29 08:37 UTC by maison.godard
Modified: 2007-06-18 10:33 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Latest Confirmation in: ---
Developer Difficulty: ---


Attachments
test case (8.18 KB, application/octet-stream)
2004-01-29 08:39 UTC, maison.godard
no flags Details

Note You need to log in before you can comment on or make changes to this issue.
Description maison.godard 2004-01-29 08:37:53 UTC
Hi, 

i experience this problem

As i'm a script kiddy, my macros are not good the first time i write them
So when testing, macro engine complains :)
Here is a case where i must Kill OOo as nothing is enable anymore
(see attached file - main code at the end)

I have a dialog, i set enable=false, i call a sub, i set enable=true
The problem is that the sub doesn't exists (error comming from the macro 
developper). Then OOo complains !! ok but no more ways to access anything 
until kill OOo

Solution ?
Hard Code a "Magic Key" - CTRl+ALT+SHIFT+S - a rather complicated one - That 
stops all macros process
Would also be usable on infinite loops

<joke>
I agree that these cases shouldn't occur but who knows if the macro developper 
is tired or drunk ... :)
</joke>

Thanks 

Laurent

----------------------------
dim dlg

sub StartDialog
	Feuille=DialogLibraries.Standard.Dialog1
	dlg=CreateUnoDialog(Feuille)
	dlg.execute
	dlg.dispose
end sub

sub Test
	dlg.enable=false
	call DummySub()
	dlg.enable=true
end sub
Comment 1 maison.godard 2004-01-29 08:39:56 UTC
Created attachment 12786 [details]
test case
Comment 2 ab 2004-02-03 11:16:03 UTC
-> OOo 2.0
Comment 3 ab 2004-02-13 12:07:56 UTC
.
Comment 4 b.osi.ooo 2004-05-18 15:01:11 UTC
According to the roadmap of  OpenOffice.org 2.0
(http://tools.openoffice.org/releases/q-concept.html) this
issue has been scheduled for 3.0. 
Comment 5 maison.godard 2004-05-18 15:10:19 UTC
Hi  
 
OOo 3.0 is a rather long time to get 
Do you have any roadmap to see if this will be handled otherwise, i may 
directly set an OOo4.0 target 
Hope we'll get it in 2.x nevertheless 
 
Well, imho, this is an important feature to have. More than correcting this 
specifice freeze, macro developpers should have the ability *at any time* to 
break the execution of a macro (freeze, infinite loops aso ...) 
 
Laurent 
Comment 6 ab 2005-07-27 10:28:52 UTC
ab->laurentgodard:
I can't reproduce the problem any more in a src680 m106 product and not in 
a src680 m114 non-product either. In general I don't think that a "magic key"
to stop macros is necessary as the "stop macro" button in the toolbar yet 
exists. When a Basic (modal) dialog is active this button is inactive because
the dialog has the focus but this would be the same for the "magic key".

I don't think that this was a Basic related but a Window activation / focus rela-
ted problem. The Error Box could not be closed although it should have the
focus, so the Basic Dialog blocking the "stop macro" button could not be
closed either -> freeze. With such a bug in the windows / focus handling also
a "magic key" would fail.

So please have a look if you can still reproduce the problem. If not, I tend to
close this task. -> INVALID for now
Comment 7 maison.godard 2006-10-20 07:57:50 UTC
solved in #70598
Comment 8 kay.ramme 2007-06-18 10:33:51 UTC
This issue has been "RESOLVED" for quite a time, I assume I can close it ...