Review your favorite Linux distribution.
Go Back > Forums > Non-*NIX Forums > Programming
User Name
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.


  Search this Thread
Old 10-13-2006, 11:52 AM   #16
Senior Member
Registered: Mar 2005
Location: USA::Pennsylvania
Distribution: Slackware
Posts: 1,065

Original Poster
Rep: Reputation: 45

Originally Posted by dmail
Just an after thought which would not explain why moving the declaration would work but.
Are you storing or passing the pointer returned by .str()?, this could cause a seg fault.
no. the params are stored in a vector of Param (the nested class) then they are read out and converted when they are asked for and returned as a int, double, etc value.. any char* are copied when read out.

the really weird thing about this is that when the thing was crashing, i was never even using the stringstream anywhere. i just declared it and it caused it to crash.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Indirection in class member declaration websinger Programming 8 09-08-2006 10:24 AM
passing a class member function to pthread_create. dmail Programming 1 07-29-2006 11:15 AM
C++: difference between static method variable and static class variable? Thinking Programming 3 01-16-2006 10:08 AM
C++ / Passing a variable by reference to a class member function. sepulture Programming 12 11-15-2005 10:23 PM
a class with a ifstream member Hano Programming 2 04-24-2002 11:01 AM > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 08:56 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration