473,549 Members | 2,726 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Unhandled Exception - A Generic error occurred in GDI+"

4 New Member
Help please,

I am getting this "Unhandled Exception has occurred in your application"
" A Generic error occurred in GDI+"

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

************** Exception Text **************
Expand|Select|Wrap|Line Numbers
  1. System.Runtime.InteropServices.ExternalException: A generic error occurred in GDI+.
  2.    at System.Drawing.Graphics.CheckErrorStatus(Int32 status)
  3.    at System.Drawing.Graphics.DrawString(String s, Font font, Brush brush, RectangleF layoutRectangle, StringFormat format)
  4.    at SaiEdit.SelectionSetEditor.DrawButton(Graphics graphics, Rectangle rectangle, Int32 left, String name)
  5.    at SaiEdit.SelectionSetEditor.DrawData(Graphics graphics, Rectangle rectangle, Base selection, Base controls, Brush background, Int32 combonumber)
  6.    at SaiEdit.SelectionSetEditor.DrawData(Graphics graphics, Rectangle rectangle, Base selection, Base controls, Brush background)
  7.    at av.a(Graphics A_0, Rectangle A_1, Boolean A_2)
  8.    at av.a(Graphics A_0, Rectangle A_1, UInt32 A_2, Boolean A_3, Boolean A_4)
  9.    at av.a(Graphics A_0, Rectangle A_1)
  10.    at af.OnPaint(PaintEventArgs e)
  11.    at System.Windows.Forms.Control.PaintWithErrorHandling(PaintEventArgs e, Int16 layer, Boolean disposeEventArgs)
  12.    at System.Windows.Forms.Control.WmPaint(Message& m)
  13.    at System.Windows.Forms.Control.WndProc(Message& m)
  14.    at System.Windows.Forms.ScrollableControl.WndProc(Message& m)
  15.    at System.Windows.Forms.ContainerControl.WndProc(Message& m)
  16.    at System.Windows.Forms.UserControl.WndProc(Message& m)
  17.    at af.WndProc(Message& m)
  18.    at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
  19.    at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
  20.    at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
  21.  
  22.  
  23. ************** Loaded Assemblies **************
  24. mscorlib
  25.     Assembly Version: 2.0.0.0
  26.     Win32 Version: 2.0.50727.3053 (netfxsp.050727-3000)
  27.     CodeBase: file:///C:/WINDOWS/Microsoft.NET/Framework/v2.0.50727/mscorlib.dll
  28. ----------------------------------------
  29. Pr0fileEditor
  30.     Assembly Version: 6.2.2.4
  31.     Win32 Version: 6.2.2.4
  32.     CodeBase: file:///C:/Program%20Files/Saitek/SD6/Software/Pr0fileEditor.exe
  33. ----------------------------------------
  34. System.Windows.Forms
  35.     Assembly Version: 2.0.0.0
  36.     Win32 Version: 2.0.50727.3053 (netfxsp.050727-3000)
  37.     CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System.Windows.Forms/2.0.0.0__b77a5c561934e089/System.Windows.Forms.dll
  38. ----------------------------------------
  39. System
  40.     Assembly Version: 2.0.0.0
  41.     Win32 Version: 2.0.50727.3053 (netfxsp.050727-3000)
  42.     CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System/2.0.0.0__b77a5c561934e089/System.dll
  43. ----------------------------------------
  44. System.Drawing
  45.     Assembly Version: 2.0.0.0
  46.     Win32 Version: 2.0.50727.3053 (netfxsp.050727-3000)
  47.     CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System.Drawing/2.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll
  48. ----------------------------------------
  49. Pr0fileEditor_Forms
  50.     Assembly Version: 6.2.2.4
  51.     Win32 Version: 6.2.2.4
  52.     CodeBase: file:///C:/Program%20Files/Saitek/SD6/Software/Pr0fileEditor_Forms.DLL
  53. ----------------------------------------
  54. SaiDoc
  55.     Assembly Version: 6.2.2.4
  56.     Win32 Version: 6.2.2.4
  57.     CodeBase: file:///C:/Program%20Files/Saitek/SD6/Software/SaiDoc.DLL
  58. ----------------------------------------
  59. MutantRegistry
  60.     Assembly Version: 6.2.2.4
  61.     Win32 Version: 6.2.2.4
  62.     CodeBase: file:///C:/Program%20Files/Saitek/SD6/Software/MutantRegistry.DLL
  63. ----------------------------------------
  64. Pr0fileEditor_Forms.resources
  65.     Assembly Version: 6.2.2.4
  66.     Win32 Version: 6.2.2.4
  67.     CodeBase: file:///C:/Program%20Files/Saitek/SD6/Software/en/Pr0fileEditor_Forms.resources.DLL
  68. ----------------------------------------
  69. SaiFile
  70.     Assembly Version: 6.2.2.4
  71.     Win32 Version: 6.2.2.4
  72.     CodeBase: file:///C:/Program%20Files/Saitek/SD6/Software/SaiFile.DLL
  73. ----------------------------------------
  74. SDFolders
  75.     Assembly Version: 6.2.2.4
  76.  
  77.     Win32 Version: 6.2.2.4
  78.     CodeBase: file:///C:/Program%20Files/Saitek/SD6/Software/SDFolders.DLL
  79. ----------------------------------------
  80. Pr0file
  81.     Assembly Version: 6.2.2.4
  82.     Win32 Version: 6.2.2.4
  83.     CodeBase: file:///C:/Program%20Files/Saitek/SD6/Software/Pr0file.DLL
  84. ----------------------------------------
  85. System.Xml
  86.     Assembly Version: 2.0.0.0
  87.     Win32 Version: 2.0.50727.3053 (netfxsp.050727-3000)
  88.     CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System.Xml/2.0.0.0__b77a5c561934e089/System.Xml.dll
  89. ----------------------------------------
  90. SaiDevice
  91.     Assembly Version: 6.2.2.4
  92.     Win32 Version: 6.2.2.4
  93.     CodeBase: file:///C:/Program%20Files/Saitek/SD6/Software/SaiDevice.DLL
  94. ----------------------------------------
  95. SaiPaint
  96.     Assembly Version: 6.2.2.4
  97.     Win32 Version: 6.2.2.4
  98.     CodeBase: file:///C:/Program%20Files/Saitek/SD6/Software/SaiPaint.DLL
  99. ----------------------------------------
  100. Base
  101.     Assembly Version: 6.2.2.4
  102.     Win32 Version: 6.2.2.4
  103.     CodeBase: file:///C:/Program%20Files/Saitek/SD6/Software/Base.DLL
  104. ----------------------------------------
  105. SD
  106.     Assembly Version: 6.2.2.4
  107.     Win32 Version: 6.2.2.4
  108.     CodeBase: file:///C:/Program%20Files/Saitek/SD6/Software/SD.DLL
  109. ----------------------------------------
  110. PInvoke
  111.     Assembly Version: 6.2.2.4
  112.     Win32 Version: 6.2.2.4
  113.     CodeBase: file:///C:/Program%20Files/Saitek/SD6/Software/PInvoke.DLL
  114. ----------------------------------------
  115. ReadPr0
  116.     Assembly Version: 6.2.2.4
  117.     Win32 Version: 6.2.2.4
  118.     CodeBase: file:///C:/Program%20Files/Saitek/SD6/Software/ReadPr0.DLL
  119. ----------------------------------------
  120. StrictTreebuilder
  121.     Assembly Version: 6.2.2.4
  122.     Win32 Version: 6.2.2.4
  123.     CodeBase: file:///C:/Program%20Files/Saitek/SD6/Software/StrictTreebuilder.DLL
  124. ----------------------------------------
  125. IReader
  126.     Assembly Version: 6.2.2.4
  127.     Win32 Version: 6.2.2.4
  128.     CodeBase: file:///C:/Program%20Files/Saitek/SD6/Software/IReader.DLL
  129. ----------------------------------------
  130. IElementHandler
  131.     Assembly Version: 6.2.2.4
  132.     Win32 Version: 6.2.2.4
  133.     CodeBase: file:///C:/Program%20Files/Saitek/SD6/Software/IElementHandler.DLL
  134. ----------------------------------------
  135. QuickerSchema
  136.     Assembly Version: 6.2.2.4
  137.     Win32 Version: 6.2.2.4
  138.     CodeBase: file:///C:/Program%20Files/Saitek/SD6/Software/QuickerSchema.DLL
  139. ----------------------------------------
  140. ValidatorInContext
  141.     Assembly Version: 6.2.2.4
  142.     Win32 Version: 6.2.2.4
  143.     CodeBase: file:///C:/Program%20Files/Saitek/SD6/Software/ValidatorInContext.DLL
  144. ----------------------------------------
  145. Vd
  146.     Assembly Version: 6.2.2.4
  147.     Win32 Version: 6.2.2.4
  148.     CodeBase: file:///C:/Program%20Files/Saitek/SD6/Software/Vd.DLL
  149. ----------------------------------------
  150. SaiEdit
  151.     Assembly Version: 6.2.2.4
  152.     Win32 Version: 6.2.2.4
  153.     CodeBase: file:///C:/Program%20Files/Saitek/SD6/Software/SaiEdit.DLL
  154. ----------------------------------------
  155.  
  156. ************** JIT Debugging **************
  157. To enable just-in-time (JIT) debugging, the .config file for this
  158. application or computer (machine.config) must have the
  159. jitDebugging value set in the system.windows.forms section.
  160. The application must also be compiled with debugging
  161. enabled.
  162.  
  163. For example:
  164.  
  165. <configuration>
  166.     <system.windows.forms jitDebugging="true" />
  167. </configuration>
  168.  
  169. When JIT debugging is enabled, any unhandled exception
  170. will be sent to the JIT debugger registered on the computer
  171. rather than be handled by this dialog box.
  172.  
