On Tue Feb 27 17:25:55 2024 +0000, Alex Henrie wrote:
Yes, I am sorry for the trouble. If I had noticed these problems earlier, I would not have touched this file at all. My best guess, from reading what little documentation is on MSDN, is that Windows expects the stub buffers to be allocated with NdrOleAllocate.
It's not clear to me that NdrOle* is what has to be used everywhere. Do you see them used in some generated code? Regarding this particular test function, there appears to be a mismatch with what NdrClientInitializeNew() would use for memory management pointers, and what test would use in this explicit allocation.
This might be an opportunity to clarify this in some comment, or maybe look for a way to use some Ndr* helpers to avoid managing this memory explicitly.