How to fix bad_alloc exception issue for C++ application
807575Nov 24 2008 — edited Nov 24 2008Hi,
I am working on a C++ project, which is rehosting from Mainframe to Solaris. We are using Sun C++ compiler and 64-bit spac machine.
This application is very huge and needs more memory to execute properly. It depends on oracle also. Issue is in some specific scenarios application throwing "bad_alloc" exception.
We tried increasing RAM size, but of no use. I read some where on the NET, stack overflow is main reason under bad_alloc error.
In any case, please let me know how we can increase stack size for an application. Any compiler option available? Or please suggent me in analyzing root cause for this error.
Regards,