System.ComponentModel.Win32Exception: The handle is invalid

Please support our ASP.NET advertiser: Intel Parallel Studio Home
Reply

Join Date: Jan 2009
Posts: 10
Reputation: AnilReddy is an unknown quantity at this point 
Solved Threads: 0
AnilReddy AnilReddy is offline Offline
Newbie Poster

System.ComponentModel.Win32Exception: The handle is invalid

 
0
  #1
Jan 19th, 2009
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.

  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.
Reply With Quote Quick reply to this message  
Join Date: Mar 2009
Posts: 1
Reputation: neel05 is an unknown quantity at this point 
Solved Threads: 0
neel05 neel05 is offline Offline
Newbie Poster

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

 
0
  #2
Mar 17th, 2009
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:


Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC