Quote:
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.