I have several Delphi programs that maintain connections to a database (some Oracle, some Firebird.) If the program are running while Windows goes into sleep mode the connection to the database is lost. What’s the best way to handle this situation? Is there some way to receive an event before the network goes into sleep mode so I can attempt to handle the situation better?
I have several Delphi programs that maintain connections to a database (some Oracle, some
Share
To elaborate on RRUZ, you want something like:
in your form. Then
WMPowerBroadcastwill be something like: