Hi!

I have a legacy dll without source that uses Control.Invoke for event
callbacks into main thread. The problem is that Control class depends on X11
server in linux and can't be directly used on server machines without
graphics. 

DLL:
void SomeFunc(object arg, AsyncCallbackDelegate callback,
System.Windows.Forms.Control win);

APP:
Control win = new Control();
win.CreateControl();
dll.SomeFunc(arg, new AsyncCallbackDelegate(this.Callback), win);
WaitForCompletion(); // Application.DoEvents inside

So I'm looking for some workaround on this problem.
Any ideas?


--
View this message in context: 
http://mono.1490590.n4.nabble.com/Control-Invoke-workaround-tp4619717.html
Sent from the Mono - General mailing list archive at Nabble.com.
_______________________________________________
Mono-list maillist  -  [email protected]
http://lists.ximian.com/mailman/listinfo/mono-list

Reply via email to