BertB 0 Posted March 26 I was tasked with investigating a problem with a piece of software that is using the latest version of ICS. In the logfile I see the following message: Handle Background Exception, source: TCustomWSocket.ASyncReceive - Value 'count' not found This not much information, I know, but can someone point me in a direction to search for the cause of this message? Share this post Link to post
Angus Robertson 625 Posted March 26 Under what circumstance does the exception happen? In which component. WSocket is used in all components. Most ICS applications that receive data have code in the onDataAvailable event handler to handle that data, and an unhandled exception during that code can result in your error, so it is unlikely to be an ICS problem. I'd ensure all exceptions in the event handler are handled and logged, rather than letting them fall into the ICS error handler. Angus Share this post Link to post
BertB 0 Posted March 26 As far as I can see now, a TSslHttpServer component must be the one. In the application logging I see that it accepts data from a POST and then sends back a result. When no result is being sent back to the caller I see the following in IcsLogger.log: Sorry for posting an image, otherwise I get an error message about spam from CleanTalk. Share this post Link to post
Angus Robertson 625 Posted March 26 The web server component has several events for the processing of requests, the exception will be in one of those events. Angus Share this post Link to post
FPiette 391 Posted Thursday at 07:35 AM 17 hours ago, BertB said: Handle Background Exception, source: TCustomWSocket.ASyncReceive - Value 'count' not found Is it possible for you to run the application under Delphi debugger? If you do, the debugger will show you the exact location of the exception and a stack trace. Those are the best information to understand where and why the exception occurs. Share this post Link to post
BertB 0 Posted Thursday at 09:20 AM The software is running on a server and the error occurs only once in a while. I shall see what I can do. Have to investigate the project further. Share this post Link to post
mjustin 26 Posted Thursday at 12:10 PM 2 hours ago, BertB said: The software is running on a server and the error occurs only once in a while. In this case, JclDebug or madExcept (commercial) may be useful. They can be used to include detailed information about exceptions, including stacktraces. Share this post Link to post
FPiette 391 Posted Thursday at 03:20 PM 5 hours ago, BertB said: The software is running on a server and the error occurs only once in a while. I shall see what I can do. Have to investigate the project further. You can use the remote debugger. And as other said, using madExcept is an excellent choice. You'll also have a stack trace. I use madExcept a lot! Share this post Link to post