V4RB 2.2 VPicture Revisted

Ruslan Zasukhin sunshine at public.kherson.ua
Fri Apr 28 10:48:36 CDT 2006


On 4/28/06 2:07 AM, "Bob Keeney" <bkeeney at everestkc.net> wrote:

Hi Bob,

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

Mistake is: you should specify not EVPictType.kUnknown, but some specific
type.
 
> 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.

Yes, we will check this crash


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