Re: WaitFor Method - WeOnlyDo Discussion board

Re: WaitFor Method (General questions)

by Ryan, Monday, June 01, 2009, 01:31 (5657 days ago) @ wodDamir

Hi,
Method is definitly being executed. I have added a line of logging code before the method and after it. Line before gets logged but line after never happens.

Here is the code i use:

writeLog( Before Wait );
returnedData := FTelnet.WaitFor( SearchData , FMainTimeout );
writeLog( After Wait );

In most cases this works correctly and returns the after the match or timeout, however in some cases (such as a database file lock) it never returns and blocks forever.

Any suggestions?

Thanks,
Ryan.

Hi Ryan,

We didn't have such reports so far. Can you add more debugging to your code, to see if the method is executed?

Can you show me a code snippet where this happens?

Regards,
Damba


Complete thread: