Re: Help in creating MUCroom
From: Federico Rossi <f.rossi@xxxxxxxxxxxxxxxxxxxx>
Date: Mon, 2 Apr 2007 17:22:04 +0200 (CEST)
With the latest trunk (vers. num 2059)
and putting the delete (j) outside the "main loop" ...
while( ce == ConnNoError && disconnected==false)
   {
           ce = j->recv(350);
   }
qDebug( "STOP GLOOX THREAD - ce: %d\n", ce );
delete (j);

I still obtain the same error
First-chance exception at 0x77f129d2 in JabberTester.exe: 0xC0000005: Access violation reading location 0xcdcdcde1. Unhandled exception at 0x77f129d2 in JabberTester.exe: 0xC0000005: Access violation reading location 0xcdcdcde1.

in

 void SChannel::cleanup()
 {
        DeleteSecurityContext( &m_context );
 -->  FreeCredentialsHandle( &m_credHandle );
 }

Cheers

Federico


Jakob Schroeter ha scritto:
On Mon Apr 2 2007, Federico Rossi wrote:
thanks Jakob...
but I have the same behaviour even with the following code:

void account_logout()
{
        if (j){
            j->disconnect();
            delete( j );
       }
}

Where is the mistake?

You should probably wait until after connect() returned (for blocking connect()), or the loop that calls recv() terminated (for non-blocking connect()).

Also, can you please try latest trunk?

cheers,
Jakob