Hey Ryan,

[EMAIL PROTECTED] wrote:
>
>     //Origin message setup
>     Message* originMessage;           //message for origin planet owner.
>     assert(originMessage);
>
>     string originSubject = "test subject";  //Old Message -> /* "Move  
> order(s) via " + origin->getName() + " completed";*/
>     string originBody = "";
>
>     assert(originSubject != "");
>     originMessage->setSubject(originSubject);         //Segfault here
>   
Not surprising, really. Where's originMessage actually allocated? I'd 
also double-check your assert function (macro?), since I don't think 
it's working either (otherwise would have asserted there).

BTW, when it comes to pointers, it is a really, really, really good idea 
to either new/malloc them straight away, or assign them to 0 to force a 
null-pointer (not sure all compilers assign variables 0 by default).

HTH,
-J

_______________________________________________
tp-devel mailing list
[email protected]
http://www.thousandparsec.net/tp/mailman.php/listinfo/tp-devel

Reply via email to