Hi,
I've a couple of events in a C# assembly...
public class Master
{
...
public delegate void ResponseData(int id, byte function,
byte[] data);
public event ResponseData OnResponseData;
public delegate void ExceptionData(int id, byte function,
byte exception);
public event ExceptionData OnException;
...that I subscribe from IronPython...
import clr
clr.AddReferenceToFile('MyModule')
clr.AddReference('System')
clr.AddReference('System.Net')
...
from MyModule import Master
from System import Array
from System import Byte
def response(i, f, data):
print "Protocol response received"
def exception(i, f, e):
print "Protocol exception received"
class myMaster(object):
def __init__(self, ip, port):
self.mst = Master()
self.mst.OnResponseData += response
self.mst.OnException += exception
...
...but never get called back. I've already check that the events get
processed. Function signatures seem to be ok too. Am I missing something?
How can I trace what's going on?
Thanks, Jon.
_______________________________________________
Users mailing list
[email protected]
http://lists.ironpython.com/listinfo.cgi/users-ironpython.com