|
-
October 3rd, 2002, 03:22 AM
#1
SafeArrayAllocDescriptor
does anybody have any clue on using the function SafeArrayAllocDescriptor to create an safearray ? I only need to safearray descriptor cause i already got my data. SafeArrayCreate doesn't seem to help, as it also allocate the data buffer which cause memory leakage.
I would be appreciated if anyone can show me the correct way of using the function SafeArrayAllocDescriptor and SafeArrayCreate (together with the clean up function), thanks.
-
October 3rd, 2002, 03:33 AM
#2
search the SafeArrayCreate().
-
October 3rd, 2002, 03:34 AM
#3
Why dont you use COleSafe Array class
Regards,
Ramkrishna Pawar
-
October 3rd, 2002, 07:03 AM
#4
If you are using a SafeArray created with SafeArrayCreate and where you access the elements always through the provided functions, then most of the time you don't have to worry about memory. When you insert an item the SafeArray will copy / addref it and when removing it / deleting the safearray it will free / release it.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|