Mono 1.9
Posted Friday, 4 April, 2008 - 18:19 by avariant in
I downloaded the openSuse 10.3 / Mono 1.9 VMWare package to test my app with. However, it crashed almost immediately. After a fair bit of debugging, I discovered that OnResize was being called before OnLoad on my GLControl. The code used to work fine on Mono 1.2.6, so I presume this is a change in Mono 1.9.
Anyway, just to bring up the issue. I use OnLoad to Initialize the gl contexts, etc, and Resize to change the viewport and perspective. I figure this is a common design pattern, so if others use the same mechanism, be aware of the change.




Comments
Apr 04
18:25:00Re: Mono 1.9
posted by the FiddlerYes, I've encountered this - it should be fixed in SVN.
That said, you do not need to initialize the context explicitly. It is automatically created during the OnHandleCreated event, which occurs before OnLoad.
Apr 04
18:54:07Re: Mono 1.9
posted by avariantAh, good to know. Thanks!