Jeff What you are asking here is quite a lot. Every GUI object would need to check on entry to every method call whether the calling thread is the thread that created the object. Big overhead in terms of code to be written, and big performance overhead at runtime.
The performance overhead issue could be side-stepped by only enabling such checking in debug builds. As for the coding overhead, is it feasible that AOP could be used to do the checking automatically? Is John Lam's CLAW stuff (for example) flexible enough to do this kind of job? I have not investigated AOP much, mainly because I can't see past the canonical logging example. But if it could do this type of job, it would suddenly become much more interesting ... Andy Mc -----Original Message----- From: Jeff Roberts [mailto:[EMAIL PROTECTED]] Sent: 29 May 2002 15:09 To: [EMAIL PROTECTED] Subject: Re: [DOTNET] Modeless WinForms Bug Mathew, It sure would have saved me a lot of time if an exception had been thrown ! jeff You can read messages from the DOTNET archive, unsubscribe from DOTNET, or subscribe to other DevelopMentor lists at http://discuss.develop.com.
