By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
434,651 Members | 1,908 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 434,651 IT Pros & Developers. It's quick & easy.

Tru64: passing integer to a stringstream causes crash

P: n/a
Hi,

I have a c++ application in which I am using stringstream to convert
integer/long to string.

std::stringstream x;
int y = 5;
x << y;

Whenever I do that I get an unalignedd access error and my application
core dumps. The compiler version is :
Compaq C++ V6.5-014 for Compaq Tru64 UNIX V5.1A (Rev. 1885)
Compiler Driver V6.5-014 (cxx) cxx Driver

But when I initialise the stringstream using its constructor before
passing int to it, it works.

std::stringstream x("");
int y = 5;
x << y;

Can anyone help me in finding out what is causing this kind of
behaviour in my application.
Thanks in advance.

Regards,
Avinash

Apr 11 '06 #1
Share this question for a faster answer!
Share on Google+

This discussion thread is closed

Replies have been disabled for this discussion.