Click here to Skip to main content
15,915,764 members
Home / Discussions / ATL / WTL / STL
   

ATL / WTL / STL

 
GeneralRe: serialize using stream. - binary Pin
AlexO20-Dec-02 4:04
AlexO20-Dec-02 4:04 
GeneralRe: serialize using stream. - binary Pin
Ben Burnett5-Jan-03 13:17
Ben Burnett5-Jan-03 13:17 
GeneralNeed help using SafeArray/VARIANT from ASP/VBScript client Pin
bahruddina19-Dec-02 16:20
bahruddina19-Dec-02 16:20 
GeneralRe: Need help using SafeArray/VARIANT from ASP/VBScript client Pin
Barry Lapthorn19-Dec-02 20:40
protectorBarry Lapthorn19-Dec-02 20:40 
GeneralRe: Need help using SafeArray/VARIANT from ASP/VBScript client Pin
AlexO20-Dec-02 3:33
AlexO20-Dec-02 3:33 
GeneralRe: Need help using SafeArray/VARIANT from ASP/VBScript client Pin
Barry Lapthorn20-Dec-02 5:59
protectorBarry Lapthorn20-Dec-02 5:59 
GeneralRe: Need help using SafeArray/VARIANT from ASP/VBScript client Pin
AlexO20-Dec-02 7:17
AlexO20-Dec-02 7:17 
GeneralRe: Need help using SafeArray/VARIANT from ASP/VBScript client Pin
Barry Lapthorn22-Dec-02 0:44
protectorBarry Lapthorn22-Dec-02 0:44 
AlexO wrote:
1. It is not dangling pointer. It is a pointer to the memory allocated by ::SafeArrayCreate.
It should only be deallocated by matching SafeArrayDestroy.
2. This memory most probably allocated through HeapAlloc delete can not be applied here
3. even if #1 and #2 were not true (they are). the object that is allocated is of type VARIANT, not CComVariant.


Looks like you're right about 1+2, but not about 3.

See http://msdn.microsoft.com/library/default.asp?url=/library/en-us/vclib/html/_atl_ccomvariant.asp[^]

Regards

Barry

GeneralRe: Need help using SafeArray/VARIANT from ASP/VBScript client Pin
Anonymous20-Dec-02 3:42
Anonymous20-Dec-02 3:42 
GeneralRe: Need help using SafeArray/VARIANT from ASP/VBScript client Pin
AlexO20-Dec-02 4:05
AlexO20-Dec-02 4:05 
GeneralExecutable as server type Pin
jmodia19-Dec-02 3:58
jmodia19-Dec-02 3:58 
GeneralATL Server include issue.... Pin
nw6031218-Dec-02 18:25
nw6031218-Dec-02 18:25 
GeneralATL and GDI+ Pin
Jonathan de Halleux18-Dec-02 2:26
Jonathan de Halleux18-Dec-02 2:26 
GeneralRe: ATL and GDI+ Pin
Jörgen Sigvardsson21-Dec-02 10:21
Jörgen Sigvardsson21-Dec-02 10:21 
GeneralRe: ATL and GDI+ Pin
pba_23-Dec-02 12:54
pba_23-Dec-02 12:54 
GeneralRe: ATL and GDI+ Pin
Jonathan de Halleux24-Dec-02 2:58
Jonathan de Halleux24-Dec-02 2:58 
GeneralAttributed ATL and interfaces Pin
Chad Busche16-Dec-02 6:44
Chad Busche16-Dec-02 6:44 
GeneralRe: Attributed ATL and interfaces Pin
Jörgen Sigvardsson16-Dec-02 10:40
Jörgen Sigvardsson16-Dec-02 10:40 
GeneralRegular methods on the class object Pin
Mehdi Mousavi14-Dec-02 3:48
Mehdi Mousavi14-Dec-02 3:48 
GeneralRe: Regular methods on the class object Pin
AlexO19-Dec-02 4:25
AlexO19-Dec-02 4:25 
GeneralRe: Regular methods on the class object Pin
Mehdi Mousavi19-Dec-02 6:27
Mehdi Mousavi19-Dec-02 6:27 
GeneralATL 7.0 Creating Clients for COM Components Pin
jparsons13-Dec-02 14:56
jparsons13-Dec-02 14:56 
GeneralRe: ATL 7.0 Creating Clients for COM Components Pin
Jörgen Sigvardsson16-Dec-02 10:44
Jörgen Sigvardsson16-Dec-02 10:44 
GeneralChild Dialog and the XP visual styles Pin
Chad Busche13-Dec-02 11:32
Chad Busche13-Dec-02 11:32 
GeneralWTL Community Pin
Michael P Butler13-Dec-02 2:07
Michael P Butler13-Dec-02 2:07 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.