So, please leave it as is.
Too late.
Any other "questionable" code you see?
How about
void CImageLib::RemoveImage(const wxString &name)
{
CAnyImage *prev = m_image_map[name];
if ( prev ) {
m_image_map.erase(name);
}
}
If the key is in the map it removes the map entry, but does not delete the data pointed to.
If the key is not in the map it leaves a new entry with a Null pointer.
(fixed)
And then there is the code that still causes it to crash. Haven't tracked it down yet, must first enable libPNG for win.
This is amazing, i've came here looking for an answer to my problem and now i'm in the middle of... nowhere!
Sorry. We usually don't misbehave in users' threads.
About your initial problem: I've noticed it too, yeah. But I've not got so far as to start analyzing it. Is your webserver linked with libPNG ? I think it might be related (occurring in builds without libPNG). Lfroen could probably fix it in a minute if he bothered to climb down from his higher spheres.
