Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / Windows Forms / WinForm General / December 2004

Tip: Looking for answers? Try searching our database.

unhandled Exception in GDI Windows Forms

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Bob Brown - 02 Dec 2004 22:49 GMT
When running a program in Virtual PC, using dynamic screen resolutions if the
resolution is something off the norm, ie 1048x805. DirectX 9.0 installed,
.Net Framework 1.1 SP1 install, Virtual PC Extensions SP1 and a new installed
program installed.  Running Windows 98,98SE or WinME.

When the program first starts up you will get the following error:

See the end of this message for details on invoking
just-in-time (JIT) debugging instead of this dialog box.

************** Exception Text **************
System.Runtime.InteropServices.ExternalException: A generic error occurred
in GDI+.
  at System.Drawing.Graphics.CheckErrorStatus(Int32 status)
  at System.Drawing.Graphics.DrawString(String s, Font font, Brush brush,
RectangleF layoutRectangle, StringFormat format)
  at System.Windows.Forms.GroupBox.OnPaint(PaintEventArgs e)
  at System.Windows.Forms.Control.PaintWithErrorHandling(PaintEventArgs e,
Int16 layer, Boolean disposeEventArgs)
  at System.Windows.Forms.Control.WmPaint(Message& m)
  at System.Windows.Forms.Control.WndProc(Message& m)
  at System.Windows.Forms.GroupBox.WndProc(Message& m)
  at System.Windows.Forms.ControlNativeWindow.OnMessage(Message& m)
  at System.Windows.Forms.ControlNativeWindow.WndProc(Message& m)
  at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg,
IntPtr wparam, IntPtr lparam)

************** Loaded Assemblies **************
mscorlib
   Assembly Version: 1.0.5000.0
   Win32 Version: 1.1.4322.2032
   CodeBase:
file:///c:/windows/microsoft.net/framework/v1.1.4322/mscorlib.dll
----------------------------------------
InstallTrk
   Assembly Version: 1.2.1797.17860
   Win32 Version: 1.2.1797.17860
   CodeBase:
file:///C:/PROGRAM%20FILES/EARTHLINK,%20INC/INSTALLTRK/INSTALLTRK.EXE
----------------------------------------
System.Windows.Forms
   Assembly Version: 1.0.5000.0
   Win32 Version: 1.1.4322.2032
   CodeBase:
file:///c:/windows/assembly/gac/system.windows.forms/1.0.5000.0__b77a5c561934e089/system.windows.forms.dll
----------------------------------------
System
   Assembly Version: 1.0.5000.0
   Win32 Version: 1.1.4322.2032
   CodeBase:
file:///c:/windows/assembly/gac/system/1.0.5000.0__b77a5c561934e089/system.dll
----------------------------------------
System.Drawing
   Assembly Version: 1.0.5000.0
   Win32 Version: 1.1.4322.2032
   CodeBase:
file:///c:/windows/assembly/gac/system.drawing/1.0.5000.0__b03f5f7f11d50a3a/system.drawing.dll
----------------------------------------
Accessibility
   Assembly Version: 1.0.5000.0
   Win32 Version: 1.1.4322.573
   CodeBase:
file:///c:/windows/assembly/gac/accessibility/1.0.5000.0__b03f5f7f11d50a3a/accessibility.dll
----------------------------------------

************** JIT Debugging **************
To enable just in time (JIT) debugging, the config file for this
application or machine (machine.config) must have the
jitDebugging value set in the system.windows.forms section.
The application must also be compiled with debugging
enabled.

For example:

<configuration>
   <system.windows.forms jitDebugging="true" />
</configuration>

When JIT debugging is enabled, any unhandled exception
will be sent to the JIT debugger registered on the machine
rather than being handled by this dialog.

The fix/work around is to set the screen resolution to one of the standard
modes, ie 800x600 run the program successfuly once, then change the screen
resoution to what ever you want and the program will continue to work. If you
uninstall and reinstall you will have to repeat this step.
Signature

Bob Brown

"Jeffrey Tan[MSFT]" - 03 Dec 2004 03:46 GMT
Hi Bob,

I have searched in google, only find 2 related issues: one is used in
terminal services, and another is in Remote Desktop environment. It seems
this issue only occurs in remote or virtual environment.

Also, I noticed that your have found the workaround for this issue. If you
have much more concern for it and you are interested in the root cause,
looking at the nature of this issue, it would require intensive
troubleshooting which would be done quickly and effectively with direct
assistance from a Microsoft Support Professional through Microsoft Product
Support Services. You can contact Microsoft Product Support directly to
discuss additional support options you may have available, by contacting us
at 1-(800)936-5800 or by choosing one of the options listed at
http://support.microsoft.com/default.aspx?scid=sz;en-us;top. If this is not
an urgent issue and your would like us to create an incident for you and
have Microsoft Customer Service  Representative contact you directly,
please send email to (remove "online." from this no  Spam email address):
mailto:dscommhf@online.microsoft.com with the following information,
*Include "Followup: <Tomcat IssueID>" in the email Subject.
*Location of the post
*Subject Line
*First Name, Last Name
*MSDN Subscriber ID
*Company name (if any)
*Phone number
*e-mail address

Thanks for yoru understanding.

Best regards,
Jeffrey Tan
Microsoft Online Partner Support
Signature

Get Secure! - www.microsoft.com/security
This posting is provided "as is" with no warranties and confers no rights.

Bob Brown - 03 Dec 2004 04:53 GMT
Jeffery,

I understand the 'limited' nature of this problem and just how much it would
take to fix it. I did find a work around. As you I looked on google and found
almost nothing about a problem like this. I wanted to get some information so
maybe someone in the future would not have to spend so much time trying to
fix the problem.

Bob Brown
UltraTech Web Solutions

> Hi Bob,
>
[quoted text clipped - 31 lines]
> Get Secure! - www.microsoft.com/security
> This posting is provided "as is" with no warranties and confers no rights.
"Jeffrey Tan[MSFT]" - 03 Dec 2004 06:14 GMT
Hi Bob,

Thanks for your feedback!

Yes, it is really an abnormal issue. If you need to get a hotfix or more
information on this issue, please contact our PSS for this issue. After you
have confirmed this is a kown issue(from PSS), and you need a public
document for this issue, I think you may provide your suggestion to
"http://register.microsoft.com/mswish/suggestion.asp".

Thanks

Best regards,
Jeffrey Tan
Microsoft Online Partner Support
Signature

Get Secure! - www.microsoft.com/security
This posting is provided "as is" with no warranties and confers no rights.


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.