Share this post

Link to post

Share on other sites

What are you trying to pull exactly, and where is o being declared exactly, because i could not see anywhere in the code, except for the fact you are calling it withing main. i would definitely like to know what he value of o is.

Share this post

Link to post

Share on other sites

Original post by DecriusThe application returns 3...it just crashes/stops running.

Yes, I guess I'm allocation something I do not control. And I'm sure the O and I are fine, since its in a for loop which will only loop through the objects/items available.

If it returns 3 then it's not crashing. A crash would be it spitting out an access violation or similar.

I suggest using the debugger to step through the code to determine what throws the error. I suggest reading This if you're not familiar with the debugger (Assuming Visual Studio of course, if you're not using it then use the debugger with whatever IDE you have).