[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: Stefan Küng <tortoisesvn_at_gmail.com>
Date: 2006-04-09 19:00:36 CEST

Norbert Unterberg wrote:
> 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

Yes, according to the crashdump, cachedDir is NULL.

> sometimes the "this" pointer was NULL, so the crash would happen on

No, the 'this' pointer it valid.

> 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)

Checked that too. It's really NULL. Even the thrown exception text
mentions an illegal access to address 0x0000.

> Just some additional items to look for...

Thanks for the help.
I just found this here:
http://blogs.msdn.com/oldnewthing/archive/2005/04/12/407562.aspx

Maybe that's a possible reason?

Stefan

-- 
        ___
   oo  // \\      "De Chelonian Mobile"
  (_,\/ \_/ \     TortoiseSVN
    \ \_/_\_/>    The coolest Interface to (Sub)Version Control
    /_/   \_\     http://tortoisesvn.tigris.org
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tortoisesvn.tigris.org
For additional commands, e-mail: dev-help@tortoisesvn.tigris.org
Received on Sun Apr 9 19:00:55 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.