高分求救啊,HELP
我写了一个程序,执行相同的操作步骤,可是有时候会报错outofmemoryexception,可有时候又没有,哪位大哥能给个说法,我的程序是一个多线程的东西,现在晕的很呀
比方说我在做完过程A之后,对 WINFORM进行操作时就会出错,
而且出两种错误,
1是An unhandled exception of type 'System.OutOfMemoryException' occurred in system.windows.forms.dll
Additional information: Error creating window handle
这种是在我单击窗体上的任何一个button的时候
2是An unhandled exception of type 'System.NullReferenceException' occurred in system.windows.forms.dll
Additional information: Object reference not set to an instance of an object.
这种是在我移动窗体时出现的错误.
我看过代码,没发现过程A对窗体有什么操作,觉得很奇怪,不知道这个溢出是怎么回事,大家救救我吧