codegooglecom / libproxy

Automatically exported from code.google.com/p/libproxy
GNU Lesser General Public License v2.1
0 stars 0 forks source link

Crash on windows when we use /MT instead of /MD flag in visual studio 2008. #113

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Change the VS-2008 compiler flags from /MD(multi threaded dlls) to
/MT(only multi threaded)
2. Run proxy test program
3. It will crash (tested on XP & Win7)

What is the expected output? What do you see instead?
It is crashing with assertion failure in heap. See the image attached for
details.

What version of the product are you using? On what operating system?
r661 from trunk.

Please provide any additional information below.
The libproxy project on windows is using a  /MD & /MDd (Multi threaded dll)
compiler flag. Our project requires libproxy project (all relevant
subprojects) to be build with /MT & /MTd (Multi threaded) compiler flags.

When we changed the flag to /MT from /MD,
the proxy test program started crashing. (see the image attached for details).

How to fix this?
Advance Thanks

-Parimal Das

Original issue reported on code.google.com by parimal....@gmail.com on 11 May 2010 at 7:28

GoogleCodeExporter commented 9 years ago
Please find the error here in the image.

Original comment by parimal....@gmail.com on 11 May 2010 at 7:29

Attachments:

GoogleCodeExporter commented 9 years ago
LibProxy uses a plug-in mechanism that relies on DLL. Not using the DLL version 
of
standard C++ library on Windows can only lead to this situation. I must close 
the
issue since that change you are making goes against the internal library design.

Original comment by nicolas.dufresne@gmail.com on 17 May 2010 at 5:22