Issue 24753 - macro crashes OOo
Summary: macro crashes OOo
Status: CLOSED DUPLICATE of issue 22558
Alias: None
Product: udk
Classification: Code
Component: code (show other issues)
Version: current
Hardware: PC Windows XP
: P2 Trivial (vote)
Target Milestone: ---
Assignee: ab
QA Contact: issues@udk
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-01-23 10:23 UTC by maison.godard
Modified: 2005-01-25 15:49 UTC (History)
1 user (show)

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


Attachments
Click the "Crash me" button (8.18 KB, application/octet-stream)
2004-01-28 07:45 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-23 10:23:56 UTC
Hi,

this macro line crashes OOo (leading to report)
lstChantier is a listBoxt
txtNomChantier is a textbox

dlgBenne.getControl("lstChantier").additem(dlgChantier.getControl
("txtNomChantier").text,true)

Yes this line is wrong as the second arg should be a numeric and not boolean
BUT
This error should be detected instead of crashing OOo

laurent
Comment 1 kay.ramme 2004-01-26 09:07:48 UTC
Andreas, please take care of this and target appropriately.
Comment 2 ab 2004-01-27 10:03:37 UTC
ab->laurent: Sorry, but the whole scenario is not clear to me. Are dlgBenne and 
dlgChantier different OOo (Basic) dialogs? Are they active when the crash occurs?
It's a little bit painfull to reproduce an issue if you have to make guesses
about the
complete scenario. Could you maybe provide a bugdoc as attachment that shows
the problem directly? That would be much easier....
Comment 3 maison.godard 2004-01-28 07:43:35 UTC
Laurent->ab:
Hi andreas

As requested, here is a sample (see attachment)
The problem comes that boolean true value is binded to a negative value (-1) 
that crashes the additem method

In fact, if i put any negative value instead of a true boolean value, it 
crashes OOo

HTH

Laurent
Comment 4 maison.godard 2004-01-28 07:45:42 UTC
Created attachment 12758 [details]
Click the "Crash me" button
Comment 5 maison.godard 2004-01-28 07:46:48 UTC
reassign to ab@openoffice.org
Comment 6 stephan.wunderlich 2004-01-28 17:12:57 UTC
SW: looks like issue 22558
Comment 7 ab 2004-02-03 11:43:57 UTC
I agree and set to duplicate of i22558, I will recheck it after integration of
cws mt802


*** This issue has been marked as a duplicate of 22558 ***
Comment 8 ab 2005-01-25 15:49:44 UTC
No crash in src680 m73 -> Closed