Debug Assertion Failed!

Hi everybody:
I'm using a library to plot different graphic in a C++/CLI application. The Library comes from CodeProject and it works (theorycally). I try to do a very easy graphic, and when I set a pointer to the library
CPGLGraph* pGraph = new CPGLGraph
I get that Assertion failed.
The fail comes from AfxGetInstanceHandle() and I don't understand the meaning of the fail.

How can I debug it? What does mean a Debug assertion???
If the fail comes from Library... how can I plot a simple graphic in C++/CLI??

Thanks in advance

garrido
What does mean a Debug assertion?
A debug build of an app can have extra checks. In MFC (that I presume you're using), that means various preconditions are enforced by stopping the app and displaying a message. The environment "asserts" that something is true, if it isn't, it stops dead in it's tracks so you can fix it.

How can I debug it?
Run your app in the debugger as a debug build. I should stop on the line of code that's unhappy with you.

The fail comes from AfxGetInstanceHandle() and I don't understand the meaning of the fail.
You've probably failed to initialise the library or some object in the library correctly.

If the fail comes from Library... how can I plot a simple graphic in C++/CLI?
Dunno, it depends on the library.
Topic archived. No new replies allowed.