Surely a memory leak. delete the pointer to the table once you are done using it. Are you calling the above code inside a loop?
WolfPack
Postaholic
2,051 posts since Jun 2005
Reputation Points: 572
Solved Threads: 115
The casts in C++ are a sure sign of trouble.
Salem
Posting Sage
11,531 posts since Dec 2005
Reputation Points: 5,862
Solved Threads: 953
Have you written the entire code, then it would be better if you post it rather than leave us guessing.
~s.o.s~
Failure as a human
11,938 posts since Jun 2006
Reputation Points: 3,281
Solved Threads: 734
What is the relationship between a TMyTable and a TTable ?
Why are you casting?
Casting in C++ usually means you're doing something unwise and possibly dangerous, and that's just what has happened.
Salem
Posting Sage
11,531 posts since Dec 2005
Reputation Points: 5,862
Solved Threads: 953