| List: | MySQL++ | « Previous MessageNext Message » | |
| From: | Jan Busch | Date: | December 20 2005 7:45pm |
| Subject: | Re: Crashes and memory corruption | ||
| View as plain text | |||
I have had got the same problems, the same gdb-backtraces, and I think
it's inside the ResUse-deconstructor.
It calls purge() which contains:
"*delete* names_;
names_ = 0;
*
delete* types_;
types_ = 0;"
The problem is, that "names_" and "types_" are not neccessayrily
initialized with "new".
Since I changed the code like this:
" *if* (names_)
{
*delete* names_;
names_ = 0;
}
*if* (types_)
{
*delete* types_;
types_ = 0;
}
", everything works perfect.
| Thread | ||
|---|---|---|
| • Crashes and memory corruption | Björn Persson | 16 Aug |
| • Re: Crashes and memory corruption | Warren Young | 16 Aug |
| • Re: Crashes and memory corruption | Björn Persson | 17 Aug |
| • Re: Crashes and memory corruption | Warren Young | 17 Aug |
| • Re: Crashes and memory corruption | Björn Persson | 18 Aug |
| • Re: Crashes and memory corruption | Thomas Werth | 18 Aug |
| • Re: Crashes and memory corruption | Warren Young | 18 Aug |
| • Re: Crashes and memory corruption | Björn Persson | 25 Nov |
| • Re: Crashes and memory corruption | Warren Young | 15 Dec |
| • Re: Crashes and memory corruption | Björn Persson | 15 Dec |
| • Re: Crashes and memory corruption | Jan Busch | 20 Dec |
| • Re: Crashes and memory corruption | Chris Frey | 20 Dec |
| • Re: Crashes and memory corruption | Jan Busch | 21 Dec |
