when the TRODataSnapModule raises an exception on the server, the client catches that exception, but keeps an thread running. So when I close the client, it doesn’t close at all. It’s still running in the background.
When you run the sample the Delphi IDE you will get a “database not connected” error, and the debugger doesn’t close when you close the client. You will also notice that there an additional thread running.
Please change the dll path in the TRODLLChannel compoenent in the client project, regarding your directory. I had to hardcode that path in order the IDE could find the dll server.
When you close the appliction, is there also an invisible process running in the background or in debug mode, the debugger doesn’t close, since there is a hidden thread running?
The point is, when I use the IBX component in a single exe application, I don’t have that “hanging” thread and program closes. It seems it is related to the DLL and threading.
Do you have any hints, how I can get rid of that “hanging” thread?