I am getting this in other window applications also. Something appears to be not drawing properly in a portion of the window that is being displayed ( the area in the window in trouble has a RED X displayed)!

System: Win XPpro sp3
.net 1.1
2.0 sp2
3.0 sp2
3.5 sp1
Microsof tvisual C++ 2005

This problem does not have to do with anything that I have written but with existing windows applications. Something may have been deleted in error or corrupted???

So far and I have tried but cannot resolve this problem...neen help!

Thank you, Papa
Oct 11 '08 #1
7 10371
mldisibio
190 Recognized Expert New Member
Do you have CVSNT or TortoiseCVS on your machine as well?

There was a specific release of TortoiseCVS(sin ce fixed with newer releases) causing a very similar problem, causing other applications, notably VS2005, to crash when the File Open dialogue was called. However, the error was "GDI+ initialization" , not "Generic error," so not sure if this helps

The issue was confirmed and acknowledged by the application owners.
http://forums.microsof t.com/MSDN/ShowPost.aspx?P ostID=2600703

Bottom line, IF you have those apps installed, make sure you have the latest releases.
Oct 11 '08 #2
j4richard
4 New Member
Do you have CVSNT or TortoiseCVS on your machine as well? No, not that I am aware of, how can I verify this?
Oct 11 '08 #3
mldisibio
190 Recognized Expert New Member
Those are "Source Control" (like Visual Source Safe and others) applications. CVSNT is a Windows version of CVS that usually has a remote server component for storing source code.

