V4RB 2.2 VPicture Revisted
Bob Keeney
bkeeney at everestkc.net
Thu Apr 27 18:07:57 CDT 2006
Sorry I am very dense, but this is driving me crazy. I am storing a
picture using this code using API way:
if me.RecordExists(myID) then
me.RecID = myID
me.mPicture.WritePictureAs myPic, EVPictType.kUnknown, 100 //
<-HARD CRASH
me.UpdateRecord
me.Flush
end
I get a hard crash as soon as the WritePictureAs method is called. I
*know* 100% that myPic is valid picture because I can view it in RB
debugger.
Here's the crash log:
Thread 0 Crashed:
0 Kernel_Carbon_Final.shlb 0x059dbad4
Write__Q23fbl24FileIterator_Cached_BaseFPCcUl + 188
1 Kernel_Carbon_Final.shlb 0x05ab9b24
Write__Q23fbl15LogicalFile_ImpFPCcUl + 28
2 Kernel_Carbon_Final.shlb 0x05d18fd4
WriteRecord__Q23fbl11SegmentFileFPCcUlUl + 256
3 Kernel_Carbon_Final.shlb 0x05d20cac
WriteData__Q23fbl5VBlobFPCcUl + 336
4 Kernel_Carbon_Final.shlb 0x05d6e8c4
WritePictureAs__Q23fbl8VPictureFPP7PictureQ23fbl8PictTypeUsUl + 188
5 Plugin 0x05871b7c
Picture_WriteAs__FP16REALobjectStructP17REALpictureStructii + 232
6 MyApp.debug 0x007da090 VPicture.WritePictureAs%
o<VPicture>o<Picture>i4i4 + 112
The end user can pick any graphic file that can be displayed on the
Mac and put it into the database. What am I doing wrong and how do I
fix it?
Why the hard crash? Shouldn't the plugin fail gracefully and
generate VException rather than die a horrible death?
version 2.2 (client won't go to 2.3). RB 2006 r1. Mac OS X Tiger.
More information about the Valentina
mailing list