From: Lloyd D. <ll...@ga...> - 2003-01-08 09:06:30
|
That's terrible, WinForm doesn't play nicely with thread, that worry me. Anyway, trying to be helpfull, have you tried to tag your Main() method with [STAThread] attribute ? ----- Original Message ----- From: "Vadim Macagon" <vad...@ho...> To: "CsGL list" <csg...@li...> Sent: Tuesday, January 07, 2003 10:04 PM Subject: [Csgl-users] CsGL Windows Forms and System Lockup > Hi, > > I've written an application that uses CsGL to render meshes, I also > extensively use windows forms controls (such as tab controls, combo boxes, > etc.) The problem is that every once in a while as I manipulate the various > controls my whole system becomes frozen and I have to reboot. I've just > restructured my application to use the basecode, this way I can run > everything in a single thread, previously it was using OpenGLControl and > that was rather hackish (and that too caused the occasional system freeze). > > I'm at a loss as to how to debug this, because the crash is unpredictable, > the only thing I know is it happens when I mess with the controls on the > form, even something as simple as selecting a different tab on a tab control > can cause the whole thing to freeze. I've encountered Windows Forms > threading issues before (in non-CsGL applications), but that only froze the > application, not my whole system. > > Any advice on how to fix this will be greatly appreciated :) > > > Cheers, > > Vadim. > > > ------------------------------------------------------- > This SF.NET email is sponsored by: > SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! > http://www.vasoftware.com > _______________________________________________ > Csgl-users mailing list > Csg...@li... > https://lists.sourceforge.net/lists/listinfo/csgl-users |