Recently, I changed my code to use Application.EnableVisualStyles() in .NET 2.0 and believed that most of the bugs that existed with .NET 1.1 should be fixed already. So I got a new exception AccessViolationException a lot recently and tried to locate the cause but without luck. I think it must happen because of this. I will try to remove it and see what happens.