
-----------------------------------
copthesaint
Sat Nov 30, 2013 11:47 pm

No Access Violations, Then Access Violations.
-----------------------------------
Be aware, I am using malloc and free, and will not be using new and delelte. Any such comments will not be taken into consideration.

So I'm having fun trying to figure out why I cannot get access to my method "Count()" which just returns the size of my array. When I construct it and then try to call count everything works fine, If I then try to destruct my class and reconstruct it the same way, I can no longer call count. I'll post the files below with the full code. Normally I try and figure out these problems, however I'm kinda running out of ideas of how to solve this, and it may be that I just need a second set of eyes.

Code in main:


GameEntity myEntity = GameEntity(5);
//IF THIS RUNS IT BEARKS
//myEntity.~GameEntity();
//myEntity = GameEntity(5);

cout 