Problem finding edonkey window
Status: Beta
Brought to you by:
noja
Sometimes ServSpy has problems finding the edonkey window
when it is minimized to the taskbar. I haven't been able to
properly reproduce this error, it might be a one-time glitch.
I'll double-check the windows search and see if there is a bug.
Another fix would be to only look for the window at startup and
then reuse the window handle, it shouldn't change. Maybe this will
work on a trayed donkey as well?
Logged In: YES
user_id=550684
does the error happen when servspy is running ONLY in the tray or as
soon as the tray icon is enabled? my servspy is running in the tray all day
long, no problems so far...
saving the windows handler at startup
could get you into trouble if the donkey is restarted while servspy keeps
running... I doubt that the donkey will get the same handle twice ;)
-
rtf
Logged In: YES
user_id=544193
The problem occured with all versions of ServSpy, so the tray
operation has nothing to do with it. After a Windows reboot I wasn't able
to reproduce the error. It could be related to the relative arrangement of
windows.
There must be a way to check for the validity of a windows handle?
Controlling that the handle is what it is supposed to be e.g. a richedit,
with a parent window named edonkey a few levels up. If the handle is
still valid it can be used, otherwise a new search must be made.