Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
IdTCPClient on Android: Connecting to non-active network
#11
(05-08-2018, 08:55 AM)BartKindt Wrote: But now I get an AV:
...
TCPThread.Execute: Start main loop
ERROR: TCPThread.Execute: GStack failed: WIFIInterface=wlan0 Length(WIFIInterface)=5: Access violation at address 90CC4666, accessing address 00000014

An AV at a memory address near 0 usually means you are accessing a nil pointer.  My guess would be the TIdTCPClient.Socket.Binding object hasn't been created yet when you call setsockopt().  Try moving that call into the TIdTCPClient.OnSocketAllocated or TIdTCPClient.OnAfterBind event instead.  That ensures the Socket.Binding object and its socket Handle are both ready for use.

Reply


Messages In This Thread
RE: IdTCPClient on Android: Connecting to non-active network - by rlebeau - 05-08-2018, 05:12 PM

Forum Jump:


Users browsing this thread: 2 Guest(s)