Invalid window handle error

General chat about HostMonitor (all messages posted before March 07, 2003 available here).
Locked
Guest

Post by Guest »

Windows XP Pro SP1 using RDP (remote desktop/terminal services)

Hostmon running as service, logon locally, open Hostmon, choose edit - all works; logon via RDP, open Hostmon, edit anything or choose Options opens small unuseable window/edit box and hangs Hostmon forcing restart of service. This also happens if starting service while logged in via RDP, the logging into the console.

Error [Invalid window handle] below is found in the WinXP Application event log. Easy fix?


Event Type: Error
Event Source: hostmon.exe
Event Category: None
Event ID: 0
Date: 3/5/2003
Time: 8:59:19 AM
User: N/A
Computer: <removed>
Description:
The description for Event ID ( 0 ) in Source ( hostmon.exe ) cannot be found. The local computer may not have the necessary registry information or message DLL files to display messages from a remote computer. You may be able to use the /AUXSOURCE= flag to retrieve this description; see Help and Support for details. The following information is part of the event: Win32 Error. Code: 1400.
Invalid window handle.

Thanks.
KS-Soft
Posts: 13012
Joined: Wed Apr 03, 2002 6:00 pm
Location: USA
Contact:

Post by KS-Soft »

I think when you use RDP, it provides different system handles for each user session (like NT 4.0 changes handles every time user login). Unfortunatelly to correct this problem we have to redesign compliler's library. Its not easy at all :sad:
In HostMonitor version 4 will be implemented Remote Control Center to allow configure HostMonitor using TCP/IP

Regards
Alex
User avatar
Marcus
Posts: 367
Joined: Mon Nov 18, 2002 6:00 pm

Post by Marcus »

I think when you use RDP, it provides different system handles for each user session (like NT 4.0 changes handles every time user login).

It sounds like the same problem with terminal service, with the exception that you can login directly to the console. Solution could be: Stop the service before starting the application. When finished, stop the application and start the service.

To avoid problems you could turn off the system tray icon......
BHarvey
Posts: 33
Joined: Sun Oct 27, 2002 6:00 pm

Post by BHarvey »

If you turn off the tray, how do you open the existing service for monitoring and changes?

Management via TCP and a Web interface will be excellent.

Thanks,

Brad
User avatar
Marcus
Posts: 367
Joined: Mon Nov 18, 2002 6:00 pm

Post by Marcus »

You have to stop the service and then start the application itself.

To stop the service: net stop "Advanced Host Monitor"

After you are finished, you should start the service again:
net start "Advanced Host Monitor"
Locked