[V4RB2] WritePictureAs Crash

Ruslan Zasukhin sunshine at public.kherson.ua
Sat Jul 16 09:27:25 CDT 2005


On 7/16/05 2:43 AM, "Bob Keeney" <bkeeney at everestkc.net> wrote:

> I have the following code using 2.05 fc2:
> value is a picture object
> 
> 
>      if cur.FirstRecord = false then
>        'add it
>        me.SetBlank
>        me.mStylePtr.Value = id
>        me.mSetting.value = Setting
>        me.mPicture.WritePictureAs value, EVPictType.kMacPict, 90
> <<<<<CRASH!
>        myID = me.AddRecord
>        me.Flush
>      End
> 
> 
> I get the following crash report:
> 
> 0   Kernel_Carbon_Final.shlb           0x0479ad2c
> Write__Q23fbl24FileIterator_Cached_BaseFPCcUl + 188
> 1   Kernel_Carbon_Final.shlb           0x0487ac60
> Write__Q23fbl15LogicalFile_ImpFPCcUl + 28
> 2   Kernel_Carbon_Final.shlb           0x04b3027c
> WriteRecord__Q23fbl11SegmentFileFPCcUlUl + 256
> 3   Kernel_Carbon_Final.shlb           0x04b37598
> WriteData__Q23fbl5VBlobFPCcUl + 292
> 4   Kernel_Carbon_Final.shlb           0x04b86244
> WritePictureAs__Q23fbl8VPictureFPP7PictureQ23fbl8PictTypeUsUl + 188
> 5   Plugin                                                 0x046da4c8
> Picture_WriteAs__FP16REALobjectStructP17REALpictureStructii + 232
> 6   Trial Smart.debug                          0x005b8300
> VPicture.WritePictureAs%%o<VPicture>o<Picture>i4i4 + 112
> 
> I've tried this a couple of different ways.  I've tried the old copy
> it to the clipboard and get it back as a true picture.  The original
> file format is a TIFF and I still crash if I set the EVPictType to
> TIFF.  Any ideas???

1) if our example do work ?

2) what segment size you have assign to picture field ?

-- 
Best regards,

Ruslan Zasukhin
VP Engineering and New Technology
Paradigma Software, Inc

Valentina - Joining Worlds of Information
http://www.paradigmasoft.com

[I feel the need: the need for speed]




More information about the Valentina mailing list