Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
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: Thu May 16 02:21:37 CEST 2024

Total time taken to generate the page: 0.02753 seconds