Error when finish the examples in Visual Studio 2005

Hello all

I've got problem..

When I exit from the project examples...

there's an error

Microsoft Visual C++ Debug Library
Debug Assertion Failed!

I could find previous questions and reply but
there's no anwser I expected

Mikael Aronsson's picture

I might help a little if you would include information about the assertion (line number and file).

uksama's picture

File: close.c
Line : 48

zhangzhigang824's picture

I meet the same problem with you, have you solved it yet?
Could anyone help us, thank you!

Pawel's picture
P Dolbey's picture

In WINMAIN.CPP change line 33 to read

#define DISPLAYCONSOLE 0

If you still want a console for debugging, change the linker-system properties to /SUBSYSTEM:CONSOLE

Pete

P Dolbey's picture

Apologies - slightly wrong, instead you should comment out line 33.
i.e.

//#define DISPLAYCONSOLE 1

Pete