Tim Barnes 0 Posted June 30, 2007 Report Share Posted June 30, 2007 Hi, There seems to be a problem with the class destructors, they do not seem to be called when the class loses scope, in fact although they do not cause a compiler error, they do not appear to be compiled into the source code at all. Do you have another destructor "declaration name" that needs to be used instead of "tilde" (~) + "class name" ?? Regards... Tim #include <system.h> class Test { Test(); ~Test(); int c; }; Test::Test() { c = 0; } Test::~Test() { c = 1; // This Destructor member is not called } ScopeTestFunction() { class Test t; } void main() { int a = 0; ScopeTestFunction(); a = 1; a = 2; } Quote Link to post Share on other sites
Pavel 0 Posted August 29, 2007 Report Share Posted August 29, 2007 Constructor/destructor calls (including overloaded constructors and virtual destructors) is fixed in 6.80 release. Regards, Pavel Quote Link to post Share on other sites
Recommended Posts
Join the conversation
You are posting as a guest. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.