×

Discussion Board

Results 1 to 4 of 4
  1. #1
    Registered User
    Join Date
    Dec 2008
    Posts
    38

    Exclamation CSecureSocket::StartClientHandshake() panics with stray signal

    Hi!
    I am facing a problem for almost a week now.
    I keep getting e32user cbase 46 panic when calling CSecureSocket::StartClientHandshake().

    Thing is I am doing everything ok (main thread, active objects ... just like the csecuresocket sample from the wiki). but after calling StartClientHandshake() and setactive() I get this stray signal. I am deeply suspecting this is a bug in CSecureSockets. for the following reasons:

    I have already tried in the past days:
    1. Working in the main thread of the application
    2. Working in a dedicated thread (of course with all the cleanupstack + trap loop as should be in a GUI thread)
    3. Tried using a nested CActiveScheduler::Start() loop
    4. Removed the loop and moved to using active objects without creating a nested loop.
    5. Thing is that from time to time I do manage to the client handshake working. but than after sometime I get the stray signal.

    Is there a thing that I should be watching for?? Is there an open bug using TLS??

    Please, if someone has a clue how to start resolving this issue..

    Thanks

  2. #2
    Regular Contributor
    Join Date
    Dec 2010
    Posts
    142

    Re: CSecureSocket::StartClientHandshake() panics with stray signal

    I have used CSecureSockets successfully so there can't be a bug in that. can u share some of your code?

  3. #3
    Nokia Developer Moderator
    Join Date
    Mar 2003
    Location
    Lempäälä/Finland
    Posts
    29,166

    Re: CSecureSocket::StartClientHandshake() panics with stray signal

    just make sure

    1. your active object is added to the active scheduler,
    2. You do start a request that takes the request status of the active object as an argument
    3. make sure you call SetActive always after starting the request
    4. make sure you do not redefine, or use any other request status, than the one defined in CActive

    if you follow these rules, you should nto get problems. Of course you should remember to implement DoCancel, and call Cancel before making any requests.

  4. #4
    Nokia Developer Champion
    Join Date
    Jul 2004
    Posts
    2,015

    Re: CSecureSocket::StartClientHandshake() panics with stray signal

    Post the code and the problem should be found quickly

Similar Threads

  1. CSecureSocket::StartClientHandshake fails with -7510
    By mtaponen in forum Symbian Networking & Messaging (Closed)
    Replies: 5
    Last Post: 2010-10-13, 09:31
  2. CSecureSocket - StartClientHandShake fails
    By chengguangguo in forum Symbian Networking & Messaging (Closed)
    Replies: 21
    Last Post: 2008-11-06, 10:23
  3. CSEcureSocket::StartClientHandshake, trouble in emulator
    By cartman_ume in forum Symbian Networking & Messaging (Closed)
    Replies: 4
    Last Post: 2007-05-21, 20:42
  4. Problem with CSecureSocket StartClientHandShake
    By chengguangguo in forum Symbian Networking & Messaging (Closed)
    Replies: 0
    Last Post: 2006-02-20, 05:27
  5. CSecureSocket::StartClientHandshake horribly slow
    By glarock in forum Symbian Networking & Messaging (Closed)
    Replies: 0
    Last Post: 2003-11-08, 03:00

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
×