943,617 Members | Top Members by Rank

Ad:
  • ASP.NET Discussion Thread
  • Unsolved
  • Views: 3487
  • ASP.NET RSS
Jan 19th, 2009
0

System.ComponentModel.Win32Exception: The handle is invalid

Expand Post »
Hi

I am using an instance of System.Drawing.Graphics class in my application
System.Drawing.Graphics gfxScreenshot;

I have used copyfromscreen method of this class.

asp.net Syntax (Toggle Plain Text)
  1. gfxScreenshot.CopyFromScreen(System.Windows.Forms.Screen.PrimaryScreen.Bounds.X, System.Windows.Forms.Screen.PrimaryScreen.Bounds.Y, 0, 0, System.Windows.Forms.Screen.PrimaryScreen.Bounds.Size, System.Drawing.CopyPixelOperation.SourceCopy);
Its working fine locally but on remote machine its firing the error saying
System.ComponentModel.Win32Exception: The handle is invalid
Iam unable to trace out the error. Please help me if anyone know this. I have been crashing my head for 2 weeks.
Thanking you in advance
Regards
Anil
Last edited by peter_budo; Jan 19th, 2009 at 6:29 pm. Reason: Keep It Organized - For easy readability, always wrap programming code within posts in [code] (code blocks) and [icode] (inline code) tags.
Reputation Points: 10
Solved Threads: 0
Newbie Poster
AnilReddy is offline Offline
10 posts
since Jan 2009
Mar 17th, 2009
0

Re: System.ComponentModel.Win32Exception: The handle is invalid

Reputation Points: 10
Solved Threads: 0
Newbie Poster
neel05 is offline Offline
1 posts
since Mar 2009

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in ASP.NET Forum Timeline: OWC11.0 columnClustered chart control-Adding more data series and displaying in chart
Next Thread in ASP.NET Forum Timeline: Implementing WCF Callback in ASP.NET 3.5





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC