[V4RB] VPicture.SetPicture and RB 4.5.3

Ruslan Zasukhin sunshine at public.kherson.ua
Mon Mar 10 18:33:45 CST 2003


on 3/10/03 4:02 PM, Frank Bitterlich at bitterlich at gsco.de wrote:

> Hi,
> 
> I'm having a problem with a VPicture field in an app I'm writing. To me,
> it looks like the problems started when I upgraded from RB 4.5.2 to
> 4.5.3. Can anybody confirm?
> 
> Scenario: I'm putting picture file preview images into a VPicture field.
> 
> Obtaining and storing the preview image:
>  // omitted any error checkinng for this example
>  rf = myFile.OpenResourceFork
>  id = rf.ResourceID("PICT", 0)
>  pic = rf.GetPicture(id)
>  // at this point, "pic" contains a valid picture.
>  VPicture(myDatabase.Field("PREVIEW")).SetPicture(pic) // this crashes
> the RB IDE!
> 
> The funny thing is, this started crashing only when I started using a
> VDatabase I had created with RB 4.5.3; as long as I was using an old DB
> (created under 4.5.2, but using it under 4.5.3), it worked well.
> 
> I thought that maybe the picture I obtained had no bitmap (is this
> required for .SetPicture?), so I used a function from the Monkeybread
> Plugin, to create a bitmap. From then on, it doesn't crash any more, but
> when I later retrieve the picture, it is NIL.
> 
> Any ideas what's wrong here? Using V4RB 1.9.5. on MacOS 9.1 on a G4 Cube/450.

Hi Frank,

check V4RB example with pictures.

-- 
Best regards,
Ruslan Zasukhin      [ I feel the need...the need for speed ]
-------------------------------------------------------------
e-mail: ruslan at paradigmasoft.com
web: http://www.paradigmasoft.com

To subscribe to the Valentina mail list go to:
http://listserv.macserve.net/mailman/listinfo/valentina
-------------------------------------------------------------



More information about the Valentina mailing list