Solved

vb 6 and vnc

Posted on 2004-10-19
9
857 Views
Last Modified: 2012-06-27
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
0
Comment
Question by:Fraser_Admin
  • 5
  • 3
9 Comments
 
LVL 48

Expert Comment

by:Mikal613
ID: 12350288
it might be the VNC hook
0
 

Author Comment

by:Fraser_Admin
ID: 12350747
what do you mean?  what is the VNC hook?
0
 
LVL 48

Expert Comment

by:Mikal613
ID: 12350839
it hoks one of the ports to control input\output
0
Efficient way to get backups off site to Azure

This user guide provides instructions on how to deploy and configure both a StoneFly Scale Out NAS Enterprise Cloud Drive virtual machine and Veeam Cloud Connect in the Microsoft Azure Cloud.

 

Author Comment

by:Fraser_Admin
ID: 12351058
So is there a way to get around this problem?  Have you heard of anything like this before?  
0
 
LVL 48

Expert Comment

by:Mikal613
ID: 12351090
what port are you using in vb?
0
 
LVL 3

Accepted Solution

by:
R_Janssen earned 500 total points
ID: 12356739
There is indeed a problem with VB6 and VNC. The problem is somewhat weird and can be easily reproduced when you for instance move or minimize the VB application via VNC.

Most of the time the VNC session will completely freeze up and so does the VB app.

A work around for this is to have a secondary application do a sendmessage (APPACTIVATE) to the main application every now and then, when the app freezes due to VNC you send a keyevent to it [mouse-up]. This should unfreeze both VNC and your application and all objects on the form will resume doing their work.

As said; It only happens with VNC. Trying to set VNC to emulate 3 buttons (Standard not checked) will help this a bit but it pops up from time to time and as far as I know there isn't a solution for this problem yet as it lies on VNC's side.

0
 

Author Comment

by:Fraser_Admin
ID: 12357193
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
0
 

Author Comment

by:Fraser_Admin
ID: 12357219
I'm using COM Port 1 to send/receive data via MSCOMM Control.
0
 

Author Comment

by:Fraser_Admin
ID: 12357237
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.
0

Featured Post

Best Practices: Disaster Recovery Testing

Besides backup, any IT division should have a disaster recovery plan. You will find a few tips below relating to the development of such a plan and to what issues one should pay special attention in the course of backup planning.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
python question 5 76
Help to convert powershell script into a gui 9 170
Beginner to Unreal Engine 4 5 80
Query group by data in SQL Server - cursor? 3 31
Here we come across an interesting topic of coding guidelines while designing automation test scripts. The scope of this article will not be limited to QTP but to an overall extent of using VB Scripting for automation projects. Introduction Now…
This article will show, step by step, how to integrate R code into a R Sweave document
With the power of JIRA, there's an unlimited number of ways you can customize it, use it and benefit from it. With that in mind, there's bound to be things that I wasn't able to cover in this course. With this summary we'll look at some places to go…
In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…

770 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question