RTC Forums
November 23, 2024, 07:08:00 PM
Welcome,
Guest
. Please
login
or
register
.
1 Hour
1 Day
1 Week
1 Month
Forever
Login with username, password and session length
Home
Help
Login
Register
RTC Forums
>
Subscription
>
Support
>
TRtcSockSynThread.RunJob Sock.Exec_Message(4) Exception
Pages: [
1
]
« previous
next »
Print
Author
Topic: TRtcSockSynThread.RunJob Sock.Exec_Message(4) Exception (Read 4916 times)
Max Terentiev
RTC License
Posts: 49
TRtcSockSynThread.RunJob Sock.Exec_Message(4) Exception
«
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
Re: TRtcSockSynThread.RunJob Sock.Exec_Message(4) Exception
«
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
Re: TRtcSockSynThread.RunJob Sock.Exec_Message(4) Exception
«
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
Re: TRtcSockSynThread.RunJob Sock.Exec_Message(4) Exception
«
Reply #3 on:
August 08, 2017, 02:56:14 PM »
Ok. Thank you for your feedback.
Best Regards,
Danijel Tkalcec
Logged
Pages: [
1
]
Print
« previous
next »
Jump to:
Please select a destination:
-----------------------------
Dashboard
-----------------------------
=> General
=> 3rd-Party
=> Quick Start
-----------------------------
Subscription
-----------------------------
=> Support
Loading...