Application terminated without error message
-
Hi, my application terminated itself suddenly without any error messages even in VC debug enviroment. Sometimes it cause the PC restarted. How to find the bug and solve this problem? The platform is Windows 2000 Professional. And it is developed with Visual C++ 6.0 and Visual Basic 6.0. The user interface is developed with VB. And a dll is with VC. Thanks :confused:
-
Hi, my application terminated itself suddenly without any error messages even in VC debug enviroment. Sometimes it cause the PC restarted. How to find the bug and solve this problem? The platform is Windows 2000 Professional. And it is developed with Visual C++ 6.0 and Visual Basic 6.0. The user interface is developed with VB. And a dll is with VC. Thanks :confused:
-
Hi, my application terminated itself suddenly without any error messages even in VC debug enviroment. Sometimes it cause the PC restarted. How to find the bug and solve this problem? The platform is Windows 2000 Professional. And it is developed with Visual C++ 6.0 and Visual Basic 6.0. The user interface is developed with VB. And a dll is with VC. Thanks :confused:
This can happen with a simple stack 'overrun'. Lets say you have a function with a
char buf[20];
declaration. Then, you copy more than 20 chars to that array - you will overwrite other stack data - possibly the return address of the function - with just such highly unpredictable results. -
Hi, my application terminated itself suddenly without any error messages even in VC debug enviroment. Sometimes it cause the PC restarted. How to find the bug and solve this problem? The platform is Windows 2000 Professional. And it is developed with Visual C++ 6.0 and Visual Basic 6.0. The user interface is developed with VB. And a dll is with VC. Thanks :confused:
I'd guess stack overrun too - its fairly easy to do, and can happen if you pass bad values to some windows functions. Step through your program when you get to the 'bad' area (or use logging, with a flush after each write to your log file) and check carefully around the last thing you did. Check for mismatched parameters on your Calls to the DLLs - its a risk area. --Mark Terrano www.ensemblestudios.com (Creators of the Age of Empires series)