Valentina Digest, Vol 31, Issue 22

Bob Keeney bkeeney at everestkc.net
Sun Jul 17 11:38:13 CDT 2005


On Jul 17, 2005, at 10:56 AM, valentina-request at lists.macserve.net  
wrote:

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

Yes, the example works.  The only difference would be that I am  
opening a tiff image as picture.

Segment size is 1024.
me.mPicture = me.CreatePictureField( "pPict", 1024)

I guess the part that disturbs me is the hard crash.  I would assume  
that if something wasn't set up properly it should return an error  
rather than crash.

Thanks for the help.
Bob K.



More information about the Valentina mailing list