[V4RB2] WritePictureAs Crash

Bob Keeney bkeeney at everestkc.net
Fri Jul 15 18:43:37 CDT 2005


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???

Thanks,
Bob Keeney


More information about the Valentina mailing list