dotgnu-pnet
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Pnet-developers] [bugs #10391] NullPointer Exception in BeginInvoke(..)


From: Erik Pfeifle
Subject: [Pnet-developers] [bugs #10391] NullPointer Exception in BeginInvoke(..) of System.Windows.Forms/Control.cs
User-agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; .NET CLR 1.0.3705; .NET CLR 1.1.4322)

This mail is an automated notification from the bugs tracker
 of the project: DotGNU Portable.NET.




/**************************************************************************/
[bugs #10391] Full Item Snapshot:

URL: <http://savannah.gnu.org/bugs/?func=detailitem&item_id=10391>
Project: DotGNU Portable.NET
Submitted by: Erik Pfeifle
On: Mit 15.09.2004 at 07:01

Category:  None
Severity:  5 - Average
Item Group:  None
Resolution:  None
Privacy:  Public
Assigned to:  None
Status:  Open


Summary:  NullPointer Exception in BeginInvoke(..) of 
System.Windows.Forms/Control.cs

Original Submission:  There is a NullPointer Exception at line 
"toolkitWindow.SendBeginInvoke(i_gch);"
in method BeginInvoke(Delegate method, Object[] args) of 
System.Windows.Forms/Control.cs 
The exception occurs if the control's handle does not exist when calling 
BeginInvoke(..).

I did a quick hack to solve the problem:
create the handle if necessary.

if( null == toolkitWindow )
   CreateHandle();

lock(this)      
   toolkitWindow.SendBeginInvoke(i_gch);











For detailed info, follow this link:
<http://savannah.gnu.org/bugs/?func=detailitem&item_id=10391>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/





reply via email to

[Prev in Thread] Current Thread [Next in Thread]