Click here to Skip to main content
13,598,183 members
Rate this:
Please Sign up or sign in to vote.
See more:
hi I'm having problems using visual studio 2010 with windows 8. in a certain part of my code I use the (); however an error occurs:
  Generic GDI + error

anyone been through this?

thank you
Posted 30-Jan-13 6:38am
Dave Kreskowiak 30-Jan-13 12:46pm
Without more detail, it's impossible to answer your question. What does the code look like? What's the app type? Modern app? WPF? Windows Forms? HTML5? Java?
arthur.rafa10 30-Jan-13 12:58pm
Sorry Dave.
I am working with windows form (desktop) with the C # language with OpenCV. and when I display a message using () an error occurs: GDI + generic error. I use Windows 8 and the visual studio 2010.

this helps?
Sergey Alexandrovich Kryukov 30-Jan-13 13:03pm
No. The only thing which could help is the code sample. You need to create one, complete but short; and it should clearly reproduce the problem.
Sergey Alexandrovich Kryukov 30-Jan-13 13:02pm
Not enough information. Please use "Improve question".
arthur.rafa10 30-Jan-13 13:09pm

the error occurs in a simple command line to display a message on the screen, using the C # language with visual studio 2010 on windows 8.
  line of code is:

MessageBox.Show ("System Training Held Successfully!", "Training", MessageBoxButtons.OK, MessageBoxIcon.Exclamation);

and the error message is:

       Generic GDI + error.

does not show anything ...
OriginalGriff 30-Jan-13 14:04pm
I just pasted your line into a button click handler and press the button - the message box showed up fine, with no error.
So, taking my lead from your "simple command line" I tried it in a Console app. After adding the System.Windows.Forms assembly, and the appropriate using statement, it worked fine again.

So it must be something else in your code, and the symptom is only showing up when you display the message box.
Without more detail of your code, there really isn't anything we can do to help you!
Sergey Alexandrovich Kryukov 30-Jan-13 17:06pm
Command line?! Where is a command line here?

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
Top Experts
Last 24hrsThis month

Advertise | Privacy | Cookies | Terms of Service
Web04 | 2.8.180621.3 | Last Updated 30 Jan 2013
Copyright © CodeProject, 1999-2018
All Rights Reserved.
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100