[Python.NET] PyType_Ready "AccessViolationException was unhandled"

Guillaume Pichard guillaume.pichard at sogeti.com
Tue Jan 31 16:39:42 CET 2012


Hello,

I have an exception:

System.AccessViolationException was unhandled
   Message=Attempted to read or write protected memory. This is often  
an indication that other memory is corrupt.
   Source=Python.Runtime

when using Converter.ToPythonImplicit with my own C# class as value.

CustomClass value = new CustomClass();
Converter.ToPythonImplicit(value);

I have the exception in typemanager.cs function CreateType when  
calling Runtime.PyType_Ready(type);

What did I do wrong ?

Thanks,
Guillaume.



More information about the PythonDotNet mailing list