Issue 69604 - Macro crashes OOo 10% of time
Summary: Macro crashes OOo 10% of time
Status: CLOSED IRREPRODUCIBLE
Alias: None
Product: Writer
Classification: Application
Component: programming (show other issues)
Version: OOo 2.0.3
Hardware: All Windows XP
: P3 Trivial (vote)
Target Milestone: ---
Assignee: joerg.skottke
QA Contact: issues@sw
URL:
Keywords: needmoreinfo, oooqa
Depends on:
Blocks:
 
Reported: 2006-09-17 09:01 UTC by alandavidson
Modified: 2008-05-30 11:40 UTC (History)
3 users (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this issue.
Description alandavidson 2006-09-17 09:01:25 UTC
The following simple macro works 90% and crashes 10%. The macro simply applies
the "Text body" style from style list. If it crashed 100%, the fault is mine.
But if it only crashes 10%, then I think the fault is OOo.

sub TextBody
rem ----------------------------------------------------------------------
rem define variables
dim document   as object
dim dispatcher as object
rem ----------------------------------------------------------------------
rem get access to the document
document   = ThisComponent.CurrentController.Frame
dispatcher = createUnoService("com.sun.star.frame.DispatchHelper")

rem ----------------------------------------------------------------------
dim args1(1) as new com.sun.star.beans.PropertyValue
args1(0).Name = "Template"
args1(0).Value = "Text body"
args1(1).Name = "Family"
args1(1).Value = 2

dispatcher.executeDispatch(document, ".uno:StyleApply", "", 0, args1())


end sub
Comment 1 michael.ruess 2006-09-18 07:56:38 UTC
Reassigned to JSK.
Comment 2 kpalagin 2006-11-26 20:16:49 UTC
alandavidson,
can't reproduce with OO 2.0.4 on Win XP. Please provide sample document, that 
exposes the issue.
Comment 3 alandavidson 2006-11-30 10:36:40 UTC
Due to frequent crashes, I no longer use this macro. I use the style list instead.

As I mentioned, it only crashes 10% of the time, but I can never guarantee to
reproduce the crash on demand.

I'm starting to learn Star Basic, so hopefully I don't need the recorder (and
hence the dispatcher).

I suggest you close this issue.
Comment 4 paul.m.nz 2007-07-27 04:02:27 UTC
I've just tried macro on winxp, OOo2.2.1 and cannot reproduce crash (ran it
quite a few times). Will close issue - user can reopen if required.
Comment 5 joerg.skottke 2008-05-30 11:40:36 UTC
close