From: Fred P. Jr. <fp...@us...> - 2003-10-31 10:15:48
|
Nickolay Samofatov wrote: > Could you publish backtraces of this calls ? They should originate > from initialization of STL library. If this is not the case this may > cause serious problems. I looked at the new and delete runtime calls when I first noticed them. They originate from STL usage in the FB database creation code, in the FB library. IMO, this is correct. An STL implementation that makes calls to "the" global new or delete operators *should* call the replacement operators defined in the program object file. That's what is happening. Since your hack relates to certain FB defined classes, not STL classes, I don't think there is a problem with these calls. Rather than post the verbose backtraces, I'm e-mailing you the source for the modified test program, as you requested, so you can resolve any questions you may have. > Microsoft violates this [ODR] rule in DLL's. And I think that was one of a > few wise Microsoft decisions. If you don't mind confusing, proprietary, non-portable code. We'll just have to "agree to disagree" on this point. ;-) >> If someone with a MSVC compiler wants to try the test program ... > I'll probably make a look at MSVC build before backporting my changes > to FB1.5. Sounds good! Regards, ---Fred P. |