that worked, thats strange.
did the previous code that i posted work for you?
that worked, thats strange.
did the previous code that i posted work for you?
"Build a man a fire, and he'll be warm for a day. Set a man on fire, and he'll be warm for the rest of his life."
"They say a little knowledge is a dangerous thing, but it's not one half so bad as a lot of ignorance."
"Light thinks it travels faster than anything but it is wrong. No matter how fast light travels, it finds the darkness has always got there first, and is waiting for it."
[all]- Terry Pratchett
yes, its basically the same code I originally posted in response to your post. It may appear that your compiler was causing a pointer to be returned vice a copy of the object for the non working code sample. This would thus cause you to try to access a variable that was out of scope and thus potentially (well in your case) result in shutting down your program.
Just a theory though, maybe someone else has seen this before?
i don't think most standard compilers support programmers with more than 4 red boxes - Misplaced
It is my sacred duity to stand in the path of the flood of ignorance and blatant stupidity... - quzah
Such pointless tricks ceased to be interesting or useful when we came down from the trees and started using higher level languages. - Salem