R
Richard
I think I have it figured out. My custom shell waits about 30 seconds
before it fires up my main application. I do this to avoid the application
from starting while XPe is not ready. The 30 second delay fixed the problem
for the most part, but every once in awhile, it still happens.
I narrowed it down to a screwy router. Sometimes it locks up and hangs on
issuing IP Addresses. So, XPe hangs around forever until it times out,
before it continues to start all the other services. In order to safe gaurd
against that, I have to enter a huge delay, like 1 minute but that sure
doesn't seem right.
If the cable is unplugged, then things happen quick.
If the cable is plugged in, there is a small delay (15 seconds or so) "If"
everything is right.
But then, if it's not right, Error City here we come!
1) Is there a way to set the max timeout for DHCP to obtain an address?
2) How is the best way for me to detect this with my shell program, so I
don't need to wait unless I have to.
Will the below method solve that, for sure?
Snip from Slobodan's suggestion:
Use following in loop for 50-100 times
{
CMP_WaitNoPendingInstallEvents(INFINITE);
Sleep(10);
}
Thanks,
Richard
before it fires up my main application. I do this to avoid the application
from starting while XPe is not ready. The 30 second delay fixed the problem
for the most part, but every once in awhile, it still happens.
I narrowed it down to a screwy router. Sometimes it locks up and hangs on
issuing IP Addresses. So, XPe hangs around forever until it times out,
before it continues to start all the other services. In order to safe gaurd
against that, I have to enter a huge delay, like 1 minute but that sure
doesn't seem right.
If the cable is unplugged, then things happen quick.
If the cable is plugged in, there is a small delay (15 seconds or so) "If"
everything is right.
But then, if it's not right, Error City here we come!
1) Is there a way to set the max timeout for DHCP to obtain an address?
2) How is the best way for me to detect this with my shell program, so I
don't need to wait unless I have to.
Will the below method solve that, for sure?
Snip from Slobodan's suggestion:
Use following in loop for 50-100 times
{
CMP_WaitNoPendingInstallEvents(INFINITE);
Sleep(10);
}
Thanks,
Richard