L
Leon
Hi there,
I am trying to write a mutli threaded program in VB.Net 2005. As I
am pretty new to writing multithreaded apps I am experimenting with
several ways of implementing things. On a web site I found the following
code which starts a new thread in its own appdommain which sounds very
promising for my needs. Now I've just not managed to translate the C#
code to work properly in VB.Net. But it should be easy for people who are
already experienced with using delegates. Now heres the line of code I
need in VB syntax:
AppDomain ad = AppDomain.CreateDomain ("worker");
Thread t = new Thread (delegate() { ad.DoCallBack (Work); });
best regards
-Leon
I am trying to write a mutli threaded program in VB.Net 2005. As I
am pretty new to writing multithreaded apps I am experimenting with
several ways of implementing things. On a web site I found the following
code which starts a new thread in its own appdommain which sounds very
promising for my needs. Now I've just not managed to translate the C#
code to work properly in VB.Net. But it should be easy for people who are
already experienced with using delegates. Now heres the line of code I
need in VB syntax:
AppDomain ad = AppDomain.CreateDomain ("worker");
Thread t = new Thread (delegate() { ad.DoCallBack (Work); });
best regards
-Leon