U++ framework
Do not panic. Ask here before giving up.

Home » Extra libraries, Code snippets, applications etc. » OS Problems etc., Win32, POSIX, MacOS, FreeBSD, X11 etc » What happens with the virtual function PreDestroy in Linux?
Re: What happens with the virtual function PreDestroy in Linux? [message #5447 is a reply to message #5445] Fri, 22 September 2006 00:25 Go to previous messageGo to previous message
nicomesas is currently offline  nicomesas
Messages: 104
Registered: September 2006
Location: Barcelona, Spain
Experienced Member
OK
Then, he is correct to use the destructor to make this type of things?

class someThing : public TopWindow
{
  MySqlSession mySql ;
  someThing()
  {
    mySql.Connect(...........) ;
  }
  virtual ~someThing()
  {
    mySql.Close() ;
  }
}

I believe that still I have Windows mentality and I do not finish thinking that can do this and be to me so calm, but in fact works.

UPP is great Smile

Nico
 
Read Message
Read Message
Read Message
Read Message
Previous Topic: Microsoft Visual C++ workspace
Next Topic: Rare behavior in Windows
Goto Forum:
  


Current Time: Wed Sep 02 05:20:30 GMT+2 2026

Total time taken to generate the page: 0.00531 seconds