SwapnilDipankar
Programmer
Hi,
The code snippet below works just fine in Linux, but gives me errors when compiled in MSVC++ 6.0. Any thoughts? The code crashes on the line delete pdeOperation;:
int main(int argc, char* argv[]) {
pdeFileOperation *pdeOperation;
try {
pdeOperation = new pdeFileOperation;
} catch(bad_alloc& badAllocError) {
cerr << "Error:: Initializing memory" << endl;
return (EXIT_FAILURE);
} catch(...) {
delete pdeOperation;
cerr << "Error:: Program exited with errors" << endl;
return (EXIT_SUCCESS);
}
pdeOperation->processFiles(0);
delete pdeOperation;
#ifdef _DEBUG_MODE_
cout << "Program exited successfully" << endl;
#endif
return (EXIT_SUCCESS);
}
Cheers!!
-Swapnil
The code snippet below works just fine in Linux, but gives me errors when compiled in MSVC++ 6.0. Any thoughts? The code crashes on the line delete pdeOperation;:
int main(int argc, char* argv[]) {
pdeFileOperation *pdeOperation;
try {
pdeOperation = new pdeFileOperation;
} catch(bad_alloc& badAllocError) {
cerr << "Error:: Initializing memory" << endl;
return (EXIT_FAILURE);
} catch(...) {
delete pdeOperation;
cerr << "Error:: Program exited with errors" << endl;
return (EXIT_SUCCESS);
}
pdeOperation->processFiles(0);
delete pdeOperation;
#ifdef _DEBUG_MODE_
cout << "Program exited successfully" << endl;
#endif
return (EXIT_SUCCESS);
}
Cheers!!
-Swapnil