Re: NullReferenceException on Frame creation
Alexander Olk <[email protected]> Sat, 28 Aug 2004 10:41:18 +0200
| Newsgroups | gmane.comp.lib.wxwindows.wxnet |
|---|---|
| Message-ID | <1093682478.3499.6.camel@Dellkiste> |
Am Sa, den 28.08.2004 schrieb Kris Luyten um 1:05: > Has anyone an idea what can cause the NullReferenceException in the > Frame constructor? App.OnInit gets called right after programm start (that means, right after the initialization of the wxWidgets library). Your OnInit member only calls m_topFrame.Show(true) but doesn't create a new instance of ContainerFrame. So, m_topFrame is null and that causes a NullReferenceException... -- 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