Hi Ian Sorry, I've confused the issue with my comments about performance. I totally agree with what you say.
What I'm really interested in is that regardless of whether MS should have put the check into the .NET GUI libraries or not, the fact is that they didn't. And if omissions like this could be rectified 'after-the-event', without access to the library source code, by using AOP, that would be a great advert for AOP and I'd definitely be interested in looking at AOP further. Andy Mc -----Original Message----- From: Ian Griffiths [mailto:[EMAIL PROTECTED]] Sent: 29 May 2002 21:36 To: [EMAIL PROTECTED] Subject: Re: [DOTNET] AOP to police thread affinity? (was Re: [DOTNET] Modeless WinForms Bug) <snip> So I really don't understand the performance argument. And as for the code writing overhead... Well you could make that argument about any parameter checking - why bother throwing exceptions when invalid arguments are passed in when you can just exhibit unpredictable behaviour?.. This is not a strong argument for not checking that entry conditions have been met. <snip> -- Ian Griffiths DevelopMentor You can read messages from the DOTNET archive, unsubscribe from DOTNET, or subscribe to other DevelopMentor lists at http://discuss.develop.com.