The strcpy line is actually, it was a copy/paste error when putting it in pastebin. strcpy_s(comem, len+1, (const char*)s.c_str()); -- View this message in context: http://mono.1490590.n4.nabble.com/Marshaling-string-on-Windows-returns-Garbage-tp4468863p4468876.html Sent from the Mono - General mailing list archive at Nabble.com.