Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Access Violation by return-Statement

Status
Not open for further replies.

bischkek

Programmer
Jan 13, 2004
3
0
0
DE
I have composed a Winmain-Programm with a class in which I read out folders.

After the retun 0; - Statement I receive a Access Violation
error Message with the hint that a exception is not treated
int APIENTRA winmain(...)
{
Verzeichnis *Heute = new Verzeichnis();
...
delete Heute;
return 0;
}

Thanks for help!
yours Olaf
 
I believe it is because there is thrown an exception and you don't catch it in the program. So the application terminates in an unusual way. Put your code in a try/catch block.

Ion Filipski
1c.bmp
 
thanks Ion, this was the right idea, Greetings Olaf
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top