This method waits until the system completely hangs up the connection.
Syntax
object.WaitUntilHungUp
The WaitUntilHungUp method syntax has these parts:
| Part | Description |
| object | An object expression that evaluates to the EasyDial control. |
Return Values
None
Remarks
Because the system needs time to properly terminate a RAS connection, you should not terminate your application immediately after calling HangUp. Instead, you should call WaitUntilHungUp to make sure the system has properly terminated the connection before exiting. Failure to do so can cause failure to properly close a port, leaving the port in an inconsistent state.
You should never call this method before calling HangUp, or your application will wait infinitely for the hanging up process to finish, which has never been initiated. Similarly, you shall never call this function in the OnConnecting and OnConnected event handlers. Because the actual hanging up will not happen until the event handler finishes, calling this function in these event handlers will lead to a deadlock.
|
All rights reserved. |