I'm successfully calling a function in a DLL from my setup. The return value from my function is a string.
I notice that Setup Factory FreeLibrary's my DLL immediatly after calling the function. Since my function returns a pointer to a static buffer in the DLL, setup factory gets no result.
I was able to address this problem by allocating some heap memory and returning my value in that.
What is the correct protocol for this type of thing? I would ideally like Setup Factory to be freeing this memory.
Thanks,
Dan
I notice that Setup Factory FreeLibrary's my DLL immediatly after calling the function. Since my function returns a pointer to a static buffer in the DLL, setup factory gets no result.
I was able to address this problem by allocating some heap memory and returning my value in that.
What is the correct protocol for this type of thing? I would ideally like Setup Factory to be freeing this memory.
Thanks,
Dan
Comment