L
Lubomir
Hi,
I have the folloving code:
Public class MyForm : Form
{
……
void SomeMethod()
{
a = new Obj1(this);
Thread t = new Thread( new ThreadStart( a.CallMethod ) );
t.Start();
}
}
Class Obj1
{
Public Obj1(Form myForm)
{
parent = myForm;
}
Public void CallMethod()
{
…
if (parent != null) //// so far debugging is OK
{
Do something
}
Process.Start(...) //Run a process (external exe file)
....
if (parent != null) //// => Debugger will hang
{
Do something
}
}
The debugger will either hang out on the second occurence of "if (parent !=
null)" or sometimes it seems like it goes through but doesn't stop on any
futher break point. When I run it wthout a debugger, everything is OK.
I am debugging form a Vista 64 bit machine, and application (32 bits) is
running on virtual machine VMWare, Vista 32. I am attaching debugger to the
process while debugging.
Why I can not debugging it?
Thanks,
Lubomir
I have the folloving code:
Public class MyForm : Form
{
……
void SomeMethod()
{
a = new Obj1(this);
Thread t = new Thread( new ThreadStart( a.CallMethod ) );
t.Start();
}
}
Class Obj1
{
Public Obj1(Form myForm)
{
parent = myForm;
}
Public void CallMethod()
{
…
if (parent != null) //// so far debugging is OK
{
Do something
}
Process.Start(...) //Run a process (external exe file)
....
if (parent != null) //// => Debugger will hang
{
Do something
}
}
The debugger will either hang out on the second occurence of "if (parent !=
null)" or sometimes it seems like it goes through but doesn't stop on any
futher break point. When I run it wthout a debugger, everything is OK.
I am debugging form a Vista 64 bit machine, and application (32 bits) is
running on virtual machine VMWare, Vista 32. I am attaching debugger to the
process while debugging.
Why I can not debugging it?
Thanks,
Lubomir