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 » U++ Library support » U++ SQL » MySqlSession Close and Reconnect crashes Application (Reconnect crashes on newer Upp Version (CLANG) but works on older (Mingw))
Re: MySqlSession Close and Reconnect crashes Application [message #55732 is a reply to message #55629] Thu, 03 December 2020 19:55 Go to previous messageGo to previous message
Alboni is currently offline  Alboni
Messages: 214
Registered: January 2012
Location: Deventer, Netherlands
Experienced Member
If you closed the session yourself you need to do a normal Connect() I think, not a Reconnect.

Reconnect is for when the session lost the connection from a network error etc. When that happens MySqlSession::WhenReconnect callback is activated.
The default behaviour is to call MySqlSession::Reconnect(), but you can set it to your own function from which you can call MySqlSession::Reconnect()

[Updated on: Fri, 04 December 2020 16:02]

Report message to a moderator

 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Some queries return incorrect datatypes with SqLite
Next Topic: Sql object
Goto Forum:
  


Current Time: Sun May 26 16:35:34 CEST 2024

Total time taken to generate the page: 0.03155 seconds