CrashPilot
Newcomer
- Joined
- Apr 22, 2010
Re: Call Paint Event
I got an interesting one. For some reason the when i call the refresh method from a plugin construction it throws the crossthread error and the lot crashes. But when i call the invalidate method it actually works fine. Now i am realy interested why the invalidate method doesnt throw an exception. I mean, they both refresh the screen but one seems crossthreadable and the other not. Anyone know why that is?
(I do call the method from a thread in the plugin so the fact that the error is thrown is clear to me)
Greetings,
CrashPilot
edit: split from http://www.xtremedotnettalk.com/showthread.php?t=70168
I got an interesting one. For some reason the when i call the refresh method from a plugin construction it throws the crossthread error and the lot crashes. But when i call the invalidate method it actually works fine. Now i am realy interested why the invalidate method doesnt throw an exception. I mean, they both refresh the screen but one seems crossthreadable and the other not. Anyone know why that is?
(I do call the method from a thread in the plugin so the fact that the error is thrown is clear to me)
Greetings,
CrashPilot
edit: split from http://www.xtremedotnettalk.com/showthread.php?t=70168
Last edited by a moderator: