RTC Forums
November 23, 2024, 04:31:24 PM *
Welcome, Guest. Please login or register.

Login with username, password and session length
 
   Home   Help Login Register  
Pages: [1]
  Print  
Author Topic: TRtcSockSynThread.RunJob Sock.Exec_Message(4) Exception  (Read 4913 times)
Max Terentiev
RTC License
***
Posts: 49


« on: August 04, 2017, 12:36:15 PM »

Hi Danijel,

I compile my app with RTC_DEBUG and I have this errors in myapp.ERROR.log:

2017-08-04 15:25:44.540; TRtcSockSynThread.RunJob Sock.Exec_Message(4) Exception! EAccessViolation: Access violation
2017-08-04 15:26:27.745; TRtcSockSynThread.RunJob Sock.Exec_Message(4) Exception! EAccessViolation: Access violation
2017-08-04 15:27:50.263; TRtcSockSynThread.RunJob Sock.Exec_Message(4) Exception! EAccessViolation: Access violation
2017-08-04 15:28:33.367; TRtcSockSynThread.RunJob Sock.Exec_Message(4) Exception! EAccessViolation: Access violation
2017-08-04 15:33:31.191; TRtcSockSynThread.RunJob Sock.Exec_Message(4) Exception! EAccessViolation: Access violation
etc

Problem should be in somewhere in my code (in RtcFunction.OnExecute, etc) or it's should be bug in RTC SDK ?

p.s. problem happens on CentOS 6, app compiled with Lazarus 1.6.4. I know it's not supported, but I need to know where to find bug - in your code or in my code.
Logged
D.Tkalcec (RTC)
Administrator
*****
Posts: 1881


« Reply #1 on: August 04, 2017, 02:29:38 PM »

It's an Access Violation, which means that the problem could be anywhere and completely unrelated to the location where the exception is being raised. The only thing I can say, is that the Access Violation is caught by a RTC Worker Thread while executing the TRtcSocketBaseSyn.Exec_StartReading method, where data is being read from a socket and then processed.

In a nutshell, the problem COULD be in your code or something you are calling from within your code, or ... since you are using an unsupported compiler and targeting unsupported platform, the problem could also be wrong type association in the "rtcTypes.pas" unit (for example, 32-bit pointers versus 64-bit) or any other platform-specific code that doesn't exactly match the platform you are targeting (like sockets or zlib, for example).

Best Regards,
Danijel Tkalcec
Logged
Max Terentiev
RTC License
***
Posts: 49


« Reply #2 on: August 08, 2017, 01:32:12 PM »

After some debugging and testing I can report: it's not RTC SDK issue !

It's related to threading problems in FPC RTL and/or my Linux distro.
Logged
D.Tkalcec (RTC)
Administrator
*****
Posts: 1881


« Reply #3 on: August 08, 2017, 02:56:14 PM »

Ok. Thank you for your feedback.

Best Regards,
Danijel Tkalcec
Logged
Pages: [1]
  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.023 seconds with 16 queries.