I am having trouble closing my socket connection.
I have a class, that owns the RSocket object, manages the connection (connect, disconnect etc) and that issues writes on the socket.
And I have another class, that just reads from the socket.
Both classes derive from CActive.
When I want to close the connection the following code is to be executed in the Writer/Manager class:
iListener->Cancel(); // iListener is the Reader object
iSocket.Close(); // close the socket after the Reader's outstanding read request has been cancelled.
But when the Reader's Cancel() method is executed the application panics: "KERN-EXEC 3". The Symbian documentation tells something about unhandled exceptions, but what exception are being thrown here, and how can they be caught?
I have no idea what the mistake is, the code is mostly copied from an example application...
Thanks for any hints in advance,