Error on data writing to the connection: invalid socket

Discussion of open issues, suggestions and bugs regarding MyDAC (Data Access Components for MySQL) for Delphi, C++Builder, Lazarus (and FPC)
Post Reply
atta_mudassar
Posts: 2
Joined: Fri 22 Dec 2017 16:28

Error on data writing to the connection: invalid socket

Post by atta_mudassar » Fri 22 Dec 2017 16:41

I am working on an android app that has direct access to mySql. I am using MyDac to connect to mySql. Problem is that the app works fine on Android 6 but gives following error on Android 7 and terminates immediately.
Project xxxxx.apk raised exception class EMySqlException with message 'Error on data writing to the connection: invalid socket'.
I tried to update sdk and am now using Android sdk 24.4.1 but still the problem is same.
Any ideas what to do?

ViktorV
Devart Team
Posts: 3168
Joined: Wed 30 Jul 2014 07:16

Re: Error on data writing to the connection: invalid socket

Post by ViktorV » Mon 25 Dec 2017 09:18

Please specify the used full IDE version.

atta_mudassar
Posts: 2
Joined: Fri 22 Dec 2017 16:28

Re: Error on data writing to the connection: invalid socket

Post by atta_mudassar » Tue 26 Dec 2017 14:37

I am using RAD Studio XE7 update 1. And MyDac version 8.6

ViktorV
Devart Team
Posts: 3168
Joined: Wed 30 Jul 2014 07:16

Re: Error on data writing to the connection: invalid socket

Post by ViktorV » Tue 26 Dec 2017 15:22

The issue may be due to that RAD Studio XE7 has no support for Android 7: http://docwiki.embarcadero.com/Platform ... /Main_Page
Please try to compile and run your project for Android version supported in RAD Studio XE7.

Post Reply