[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: Strange crashes

From: Norbert Unterberg <nunterberg_at_gmail.com>
Date: 2006-04-09 18:35:21 CEST

2006/4/9, Stefan Küng <tortoisesvn@gmail.com>:
>
> if (cachedDir)
> return m_mostRecentStatus = cachedDir->GetStatusForMember(...);
>
> The crash happens on the second line, because 'cachedDir' is NULL!

It shouldn't (can't) crash if cachedDir is NULL. But are you quite
sure that cachedDir is NULL? I had similar problems in the past, and
sometimes the "this" pointer was NULL, so the crash would happen on
the assignment to m_mostRecentStatus. And at some other times
cachedDir was "nearly" NULL, which can happen when you take the
address of a structure member through a NULL pointer. (like cachedDir
= &pointerToNull->some_member)

Just some additional items to look for...

Norbert

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tortoisesvn.tigris.org
For additional commands, e-mail: dev-help@tortoisesvn.tigris.org
Received on Sun Apr 9 18:35:37 2006

This is an archived mail posted to the TortoiseSVN Dev mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.