<span style="border-collapse:collapse"><font color="#000099"><div><p style="margin-bottom:0pt">Hello Guillaume</p><p style="margin-bottom:0pt">I think its because of base datatype casting inside that method.</p><p style="margin-bottom:0pt">
<a href="http://manojmathe.blogspot.com/" target="_blank" style="font-family:Arial,sans-serif;font-size:12pt;color:rgb(7,77,143);font-weight:bold">Manoj</a></p></div></font></span><br>
<br><br><div class="gmail_quote">On Tue, Jan 31, 2012 at 9:09 PM, Guillaume Pichard <span dir="ltr">&lt;<a href="mailto:guillaume.pichard@sogeti.com">guillaume.pichard@sogeti.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hello,<br>
<br>
I have an exception:<br>
<br>
System.<u></u>AccessViolationException was unhandled<br>
  Message=Attempted to read or write protected memory. This is often an indication that other memory is corrupt.<br>
  Source=Python.Runtime<br>
<br>
when using Converter.ToPythonImplicit with my own C# class as value.<br>
<br>
CustomClass value = new CustomClass();<br>
Converter.ToPythonImplicit(<u></u>value);<br>
<br>
I have the exception in typemanager.cs function CreateType when calling Runtime.PyType_Ready(type);<br>
<br>
What did I do wrong ?<br>
<br>
Thanks,<br>
Guillaume.<br>
<br>
______________________________<u></u>___________________<br>
Python.NET mailing list - <a href="mailto:PythonDotNet@python.org" target="_blank">PythonDotNet@python.org</a><br>
<a href="http://mail.python.org/mailman/listinfo/pythondotnet" target="_blank">http://mail.python.org/<u></u>mailman/listinfo/pythondotnet</a><br>
</blockquote></div><br>