Issue 24753

Summary: macro crashes OOo
Product: udk Reporter: maison.godard
Component: codeAssignee: ab
Status: CLOSED DUPLICATE QA Contact: issues@udk <issues>
Severity: Trivial    
Priority: P2 CC: issues
Version: current   
Target Milestone: ---   
Hardware: PC   
OS: Windows XP   
Issue Type: DEFECT Latest Confirmation in: ---
Developer Difficulty: ---
Attachments:
Description Flags
Click the "Crash me" button none

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