[Muscle] localHContext error

Rodrigo Canellas rcanellas at certisign.com.br
Mon Nov 13 10:45:00 PST 2006


Hi,

In my test program, in the beginning of every test I call ' 
MSCListTokens' and then 'MSCEstablishConnection', and in the end I call  
'MSCReleaseConnection'.

When I run two tests in a roll, the second always fails.

I followed the code and I found out that this happens because 
'localHContext' is not set to 0 in 'MSCReleaseConnection', only in 
'musclecard_fini', which is only called when the MUSCLE lib is unloaded.

Therefore, I inserted the line

"
localHContext = 0;
"

at the end of 'MSCReleaseConnection', right after
"
pConnection->hContext = 0;
"

and before
"
pConnection->shareMode = 0;
"

and now I can run as many tests I want, without stopping my test program.


If I what I did is correct, how can this become part of the official 
MUSCLE code?


Thanks,


-- 



------------------------------------------------------------------------

CERTISIGN <http://www.certisign.com.br/>**Rodrigo Canellas**
Analista de Sistemas
(21) 4501 1833

Certisign Certificadora Digital
certisign.com.br <http://www.certisign.com.br/>





More information about the Muscle mailing list