PDA

View Full Version : DLL.CallFunction with string retval


u863583
03-07-2007, 04:14 PM
Ok, so I'm writing a custom dll to extend our installer's capabilities. I need to return some string values to the Lua script. What are the memory resource handling conventions used for the string that I return (MSVCRT - malloc/free, None - static local/ignore, or some SDK supplied functions like AMS_malloc/AMS_free)? In my experience, mismatching these sorts of things can go very bad.