D.Tkalcec (RTC)
|
|
« Reply #1 on: September 30, 2013, 09:18:21 PM » |
|
My wild guess is that you are using the components in Multi-Threaded mode and destroying them while they are still being used. To make sure the components are NOT in use before destroying them, you need to close all connections. To do this, you can use the "DisconnectNow" method on the TRtcHttpClient component and the "StopListenNow" method on the TRtcHttpServer component. This has to be done before ANY component used by the connection components is destroyed. Usually, this is done from the OnCloseQuery event when the components are placed on a Form, or the OnDestroy event when the components are placed on a DataModule.
If you are getting AVs in a running application simply because you've called "Disconnect", then I need an example Project which demonstrates this behavior, the Delphi IDE used to compile the Project, target platform the Project is being compiled for, and step by step instructions to reproduce the error,so I can debug it. Unfortunately, a line number inside a unit is not enough to find the source of the problem. This especially goes for Access Violations, which can be caused by a lot of things. Location of an Access Violation does not even have to be related to the actual source of the problem. Possible problems for AVs are memory overwriting, bad memory allocation and continued use of objects which have already been destroyed (calling Free but not setting the Object pointer to NIL).
Best Regards, Danijel Tkalcec
|