Hi,
I have downloaded & built openssl-0.9.8e.tar.gz on WinXP using
VCExpress 2005. Everything builds fine but when I compile & run a
program using the library, it remains locked even after it exits. i.e. I can
never delete the exe till I reboot the machine
For eg.
I have the following trivial program copied at the end.
I compile it as cl /MTd /Zi /EHsc a.cpp /link /DEBUG
I run a.exe. It prints
Connected Successfully
Disconnected Successfully
But then when I try "del a.exe"
it gives
"The process cannot access the file because it is being used by another process"
Is this a known issue? What do I do other than rebooting the machine everytime
I run the program?
--------------------------------------------------------------------------------------------------------
// File : a.cpp
// cl /MTd /Zi /EHsc a.cpp /link /DEBUG
#include <iostream>
using std::cout;
#include "openssl/bio.h"
#include "openssl/ssl.h"
#include "openssl/err.h"
#pragma comment(lib, "ssleay32.lib")
#pragma comment(lib, "libeay32.lib")
int main()
{
/* Initializing OpenSSL */
SSL_load_error_strings();
ERR_load_BIO_strings();
OpenSSL_add_all_algorithms();
BIO * bio;
bio = BIO_new_connect("myhost:80");
if(bio == NULL)
{
/* Handle the failure */
perror("new_connect");
}
if(BIO_do_connect(bio) <= 0)
{
/* Handle failed connection */
perror("do_connect");
}
cout<<"Connected Successfully\n";
BIO_free_all(bio);
cout<<"Disconnected Successfully\n";
}
---------------------------------------------------------------------------------------------------------
______________________________________________________________________
OpenSSL Project http://www.openssl.org
User Support Mailing List [email protected]
Automated List Manager [EMAIL PROTECTED]