RTC Forums
April 18, 2024, 03:36:19 AM *
Welcome, Guest. Please login or register.

Login with username, password and session length
 
   Home   Help Login Register  
Pages: 1 2 [3]
  Print  
Author Topic: Ambiguos gate client disconnection  (Read 19853 times)
Pieter
RTC Expired
*
Posts: 17


« Reply #30 on: September 07, 2016, 07:07:15 PM »

Hi Danijel,

Thank you very much for the update! I will run a test tomorrow and let you know how it went.

Best regards,
Pieter
Logged
D.Tkalcec (RTC)
Administrator
*****
Posts: 1881


« Reply #31 on: September 07, 2016, 08:52:30 PM »

Ok. I'm looking forward to your feedback.

Best Regards,
Danijel Tkalcec
Logged
Pieter
RTC Expired
*
Posts: 17


« Reply #32 on: September 08, 2016, 12:44:37 PM »

Hi Danijel,

I have installed version 7.38 and have rebuilt the server.
I then started the server from Delphi and stopped it after a few seconds.

When the server is stopped it gives this error:
First chance exception at $000000000088B91B. Exception class $C0000005 with message 'c0000005 ACCESS_VIOLATION'.

The execution halts at FCS.Acquire:
procedure TRtcBaseSockServerProvider.Enter;
  begin
  FCS.Acquire;
  end;


The resulting ERROR.log file contains one line:
2016-09-08 13:36:38.604; TRtcSocketClientThread.Destroy Par.RemoveThread Exception! EAccessViolation: Access violation at address 000000000088B91B in module 'Lobby.exe'. Read of address 0000000000000000

This did not happen when I was using versions up to 7.36.
I have sent you the log files in case you want to review them.

Thank you and best regards,
Pieter
Logged
D.Tkalcec (RTC)
Administrator
*****
Posts: 1881


« Reply #33 on: September 08, 2016, 01:17:47 PM »

Did you stop the Server listener and disconnect the Client before shutting down the Application, as explained in this FAQ topic?

If you are using the TRtcHttpGateway component, set "Active:=False" to close the integrated Server listener.
If you are using the TRtcHttpGateClient component, set "AutoLogin:=False" and "Active:=False" to disconnect Clients connections to the Gateway Server.

Best Regards,
Danijel Tkalcec
Logged
Pieter
RTC Expired
*
Posts: 17


« Reply #34 on: September 08, 2016, 01:26:46 PM »

Hi Danijel,

I just tested logging in with the client and it works great.
I will verify those few things regarding the error.

Thank you and best regards,
Pieter
Logged
Pieter
RTC Expired
*
Posts: 17


« Reply #35 on: September 08, 2016, 02:08:21 PM »

Hi Danijel,

To stop the server I am using this code:

Server: TRtcHttpServer
Gate: TRtcGateway
GateSrv: TRtcHttpGateClient

procedure TfrmMain.btnStopSrvClick(Sender: TObject);
begin
   if Server.StopListenNow() = wait_OK then begin
      ... some database stuff...
   end;
end;

procedure TfrmMain.ServerListenStop(Sender: TRtcConnection);
begin
   if not Sender.inMainThread then
      Sender.Sync(ServerListenStop)
   else begin
      Gate.RemoveGroup(SrvID, LGroupID, False, False);
      GateSrv.Active := False;
   end;
end;

GateSrv.AutoLogin:=False (this never changes).

I never saw that error before and the code for stopping the server has not been changed.

Best regards,
Pieter
Logged
Pieter
RTC Expired
*
Posts: 17


« Reply #36 on: September 08, 2016, 02:12:57 PM »

By the way, this happens without a client logging in.
I am only starting the server and then stopping it again.
Logged
D.Tkalcec (RTC)
Administrator
*****
Posts: 1881


« Reply #37 on: September 08, 2016, 03:47:52 PM »

I've found a few things that I've changed in v7.37 while working on TRtcMessageClient and TRtcMessageServer components, which could be causing AVs on the TRtcHttpServer component shutdown. Please, download RTC SDK v7.39 (just released) and let me know how it goes.

Best Regards,
Danijel Tkalcec
Logged
Pieter
RTC Expired
*
Posts: 17


« Reply #38 on: September 09, 2016, 12:30:10 PM »

I have installed version 7.40 and rebuilt the server but I'm sorry to say that the error has persisted.
The situation is still the same as mentioned in THIS topic.

Best regards,
Pieter
Logged
D.Tkalcec (RTC)
Administrator
*****
Posts: 1881


« Reply #39 on: September 09, 2016, 04:23:51 PM »

Please, download RTC SDK v7.41 (just released) and let me know if this works for you.

Best Regards,
Danijel Tkalcec
Logged
Pieter
RTC Expired
*
Posts: 17


« Reply #40 on: September 09, 2016, 05:29:13 PM »

Thank you for fixing this Danijel!
It works perfectly now  Smiley

Best regards,
Pieter
Logged
D.Tkalcec (RTC)
Administrator
*****
Posts: 1881


« Reply #41 on: September 09, 2016, 05:49:11 PM »

Thanks again for your feedback.

Best Regards,
Danijel Tkalcec
Logged
Pages: 1 2 [3]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.21 | SMF © 2015, Simple Machines Valid XHTML 1.0! Valid CSS!
Page created in 0.027 seconds with 16 queries.