Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

ASP, COM memory allocation/deallocation

0 views
Skip to first unread message

David E. Flynt

unread,
Jul 8, 1998, 3:00:00 AM7/8/98
to
Scenario:

I call a method on a COM component from an ASP; the COM component, written
in C++, allocates a BSTR, and returns a pointer to it via an out parameter.
Does the ASP need to free the string after it is done with it? Or does this
happen automagically, under the covers with automation or something? All
the MS examples that I see do not directly free the storage.

Thanks,

David

Enrique Pineda

unread,
Jul 9, 1998, 3:00:00 AM7/9/98
to
ASP will clean up after itself. However, I think you might have to assign
Nothing to variables that contain references to objects before you assign
them to different objects.

epp

David E. Flynt wrote in message <6o1ev6$h8e$1...@pollux.dnai.com>...
>Scenario:

0 new messages