RE: Problem trying to get a Bmp screenshot
Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance
Hi Cristian,
Welcome to MSDN Newsgroup!
>From my experience, this issue is caused by GraphicsStream myStream's value
is null. If we pass null to Bitmap's ctor, an exception will be thrown by
CLR. So in this scenario, I suggest you could add some code checking
parameter's validity (myStream).
I hope the above information is useful for you. If there is any question,
please feel free to join the community and we are here to support you at
your convenience. Thanks again and have a nice day.
Best Regards,
Terry Fei [MSFT]
Microsoft Community Support
Get Secure! www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.)
.
Relevant Pages
- Re: System.ExecutionEngineException for certificate object creation
... The classic way to debug this would be to use a lower level debugger like ... see if they have any suggestions as a lot of the more hard core CLR guys ... > this specific call to object creation that is throwing the exception. ... > If I comment it out, no exception is thrown. ... (microsoft.public.dotnet.security) - RE: best debug / perfmon options to drilldown to find error
... exception is thrown - that way you'll see exactly what's throwing the error ... To set the CLR to "break on all errors" you need to go to the Exceptions ... > I have winforms app that contains buttons. ... (microsoft.public.dotnet.framework.clr) - Re: finally block is not executed after StackOverflowException
... by design in the current version the CLR. ... This exception is being thrown when there are only two more pages left free ... on the stack, the CLR as opted to unwind the current context instead of to ... (microsoft.public.dotnet.languages.csharp) - Re: Connection pooling (or not?) with Remote Access database
... Since the ExecutionEngineException was thrown from inside the CLR, ... occurs exception when execution engine has been corrupted or data is ... (microsoft.public.dotnet.framework.adonet) - RE: VS2003 and VS2005 Compatible on same machine?
... >What if the application (made of managed/unmanaged code) needs ... yes, one application could only run in one CLR, there is no good solutions ... Gary Chang ... Microsoft Community Support ... (microsoft.public.vsnet.ide) |
|