Skip to Main Content

DevOps, CI/CD and Automation

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

How to fix bad_alloc exception issue for C++ application

807575Nov 24 2008 — edited Nov 24 2008
Hi,

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,
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Dec 22 2008
Added on Nov 24 2008
4 comments
482 views