In debug mode, when this runs for about 30 minutes, I get an Error 28 - Stack Overflow, but it keeps running. When it runs in .exe mode, it just quits the program after about 22 minutes. What do I need to do to eliminate the stack overflow?
GetTheData just calls GetPSR and also looks to see if...
AndyGroom,
The first suggestion won't work since the one program must constantly listen for data.
I'll kick around the second suggestion. Thanks.
norason
Our system has the following equipment:
1 device with 1 serial connection (RS422)
1 PC with a VB6 program that was initially designed to hook up directly to the RS422 device.
1 Pc with a different VB6 program that was initially designed to hook up to the RS422 device.
1 Ethernet to Serial black...
This code won't display the text I want on the row - it shows a thick black line.
It also puts the Millisecond legend about 3 inches below the thick line as if there were another column.
What setting am I missing?
I copied this code to another progam (even copied the MSChart graphic in order...
I put this in hoping that it would re-start no matter what the error was. But I got a msgbox:
Runtime Error #13
Type mismatch
and then it terminated when I said OK.
norason
ErrorHandler:
If Error$(Err) Then
With MSComm1
If .PortOpen Then
.PortOpen = False
End If
End With
End If...
I got the error handler to work. After I run the program for about 2 hours, constantly sending and receiving data, it crashes with:
comEvReceive.
The input buffer shows exactly the data it should, and it is not too long.
I've tried constantly opening and closing the comm port after the four...
Thanks to all!
I tried to uninstall VB6, but it couldn't find it, so I just installed a clean version. Then I up-dated to SP6, and everything work fine.
Some day I'll delete all the old VB6 sub-directories, but for now, I'll leave well enough alone.
Thanks again!
norason
I'm trying to add comm error traps, but when I run this, it immediately jumps to errorhandler, reports event 892, and skips all the comm events. So I still don't know what is causing the error. If I use On Error Resume Next, it runs for about 2 hours, then stops.
norason
Public Function...
That must be the problem. I didn't want to reinstall before since I was afraid of loosing VB6. Now that I have it on another computer, I'll reinstall in on the laptop.
Thanks a million for all your help.
I'll report back when it's reinstalled.
norason
I know, it makes no sense, and I don't remember why it was put there. I know I didn't move it, it was there from the start.
Regarding the registry I have:
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\VisualStudio\6.0\Setup\Microsoft Visual Basic
which has two folders:
Setup Wizard
Setup...
That's the procedure I followed. Everything shows up exactly as described, but the Help screen doesn't show SP6. In fact, I tried SP5 several months ago, no joy there either.
I wonder if it is because my VB6.exe is in a strange sub-directory:
C:\Program Files\MUSICMATCH\Microsoft Visual...
Results:
On the new computer, it worked fine - the Help screen shows SP6.
On my laptop (XP Pro) it ran, but when I run VB6, the Help doesn't show SP6.
The laptop is my main development tool, loaded with software.
Thoughts?
Thanks
Downloaded vb60-kb290887-x86.exe
Clicked it.
Told it to load into:
C:\Downloads\VBSP6
It created:
vbrun60sp6.exe
Clicked it.
It ran, all I could see in the window was some file with a DLL extension.
Ran VB6 Help, it shows no SP number.
It shows v8176.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.