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

Home » U++ Library support » U++ SQL » Unexpected crash on MSSQLSession Close()
Re: Unexpected crash on MSSQLSession Close() [message #52620 is a reply to message #52612] Wed, 30 October 2019 11:59 Go to previous message
Giorgio is currently offline  Giorgio
Messages: 218
Registered: August 2015
Experienced Member
mirek wrote on Tue, 29 October 2019 19:35

Please check that there are no active Sql instances connected to that session...

Mirek


I added a commit to be sure all connections will be closed, and it seems fixed now:

MssqlDAO::~MssqlDAO(){
  if(cbdb.IsOpen()){

    cbdb.Commit();
    cbdb.Close();
  }
}


Is there a better way to check that (I tried FlushConnections() and SessionClose() but they are private or protected)?
 
Read Message
Read Message
Read Message
Previous Topic: undefined symbol when linking pgexec mingw
Next Topic: sql innerjoin not working
Goto Forum:
  


Current Time: Wed Apr 29 16:16:16 GMT+2 2026

Total time taken to generate the page: 0.00451 seconds