Re: streams with CInt

From: William J. Deninger (deninger@uiuc.edu)
Date: Thu Oct 23 1997 - 00:29:34 MEST


Hello,

I've been able to track down the souce of much of my problems, and they all
seemed to be linked to the streams dilema.  How do I use streams with root
on my WinNT workstation and elliminate the following error messages:

LINK : warning LNK4103: import of deleting destructor "public: virtual void
* __thiscall ifstream::`vector deleting destructor'(unsigned int)"; image
may not run correctly
LINK : warning LNK4103: import of deleting destructor "public: virtual void
* __thiscall filebuf::`vector deleting destructor'(unsigned int)"; image may
not run correctly
LINK : warning LNK4103: import of deleting destructor "public: virtual void
* __thiscall ofstream::`vector deleting destructor'(unsigned int)"; image
may not run correctly

Certainly enough, the destructor crashes root.  I worked around this by
making the streams dynamic and simply not ever deleting them.  But this
somehow effects root which later results in messages like:

Fatal in <operator new>: storage exhausted
aborting
Warning in <TClass::TClass>: no dictionary for class TWinNTSystem available
Warning in <TWinNTSystem::StackTrace>: this method must be overridden!

Runtime error... abnormal termination.

during memory allocation calls to new.  I dont believe the size of the files
should be any consequence either.  Combined they make up less than
200kBytes.

How do I get the correct stream destructors on my Microsoft Visual C++
project?  Or how do I elliminate the stream destructor override? What
library is it in?

William J. Deninger



This archive was generated by hypermail 2b29 : Tue Jan 04 2000 - 00:26:21 MET