[Mono-bugs] [Bug 375222] DllImported function with string return crashes Mono

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Sun Mar 30 08:43:36 EDT 2008


https://bugzilla.novell.com/show_bug.cgi?id=375222

User jan.oravec at 6com.sk added comment
https://bugzilla.novell.com/show_bug.cgi?id=375222#c6





--- Comment #6 from Jan Oravec <jan.oravec at 6com.sk>  2008-03-30 06:43:36 MST ---
I always thought it is responsibility of unmanaged code to do memory management
on its own allocations. The unmanaged code itself may use something other than
malloc/free. Many examples on the web supported this, but they may be wrong, as
MSDN lacks detailed information on this.

It would be interesting to see, if the strdup() variant has memory leaks on
Windows (e.g. by executing in while(true)). That way, we can see if .NET
deallocates anything. (I have no Windows around, so I can't check)


-- 
Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
You are the assignee for the bug.


More information about the mono-bugs mailing list