[haiku-development] Re: Hello, and a BBitmap question.

  • From: "Rene Gollent" <anevilyak@xxxxxxxxx>
  • To: haiku-development@xxxxxxxxxxxxx
  • Date: Sat, 7 Jun 2008 02:09:30 -0500

On Sat, Jun 7, 2008 at 2:00 AM, James Kim <jkim202@xxxxxxxxxxxxxxxxx> wrote:
> Oops, I made a mistake there. It should have been fParent calling
> RemoveChild().
>
> Anyway, I tried with your code and it gets in an infinite loop,
> printing:
>
> 1414141414141414141414141414141414141414141414141414141414141414...
>
> And I am quite sure it's not the problem with BLayout::View() because I
> have tested with a test View and it still can only add but not remove.
>
>

From a quick glance at BView's code, it does seem to matter if it's in
a layout...RemoveChild simply calls the view's RemoveSelf() method,
which, if the child belongs to a layout results in BLayout::RemoveView
being called. What is RemoveChild returning?

Regards,

Rene

Other related posts: