| dexter 2004-09-21, 3:57 pm |
| Grettings
I've been using CppUnit for 7 months and all was going very well! I've
reached more or less 130 text fixtures! One day I included a new unit to
my project (in Borland C++ Builder 5, cppunit was compiled under Borland
C++ Free Compiler) and I couln't run my tests any more!
I have an access violation and It's origin is in (99% sure of this)
AutoRegisterSuite!
Facts:
1) The AccessViolation appears even before the instruction pointer
reaches the WinMain function!
I've read on the docs that AutoRegisterSuite operates
with static variables! In C++ static variables are allocated before
program execution!
2) The stack trace is:
operator delete
basic_string<char, std::char_traits<char>, std::allocator<char>
>::__unLink(this)
std::basic_string<char, std::char_traits<char>,
std::allocator<char>>::~basic_string<char, std::char_traits<char>,
std::allocator<char> >
CppUnit::AutoRegisterSuite<MyTestFixture>::AutoRegisterSuite<MyTestFixture>
_STCON0_
3) The IDE shows me this line on memory.stl:
void deallocate(pointer p, size_type)
{
::operator delete(p); //<--- Error line where
}
4) this seams closelly related with bug #825717
I've reassembled the project! I've tryed to debug as far as I can! But
nothing!
I can't live anymore without my tests :o(! Please Help me
thanks
dex
|