Re: Operator new failing in windows after several days of operation
- From: Adrian Vacaliuc <adrian.vacaliuc@xxxxxxxxxxxxxxx>
- Date: Wed, 10 Aug 2005 19:54:51 -0700
More info/answering questions from other posts:
>To reiterate points you've made in other posts in this thread:
>
>1. You're using VC6 with SP5.
>2. You're using boost
>3. You're using the STL
>4. Your program uses several (11) threads
>5. You see a crash which might be explained by heap corruption after 3 days
>of heavy load.
6. The application is broken up into 1 MFC application and 10-20
dynamically loaded DLLs.
7. All DLLs link to the Multithreadded DLL runtime in the compiler
settings
8. There is a mix of MFC extension and NON-MFC DLLs
>Questions:
>1. Are you linking with thrownew.obj? If not, you have a non-conforming
>implementation of ::operator new(). See
>http://msdn.microsoft.com/msdnmag/issues/03/09/LegacySTLFix/default.aspx for
>a thorough discussion.
No. I am doing nothing more than linking to the multithreadded DLL
runtime. I will investigate your link furthur.
>2. Are you using the VC version of the STL, and if so, have you applied all
>of the patches found at http://www.dinkumware.com/vc_fixes.html?
Were currently only using the ones for XMEMORY, XSTRING, and XTREE,
because those were the only ones that seemed to apply to our
application.
>3. What are your compiler and linker settings?
compiler options:
/nologo /MDd /W3 /Gm /GR /GX /Zi /Od /I
..exe linker options:
winmm.lib boost_threadd.lib kernel32.lib version.lib /nologo
/subsystem:windows /incremental:yes /pdb:"../Debug/Sts.pdb"
/map:"Debug/Sts.map" /debug /machine:I386 /out:"../Debug/Sts.exe"
/pdbtype:sept /libpath:"../debug"
..dll linker options:
boost_threadd.lib /nologo /base:"0x02B00000" /dll /incremental:yes
/pdb:"../Debug/Rdts.pdb" /map:"Debug/Rdts.map" /debug /machine:I386
/out:"../Debug/Rdts.dll" /implib:"../Debug/Rdts.lib" /pdbtype:sept
/libpath:"../debug"
I only included one of the dlls. the rest all all very similar, with
differing perferred load addresses, etc.
>4. Is the program a monolithic EXE, or is it broken into one or more DLLs?
>If so, what are the compiler and linker settings for the DLLs?
Many dlls. I can post them all, if you think it would help, but it
would be quite verbose. Would you like me to do so?
-Adrian
.
- Follow-Ups:
- Re: Operator new failing in windows after several days of operation
- From: Carl Daniel [VC++ MVP]
- Re: Operator new failing in windows after several days of operation
- References:
- Operator new failing in windows after several days of operation
- From: Adrian Vacaliuc
- Re: Operator new failing in windows after several days of operation
- From: Carl Daniel [VC++ MVP]
- Operator new failing in windows after several days of operation
- Prev by Date: Re: Operator new failing in windows after several days of operation
- Next by Date: Re: Operator new failing in windows after several days of operation
- Previous by thread: Re: Operator new failing in windows after several days of operation
- Next by thread: Re: Operator new failing in windows after several days of operation
- Index(es):
Relevant Pages
|