c++builder-xe4

ADO Error exception handling?

大兔子大兔子 提交于 2019-12-24 02:37:14
问题 I just switched from using the BDE to ADO by replacing the Tables and Queries to its equivalent in ADO components. I'm always execute the query inside try...catch like this: //Fdm is Data Module //TEndOfDay is TTable //QEndOfDay is TQuery Screen->Cursor = crSQLWait; Fdm->QEndOfDay->SQL->Add("SELECT * FROM TEndOfDay"); try{ Fdm->QEndOfDay->ExecSQL(); Fdm->QEndOfDay->Open(); Screen->Cursor = crDefault; } catch (EDBEngineError &DBEngineError){ strError = DBEngineError.Message; Screen->Cursor =

Unable to detect C++ synchronous boost::asio::ip::tcp::socket connection being closed

孤街醉人 提交于 2019-12-23 06:07:10
问题 I am using boost::asio to make a synchronous TCP socket connection to a node.js TCP server application that runs on the same computer. I am using Embarcadero RAD studio XE4 on Windows building 64 bit application that uses the Embarcadero integrated boost version 1.50. Things work fine except when the node.js TCP server shuts down. When this occurs my C++ client application does not detect the disconnection when I read from the socket. However, it does detect the disconnection when I write to

Unable to detect C++ synchronous boost::asio::ip::tcp::socket connection being closed

流过昼夜 提交于 2019-12-23 06:07:03
问题 I am using boost::asio to make a synchronous TCP socket connection to a node.js TCP server application that runs on the same computer. I am using Embarcadero RAD studio XE4 on Windows building 64 bit application that uses the Embarcadero integrated boost version 1.50. Things work fine except when the node.js TCP server shuts down. When this occurs my C++ client application does not detect the disconnection when I read from the socket. However, it does detect the disconnection when I write to