diff options
| author | Tomas Bzatek <tbzatek@users.sourceforge.net> | 2008-10-12 19:59:57 +0200 |
|---|---|---|
| committer | Tomas Bzatek <tbzatek@users.sourceforge.net> | 2008-10-12 19:59:57 +0200 |
| commit | 03e95ee05bda9778d8b572fea7c48450d602fa70 (patch) | |
| tree | ba759a1a10403f3ed50e6d6665a3263d40c7f738 /UMain.pas | |
| parent | 0e5989ece5ea7d481c45121263d9630f15a57529 (diff) | |
| download | tuxcmd-03e95ee05bda9778d8b572fea7c48450d602fa70.tar.xz | |
Fix strange race condition with Kylix
There's another race condition when copying from gvfs mount (ftp on local lan). Needs more debugging.
All in all, everything is fine with FreePascal
Diffstat (limited to 'UMain.pas')
| -rw-r--r-- | UMain.pas | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -1741,11 +1741,14 @@ var ListView: TGTKListView; OpenDirThread.AHighlightItem := HiliString2; end; DebugMsg(['(II) TFMain.ChangingDir: begin thread']); - OpenDirThread.Resume; tt := Now; b := False; FRemoteWait := TFRemoteWait.Create(Application); FRemoteWait.ParentForm := FMain; + + // WARNING: For an unknown reason, there's a race condition in Kylix (FPC is fine). + // The thread must be started *after* the FRemoteWait is created. + OpenDirThread.Resume; repeat Sleep(ConstInternalProgressTimer); // DebugMsg([' (II) TFMain.ChangingDir: sleep.']); |
