|
I start a thread in a class and run a function as follows:
public Thread th = new Thread (new ThreadStart (process));
Then I defined a function process, as follows:
static void process ()
{
this.InstallProcess (this.ApplicateName, this.ApplicateArgument);
th.Start ();
}
The problem arises, I want to call another function InstallProcess in the same class in the process, I do n’t know if it works, I ca n’t compile it with the wording above, and I ca n’t use the keyword this, so I did Method. I now want to know, can I call the installProcess function in this static function process, and can I use the variables outside it? I wonder if I made it clear |
|