Saturday, July 16, 2011

Can anyone explain this program oddity?

Your not managing your memory properly. It looks like you're passing arguments by value, which puts the data on the stack. Then you manipulate data on the stack and return and your stack gets hosed. You're going to want to pass by reference.

No comments:

Post a Comment