bugDotGNU Portable.NET - Bugs: bug #10391, NullPointer Exception in...

 
 

You are not allowed to post comments on this tracker with your current authentication level.

bug #10391: NullPointer Exception in BeginInvoke(..) of System.Windows.Forms/Control.cs

Submitter:  Erik Pfeifle <kirep>
Submitted:  Wed 15 Sep 2004 07:01:31 AM UTC
   
 
Category:  None Severity:  3 - Normal
Item Group:  None Status:  Fixed
Privacy:  Public Assigned to:  None
Open/Closed:  Closed

Sun 26 Sep 2004 02:44:31 PM UTC, comment #1: 

Fixed in CVS 25th September 2005 (patch #3390).

Carl-Adam Brengesjo <ptah>
Group Member
Wed 15 Sep 2004 07:01:31 AM UTC, 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);

Erik Pfeifle <kirep>

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

CC list is empty

 

There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

 

Follow 2 latest changes.

Date Changed by Updated Field Previous Value => Replaced by
2004-09-26 ptah StatusNone Fixed
    Open/ClosedOpen Closed

Back to the top

Powered by Savane 3.12