Here's another OLE crash. It happens when an indexed property
(SubItems) has a gap (commented below). Although the crash
occurs inside the external COM and on a different method call (view change),
it does not happen in j504.
It happens in beta p, but was also in beta o.
 
F=: 0 : 0
pc f;
xywh 6 6 300 94;cc lv ocx:COMCTL.ListViewCtrl.1 rightmove bottommove;
xywh 6 104 34 11;cc tog button topmove bottommove;cn "Toggle";
pas 6 6;pcenter;
rem form end;
)
f_run=: 3 : 0
  wd F
  wd 'oleget lv base ListItems;oleid lv ListItems'
  wd 'oleget lv base ColumnHeaders;oleid lv ColumnHeaders'
  wd 'olemethod lv ColumnHeaders add ,, Name 50 0'
  wd 'olemethod lv ColumnHeaders add ,, Value 50 1'
  wd 'olemethod lv ColumnHeaders add ,, Type 50 2'
  wd 'olemethod lv ListItems add ,, one;oleid lv cur'
NB.   wd 'oleset lv cur subitems 1 *123'
  wd 'oleset lv cur subitems 2 *456'
  wd 'oleset lv base view 2'
  wd 'pshow;'
)
f_tog_button=: 3 : 0
  wd 'oleset lv base view 3'
)
f_close=: wd bind 'pclose'
f_run''


----- Original Message ----
From: Eric Iverson <[EMAIL PROTECTED]>
To: Beta forum <[email protected]>
Sent: Tuesday, July 11, 2006 10:02:56 PM
Subject: Re: [Jbeta] ole picture/object references


Thanks for the clean examples. The bug for both picture and object is 
fixed in the next beta.

----- Original Message ----- 
From: "Oleg Kobchenko" <[EMAIL PROTECTED]>
To: "Beta forum" <[email protected]>
Sent: Tuesday, July 11, 2006 5:15 PM
Subject: Re: [Jbeta] ole picture/object references


> Here's a script* for object error: works in j504, not in j601:
>
> tx3=: 3 : 0
>  wd 'pc xp'
>  wd 'cc x oleautomation:MSXML2.DOMDocument'
>  wd 'olemethod x base createElement *root'
>  wd 'olemethod x base appendChild !object:.x.temp'
>  smoutput wd 'oleget x base xml'
>  wd 'psel xp; pclose;'
> )
>   tx3''
> |domain error: wd
> |       wd'olemethod x base appendChild !object:.x.temp'
>   wd'qer'
> bad parameter : 0
>
> Should be:
>
> <root/>
>
> I will make next one with picture.
>
>
> ______________________
>   * Also with id instead of temp: same behavior
>
> tx4=: 3 : 0
>  wd 'pc xp'
>  wd 'cc x oleautomation:MSXML2.DOMDocument'
>  wd 'olemethod x base createElement *root'
>  wd 'oleid x root'
>  wd 'olemethod x base appendChild !object:.x.root'
>  smoutput wd 'oleget x base xml'
>  wd 'psel xp; pclose;'
> )
>
>
> ----- Original Message ----
> From: Eric Iverson <[EMAIL PROTECTED]>
> To: Beta forum <[email protected]>
> Sent: Tuesday, July 11, 2006 3:12:47 PM
> Subject: Re: [Jbeta] ole picture/object references
>
>
> There were lots of fiddly changes to OLE for J601 (mostly due to 
> UTF-8).
> This bug is likely due to those changes. It would help me if you could
> give the simplest script that demonstrates the bug using a dead 
> standard
> ole object that I will have on a default XP system.
>
> ----- Original Message ----- 
> From: "Oleg Kobchenko" <[EMAIL PROTECTED]>
> To: "Beta forum" <[email protected]>
> Sent: Tuesday, July 11, 2006 12:10 PM
> Subject: [Jbeta] ole picture/object references
>
>
>> In j601, ole picture/object references produce errors, while they 
>> work
>> in j504.
>>
>>   wd 'olemethod img listimages add ,, 
>> !picture:user\classes\ole\n.ico'
>> |domain error: wd
>> |       wd'olemethod '...
>>   wd'qer'
>> ole - Type mismatch : 0
>>
>> See more at
>> http://www.jsoftware.com/jwiki/System/Library/Bugs
>>
>> Are there any ole changes in j601?
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

Reply via email to