Re: atldbcli.h line 6200 (VC 7.1):
From: Kim Gräsman (kim_at_mvps.org)
Date: 04/27/04
- Next message: Brian Muth: "Re: atldbcli.h line 6200 (VC 7.1):"
- Previous message: Egbert Nierop \(MVP for IIS\): "Re: atldbcli.h line 6200 (VC 7.1):"
- In reply to: Egbert Nierop \(MVP for IIS\): "Re: atldbcli.h line 6200 (VC 7.1):"
- Next in thread: Brian Muth: "Re: atldbcli.h line 6200 (VC 7.1):"
- Reply: Brian Muth: "Re: atldbcli.h line 6200 (VC 7.1):"
- Reply: Egbert Nierop \(MVP for IIS\): "Re: atldbcli.h line 6200 (VC 7.1):"
- Messages sorted by: [ date ] [ thread ]
Date: Tue, 27 Apr 2004 22:48:35 +0200
Egbert,
> > These things are always /interesting/... Can you verify that the
> > apartment that instantiated that object is still alive?
>
> There's a dutch proverb, 'you've hit the nail with the hammer' :)
I'm glad - though it's only because I've lived through that pain myself :)
> This bug happens, indeed, if the apartment is destroyed. If it's still
> alive, I'm not sure but guess for 90% that at FinalRelease, this bug
> happens.
The crash pretty much indicates that the interface pointer is no longer
valid. In the case of the 'disappearing apartment', it's because apartment
shutdown tears down all stubs, but I guess there can be other cases during
process shutdown where you'll have stray pointers.
> It happens at a global allocated ATL::CDataSource object within
> FinalRelease...
When that global's FinalRelease is called, it's almost guaranteed there are
no valid pointers left. Most threads will have done their CoUninitialize,
and finished up.
You need to provoke FinalRelease earlier in your shutdown process/process
shutdown.
-- Best regards, Kim Gräsman
- Next message: Brian Muth: "Re: atldbcli.h line 6200 (VC 7.1):"
- Previous message: Egbert Nierop \(MVP for IIS\): "Re: atldbcli.h line 6200 (VC 7.1):"
- In reply to: Egbert Nierop \(MVP for IIS\): "Re: atldbcli.h line 6200 (VC 7.1):"
- Next in thread: Brian Muth: "Re: atldbcli.h line 6200 (VC 7.1):"
- Reply: Brian Muth: "Re: atldbcli.h line 6200 (VC 7.1):"
- Reply: Egbert Nierop \(MVP for IIS\): "Re: atldbcli.h line 6200 (VC 7.1):"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|