Bug ? ATL3.0/Atlbase.h - CComPtr<> 
Author Message
 Bug ? ATL3.0/Atlbase.h - CComPtr<>

Hi
  In the header file Atlbase.h, **in template class CComPtr **,
we have the following operator and comment:

++++++++ ATLBASE.h PORTION START +++++++++++++++++++++++++++++++

        //The assert on operator& usually indicates a bug.  If this is
really
        //what is needed, however, take the address of the p member
explicitly.
        T** operator&()
        {
                ATLASSERT(p==NULL);
                return &p;
        }

++++++++++++ ATLBASE.h PORTION END ++++++++++++++++++++++++++++++

As it turns out, i crash shortly after i step through this function.
I seem to be crashing at a place where i use the & operator. But this
seems to be quite innocent, and all i am doing is a pointer operation
taking an address. So what would it mean??
Thanks!!!

Sent via Deja.com http://www.*-*-*.com/
Before you buy.



Tue, 25 Feb 2003 05:08:47 GMT  
 
 [ 1 post ] 

 Relevant Pages 

1. <<<<<<<Parsing help, please>>>>>>>>

2. File Format conversion, ascii freeform -->.csv <-->.wk1<-->dbf<-->?HELP

3. <<<>>>Need C code advice with functions and sorting.<<<>>>

4. <><><>HELP<><><> PCMCIA Motorola Montana 33.6

5. Using CComPtr<>::CoCreateInstance

6. CComPtr->Release() or CComPtr.Release()

7. >>>Windows Service<<<

8. <<<Bug in Developer studio 2003 beta (Everett)>>>

9. proposal: <basic.h>, <pascal.h>, <fortran.h>, <cobol.h>

10. <<<< C Grammar for yacc needed >>>>

11. - - - = = =<><> W e b - U S A <><>= = = - - -

12. Copy policy for CAdapt<CComPtr<T>>

 

 
Powered by phpBB® Forum Software