Re: Debugging help - random crashes (1f48cbc1)
From: Charles Evans (charles_evans_at_hotmail.com)
Date: 01/28/05
- Next message: annalisa via DotNetMonster.com: "Unable to start debugging. The debugger may not be properly installed"
- Previous message: darkeagle: "Remote debug from winxp sp2 to windows 2003 domain controller"
- In reply to: Oleg Starodumov: "Re: Debugging help - random crashes (1f48cbc1)"
- Next in thread: Oleg Starodumov: "Re: Debugging help - random crashes (1f48cbc1)"
- Reply: Oleg Starodumov: "Re: Debugging help - random crashes (1f48cbc1)"
- Messages sorted by: [ date ] [ thread ]
Date: Fri, 28 Jan 2005 16:30:30 -0000
Oleg, thanks for the advice. I finally got it to crash through the debugger
but i couldn't see any managed calls in the call stack, only unmanaged
calls. The output window gave me some information that has confused me even
more.
The following two ADO dll's got unloaded (log below):
Unloaded 'C:\Program Files\Common Files\System\ado\msadox.dll'
Unloaded 'C:\Program Files\Common Files\System\ado\msado15.dll'
And then the application crashed with the following in the output window:
First-chance exception at 0x4de7640a in App.exe: 0xC0000005: Access
violation reading location 0x4de7640a.
Unhandled exception at 0x4de7640a in App.exe: 0xC0000005: Access violation
reading location 0x4de7640a.
This address is where msado15.dll was loaded so now i'm thinking my
application is trying to access the objects after they've been unloaded.
The calls to ADO and ADOX are all within one function and all variables are
only in scope for that function. One of the objects, an
ADODB.ConnectionClass, is supplied as a parameter to an ADOX.CatalogClass
object and a call on the CatalogClass object is executed near the end of the
function. Would the GC kill the ConnectionClass object if it wasn't
referenced again within the function??
"Oleg Starodumov" <com-dot-debuginfo-at-oleg> wrote in message
news:OV2ekMGBFHA.2792@TK2MSFTNGP15.phx.gbl...
>
>> It's a C# application but references the ADO libraries to allow me to
>> "link"
>> a DBF file into an Access database. This is unmanaged code and even if i
>> get the problem while running under the debugger, i get a windows
>> application error dialog and the debugger knows nothing about it.
>
> Try to turn on unmanaged debugging, then the debugger should be able
> to catch the exception.
>
> Project properties | Configuration Properties | Debugging |
> "Enable Unmanaged Debugging" = True
>
> If it succeeds and the debugger stops on the exception, check call stacks
> of managed threads and see if there is one that is calling into ADO,
> or something related.
>
> Regards,
> Oleg
>
>
>
>
- Next message: annalisa via DotNetMonster.com: "Unable to start debugging. The debugger may not be properly installed"
- Previous message: darkeagle: "Remote debug from winxp sp2 to windows 2003 domain controller"
- In reply to: Oleg Starodumov: "Re: Debugging help - random crashes (1f48cbc1)"
- Next in thread: Oleg Starodumov: "Re: Debugging help - random crashes (1f48cbc1)"
- Reply: Oleg Starodumov: "Re: Debugging help - random crashes (1f48cbc1)"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|