[haiku] Re: SetViewBitmap causes a crash?

  • From: "DarkWyrm" <darkwyrm@xxxxxxxxx>
  • To: haiku@xxxxxxxxxxxxx
  • Date: Thu, 29 Jul 2010 20:12:06 +0000

> When I run my application, it crashes, apparently because of this 
> line:
> 
>       view1->SetViewBitmap(bitmap, bitmap->Bounds(), bitmap->Bounds());
> Could someone explain what I'm doing wrong?  The relevant code is 
> pasted below.
It's hard to say based on just that code, but if GetBitmap returns a 
NULL BBitmap, the call to Bounds() will crash the app. BTW, this would 
be better asked on the third party development mailing list -- IIRC 
it's haiku-3rdparty-dev@xxxxxxxxxxxxx

--DarkWyrm

Other related posts: