Hello, initialization of class WIN32Window leads to problems.
I do have the following initialization code for a small windows viewer which fails on execution: WIN32WindowUnrecPtr window = WIN32Window::create(); window->setHwnd(_hWnd); window->init(); window->deactivate(); The problem goes as follows: window->init() calls ReleaseDC(...) prior to calling Inherited::init(oFunc) which uses the device context for setting the rendering context. If the class does not permanentely hold the device context it should set the member to NULL. This would then lead to a proper reinitialization the next time it is needed. In any case the order of the calls in window->init() ReleaseDC(getHwnd(), getHdc()); Inherited::init(oFunc); should be swapped. Best, Johannes ____________ Virus checked by G DATA AntiVirusKit Version: AVF 19.566 from 06.10.2009 Virus news: www.antiviruslab.com ------------------------------------------------------------------------------ Come build with us! The BlackBerry(R) Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9 - 12, 2009. Register now! http://p.sf.net/sfu/devconference _______________________________________________ Opensg-users mailing list Opensg-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/opensg-users