HELP needed: NetAccess::stat blockes when switching desktops
Andras Mantia
amantia at kde.org
Thu Jan 15 18:26:38 GMT 2004
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
On Thursday 08 January 2004 22:55, Andras Mantia wrote:
> NetAccess::stat is called from projectupload.cpp:148, void
> ProjectUpload::slotBuildTree() method:
> KIO::NetAccess::stat(absUrl, entry);
>
>
> This seems to be rather serious problem for everybody using NetAccess, and
> more accentuated for
> Quanta as we use this enter_loop()/exit_loop() also in other cases.
Update on this (and still talking to my own): I rewrote that code, so there
isn't a stat call for every file. Logically, the "project upload" dialog does
not hang anymore, but Quanta still hangs after the scan is completed, due to
another NetAccess call, in a completely different place, which saves the
project, KIO::NetAccess::upload. The case is similar, the event loop is not
exited.
I managed to find a workaround for this (preventing to call that function
while the "project upload" dialog is visible), but undoubtly there is a
deeper error in KIO. A timeout handler in NetAccess would be a solution, but
it's still a workaround. Any idea what can be done to fix it properly?
Andras
- --
Quanta Plus developer - http://quanta.sourceforge.net
K Desktop Environment - http://www.kde.org
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.2-rc1-SuSE (GNU/Linux)
iD8DBQFABtteTQdfac6L/08RAliMAKChaWaSdq9lpf1hjBCf4j0vyFxSVACeLdn/
GXArfBvtH4aLZwqDomGQ9Zo=
=3s/r
-----END PGP SIGNATURE-----
More information about the kde-core-devel
mailing list