Re: NullReferenceException on Frame creation

Alexander Olk <[email protected]> Sat, 28 Aug 2004 14:08:27 +0200
Newsgroups gmane.comp.lib.wxwindows.wxnet
Message-ID <1093694907.3599.18.camel@Dellkiste>
Am Sa, den 28.08.2004 schrieb Kris Luyten um 13:07:
> Since m_topFrame is created in the constructor of the
> WxRenderedInstance class (WxRenderedInstance inherits from App), I
> find this somewhat confusing. This would mean OnInit is called before
> the constructor in the same class is?

When you create an instance of wx.App the protected App base constructor
gets called first. The protected ctor creates a callback to OnInit and
actually OnInit gets called then. After that, the rest of your new App
ctor (WxRenderedInstance) gets processed...

The wxWidgets team changed the behaviour of wxApp in 2.5.x...

-- 
Alexander Olk



-------------------------------------------------------
This SF.Net email is sponsored by BEA Weblogic Workshop
FREE Java Enterprise J2EE developer tools!
Get your free copy of BEA WebLogic Workshop 8.1 today.
http://ads.osdn.com/?ad_id=5047&alloc_id=10808&op=click