[openbeos] Re: Unit test

  • From: "Axel Dörfler" <axeld@xxxxxxxxxxxxxxxx>
  • To: openbeos@xxxxxxxxxxxxx
  • Date: Mon, 22 Apr 2002 19:03:24 CEST (+0200)

> While implemenenting the BBitmapStream test
> I have stumpled upon a "bug" in which the 
> DetachBitmap method does not work except if I am a BApplication.
> ...
> Is this really the solution, or would multiple inheritance between 
> Test 
> (cppunit) and
> BApplication be a better way?

I really think that you're wrong: the BApplication object is often 
needed for certain actions, but you don't have to *be* a BApplication 
to do this.
So it should be enough to create a BApplication (it doesn't even have 
to run) at startup once, and don't worry about it anymore - but it 
would also be nice to know exactly which functions need the application 
and which ones do not.

Correct me if I am wrong :)

Adios...
   Axel.



Other related posts: