.Net 2005 Structure 3.5 with debugging function problem

Hello,
I have .Net 2005 Structure 3.5 to create a program. Every time I run the simulator with debugging function, from time to time in the program an issue happens:

Microsoft Visual Studio
An unhandled exception of type
'System.ComponentModel.Win32Exception' occurred in System.Drawing.dll
Additional information: Access is denied
Break Continue Ignore
