Hi,
I have a py file by name IronPythonDLL.py containing
---------------------------------------------------------------
import clr
import System
import sys
from ClrWrapper import ClrAttribute, ClrAccepts, ClrReturns
class IronPythonClass:
clr_namespace = 'IronPythonDLL'
@ClrReturns(System.String)
def IPyMethod(self):
return "IronPython Method"
---------------------------------------------------------------
I have created IronPythonDLL.dll using MakeModule.py
Now through ironpython interpreter i tried creating an instance of the
above class and got an error,
>>> import clr
>>> clr.AddReference('IronPythonDLL.dll')
>>> import IronPythonDLL
>>> o=IronPythonDLL.IronPythonClass()
Traceback (most recent call last):
File IronPythonDLL, line unknown, in .ctor
File IronPythonDLL, line unknown, in InitClass
File , line unknown, in ##26
TypeError: Value cannot be null.
Parameter name: scriptSource
Any help on this will be useful....
Thanks,
-Suma.
_______________________________________________
Users mailing list
[email protected]
http://lists.ironpython.com/listinfo.cgi/users-ironpython.com