[Mono-bugs] problems compiling PythonNet beta 5 with mono 1.1.13.4

Mathew Yeates myeates at jpl.nasa.gov
Tue Mar 21 21:19:41 EST 2006


Hi
While Microsoft's csc compiles a particular file with no errors, mcs 
produces an error after a bunch of warnings.
-------------------------------
.\Python.cs(170,3): error CS0245: Destructors and object.Finalize cannot 
be call
ed directly. Consider calling IDisposable.Dispose if available
-------------------------------

The offending line is Runtime.Finalize();

Here are the warnings before the error
------------------------------------

.\AssemblyManager.cs(68,23): warning CS0465: Introducing a 'Finalize' 
method can
interfere with destructor invocation. Did you intend to declare a 
destructor?
.\Exceptions.cs(48,23): warning CS0465: Introducing a 'Finalize' method 
can inte
rfere with destructor invocation. Did you intend to declare a destructor?
.\ImportHook.cs(59,23): warning CS0465: Introducing a 'Finalize' method 
can inte
rfere with destructor invocation. Did you intend to declare a destructor?
.\PyObject.cs(127,14): warning CS0465: Introducing a 'Finalize' method 
can inter
fere with destructor invocation. Did you intend to declare a destructor?
.\Python.cs(168,21): warning CS0465: Introducing a 'Finalize' method can 
interfe
re with destructor invocation. Did you intend to declare a destructor?
.\PythonException.cs(103,14): warning CS0465: Introducing a 'Finalize' 
method ca
n interfere with destructor invocation. Did you intend to declare a 
destructor?
.\Runtime.cs(115,23): warning CS0465: Introducing a 'Finalize' method 
can interf
ere with destructor invocation. Did you intend to declare a destructor?
.\ClassObject.cs(125,18): warning CS0219: The variable `self' is 
assigned but it
s value is never used
.\ClassObject.cs(170,18): warning CS0219: The variable `self' is 
assigned but it
s value is never used
.\ClassObject.cs(233,18): warning CS0219: The variable `self' is 
assigned but it
s value is never used
.\Converter.cs(501,2): warning CS0162: Unreachable code detected
.\DelegateManager.cs(246,7): warning CS0219: The variable `r' is 
assigned but it
s value is never used
.\MetaType.cs(52,13): warning CS0219: The variable `name' is assigned 
but its va
lue is never used
.\PropertyObject.cs(47,13): warning CS0219: The variable `ts' is 
assigned but it
s value is never used
.\PropertyObject.cs(102,13): warning CS0219: The variable `ts' is 
assigned but i
---------------------------------------------
ts value is never used





More information about the mono-bugs mailing list