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.