VB6 code runs under XP, but not under Win98

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • gtfrueh
    New Member
    • Apr 2010
    • 2

    #1

    VB6 code runs under XP, but not under Win98

    I have a VB6 project that runs OK under XP, but not under Win98. I have not packaged and deployed. I just copied my working folder of code from the XP machine to the Win98 machine. The code on the Win98 machine runs about 95% successful. The problem is this: I have a timer that, when it goes off, decrements a variable. The variable is used in my mainform, in a loop. I set breakpoints in the timer code and have verified that the variable is indeed being decremented. However, when I set breakpoints in the loop, the variable remains at its original value when run on the Win98 machine. The varialble is declared as Public. On XP, the variable shows the decremented value in the loop just fine. I'm beginning to think that there is a bigger problem here, but I'm not sure where to start. No errors are generated. Thanks in advance!
  • vb5prgrmr
    Recognized Expert Contributor
    • Oct 2009
    • 305

    #2
    Put Option Explcit at the top of all code windows, change option to break on unhandled errors, remove all on error resume next statements and replace them with proper error handling routines.



    Good Luck

    Comment

    • gtfrueh
      New Member
      • Apr 2010
      • 2

      #3
      Thanks - I'll try it!

      Comment

      Working...