The biggest problem with mixing /MD and /MTd being that you are using two different C run-time libraries within the same application, although both are multi-threaded capable.
The two memory heaps are different, and so are the handle sequences for some types of handle allocations. You may even get handle values that are duplicated, but with completely different references within the run-time environments. As a result, if there isn't perfect layer separation at some stage you'll corrupt memory in unpredictable areas. Mixing run-times is a recipe for disaster, hence Dr Henson's suggestion. Regards, Simon -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Dr. Stephen Henson Sent: 26 March 2007 12:30 To: openssl-users@openssl.org Subject: Re: Process getting locked on Win32 On Mon, Mar 26, 2007, Rocky S wrote: > On 3/23/07, Dr. Stephen Henson <[EMAIL PROTECTED]> wrote: > >On Fri, Mar 23, 2007, Rocky S wrote: > > > >> 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 > >> > > > >Try it with /MD instead of /MTd. > > > I fail to see how this will help. OpenSSL by default is compiled with /MD if you don't change that and compile with /MTd you can get a runtime library conflict which can produce strange behaviour. Steve. -- Dr Stephen N. Henson. Email, S/MIME and PGP keys: see homepage OpenSSL project core developer and freelance consultant. Funding needed! Details on homepage. Homepage: http://www.drh-consultancy.demon.co.uk ______________________________________________________________________ OpenSSL Project http://www.openssl.org User Support Mailing List openssl-users@openssl.org Automated List Manager [EMAIL PROTECTED] This message has been scanned for viruses by MailController - www.MailController.altohiway.com ______________________________________________________________________ OpenSSL Project http://www.openssl.org User Support Mailing List openssl-users@openssl.org Automated List Manager [EMAIL PROTECTED]