Re: Operator new failing in windows after several days of operation

Tech-Archive recommends: Fix windows errors by optimizing your registry



Adrian Vacaliuc wrote:
>> 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.

I think this is near the heart of your problem. Link with thrownew.obj so
new won't return null. If you disassemble thrownew.obj, you should be able
to identify the place where the out of memory exception is thrown. Set a
breakpoint there while running under windbg and wait.

>> 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?

I don't think posting more would help - everything that you've posted here
looks fine to me, with the exception of thrownew.obj.

-cd


.



Relevant Pages

  • Re: new / delete in a dll
    ... this includes compiler-generated ctors, dtor, and assignment operator. ... If you view DLLs as black boxes that don't interact ... box C-interface DLLs that link to the CRT DLL have to be very careful not ... to affect CRT state shared with other modules linking to the same CRT DLL. ...
    (microsoft.public.vc.mfc)
  • Re: Is it possible to do Static linking but optionalyl load dependent dlls
    ... We are providing IBMMQcommunication functionality in our application using the interfaces of ImqQueueManager, ImqQueue, ... Currently we are statically linking our application with the imqb23vn.dll and imqc23vn.dll by specifying it in the dependency list for linking for the project. ... Due to this kind of linking we have to ship about 10 dlls of Websphere MQ with our setup or ask he user to install WebsphereMQ prior to installing our application. ...
    (microsoft.public.vc.language)
  • Is it possible to do Static linking but optionalyl load dependent dlls
    ... the interfaces of ImqQueueManager, ImqQueue, ... Currently we are statically linking our application with the imqb23vn.dll ... Due to this kind of linking we have to ship about 10 dlls of Websphere MQ ...
    (microsoft.public.vc.language)
  • Re: Link MFC dinamically (MFC42.DLL)
    ... Linking statically gives you much bigger binaries. ... Linking MFC ... Failure to distribute the correct set of DLLs means your app may not work ...
    (microsoft.public.vc.mfc)
  • Re: VC6 + Dinkumware fixes OK for basic STL usage?
    ... sure, after all these months, what's in the V-express package. ... Since I use static linking, I didn't worry about it, assuming that there were not corresponding static libraries in the static linking case. ... Microsoft has never published a way to rebuild the DLLs ...
    (microsoft.public.vc.stl)