TortoiseCVS is a handy application that lets you check source files in and out by right clicking on them

They have to be installed, so nothing mysterious here. They are not system applications. If you are not familiar with them, then you probably do not have them installed, unless you received the machine already pre-loaded, such as might happen if you work for a software development company.

So the issue is still unresolved.
Oct 11 '08 #4
j4richard
4 New Member
Thanks for the reply....under the circumstances I'm sure they are not installed..

Note: I have been searching for a fix for this problem all over the web and so far I have not been able so come close to solving it. Any suggestions at this point as to were to look would be appreciated.... This does affect more than one windows menu screen ie the same trouble appears in various other screens.

From what I can gather so far it appears to effect how portions of a menu screen are displayed (painted?).

Thanks,
Papa
Oct 12 '08 #5
mldisibio
190 Recognized Expert New Member
I had a hard time finding the cause of the GDI crashes with TortoiseCVS as well, despite doing exact quote Google searches.

I notice your debug output refers to a Saitek installation, which I gather is a game controller.

Have you recently installed or uninstalled either the controller software or a related graphics intensive game?

Also, do you have System Restore enabled? Perhaps you can find a Restore Point date shortly before this started. It should not affect any files you have worked on since.
Oct 12 '08 #6
j4richard
4 New Member
I had a hard time finding the cause of the GDI crashes with TortoiseCVS as well, despite doing exact quote Google searches.

