Link to home
Start Free TrialLog in
Avatar of Fraser_Admin
Fraser_AdminFlag for Canada

asked on

vb 6 and vnc

I have created a user control which communicates to a com port using the mscomm control.  In my main program I have an instance of this control, which accepts information from the main program as well as sends/receives/parses information from the mscomm control.  Periodically the user control seems to lock up.  I can no longer send data from my main program to the user control.  The user control no longer accepts data from the mscomm control.  If I exit out of the main program and restart, it will work for a while and then the same will happen.  If I reboot the computer all works well.  This seems to happen after I use VNC to connect to the computer running the program.  Is there any known issues with VNC/VB6/MSCOMM?

Thanks
Avatar of Mikal613
Mikal613
Flag of United States of America image

it might be the VNC hook
Avatar of Fraser_Admin

ASKER

what do you mean?  what is the VNC hook?
it hoks one of the ports to control input\output
So is there a way to get around this problem?  Have you heard of anything like this before?  
what port are you using in vb?
ASKER CERTIFIED SOLUTION
Avatar of R_Janssen
R_Janssen
Flag of Netherlands image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
I see there is a new version of VNC.  I'm going to first install that and see what happens.

Could you explain your workaround to me.  Do you have any sample code?

Thanks
I'm using COM Port 1 to send/receive data via MSCOMM Control.
My VB Ap does not freeze up.  I can still do things, the part that freezes it my user control.  I can no longer send data from my main program, or receive data from MSCOMM Control.  However I can still type or do whatever in the main program.