I notice your debug output refers to a Saitek installation, which I gather is a game controller.

Have you recently installed or uninstalled either the controller software or a related graphics intensive game?

Also, do you have System Restore enabled? Perhaps you can find a Restore Point date shortly before this started. It should not affect any files you have worked on since.
Saitek is a game controller but this is only one of many applications that are displaying this problem, I use this as an example. I have uninstalled the Saitek program software but the problem remains in other windows.

There are No other graphic intensive games installed as I was in the process of cleaning up junk after a new windows install. ( this may have let to the problem?)

I tried system restore but could not restore to an earlier point that was effective.

Thanks for the input.

Papa
Oct 12 '08 #7
mldisibio
190 Recognized Expert New Member
Sorry, I can't help further. I hope someone will. If it's any consolation, I can say "been there done that." Personally I would reconsider a fresh re-install and making copious System Restore points before cleaning up the unwanted apps.

Mike
Oct 13 '08 #8

Sign in to post your reply or Sign up for a free account.

Similar topics

10
4810
by: gregory_may | last post by:
I have an application I created called "JpegViewer.exe". It simply loads a Jpeg file and displays in on the screen. It works great, in my lab. When I am using it at a customer site, things change. Occasionally, it blows up with an Application Exception. It seems to only die at the customer site
6
2329
by: Paul Steele | last post by:
I often use the following code to check if a program is already running: if (Process.GetProcessesByName(Process.GetCurrentProcess().ProcessName).Length > 1) ... This works find on all of my systems, but a student using one of my programs reported that he was getting an "Unhandled Exception" trying to load my program. This is even...
5
2691
by: Peter Steele | last post by:
We have an application that when it runs in the IDE in debug mode an unhandled exception is occurring in a system header file associated with STL stirngs. The actual statement that crashes is return ::memcmp(_First1, _First2, _Count); On inspecting these variables, the strings are in fact equal when the exception occurs and _Count is the...
13
4637
by: lgbjr | last post by:
Hello All, I have some pictureboxes on a VB.NET form that are linked to an AccessDB. If the user wishes to open or edit an image, I need to save the image in the picturebox to a temp file, then open that file in whatever viewer/editor is the default for the users system. I tried to do picturebox1.image.save(filename), which results in "A...
4
2889
by: R.A.M. | last post by:
Hello, Could you help me plase? I have an ASP.NET page with "Search" button; when button is clicked Search_Click is called; here's the code: protected void Search_Click(object sender, EventArgs e) { Debug.WriteLine("WWWPage.Search_Click()"); ... try
2
2064
by: whiskers | last post by:
I'm debugging some code and I have to admit that I don't know yet how it works. But I ran into a problem I can't explain The program is a DLL that retrieves raw data from a camera, builds histograms based on the pixel values, and displays them on the screen; here's a small excerpt: VOID CHistogramContainer::appendFrameData(WORD...
0
4235
by: =?Utf-8?B?Sm9hY2hpbQ==?= | last post by:
I have a bitmap which I have retreived through the WebBrowser DrawToBitmap method into a Bitmap. When I try to save the bitmap I get "ExternalException occurred A generic error occurred in GDI+" Why can't I save the bitmap? I need to save it - how to do?
0
2810
by: Gary | last post by:
Trying to install VB6 (learning edition) on Windows XP. When running the SETUP.EXE to install Visual Basic 6.0 it gives the error... "An unhandled win32 exception occured in vs60wiz.exe" or "An unhandled win32 exception occured in setup.exe"
8
1755
joedeene
by: joedeene | last post by:
Hello there, I am having a problem and it is frustrating me because I've been trying to figure it out, and I've even modified the code a few times but the same exception occurs: " 'StackOverflowExcepton' was unhandled " Project Details: Ok, I am creating a text file that will store database information of some customers of mine and I'm using...
0
7451
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language...
0
7720
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. ...
0
7812
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the...
0
6048
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then...
0
3501
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in...
0
3483
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
1944
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
1
1061
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
766
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.