Results 1 to 19 of 19

Thread: [RESOLVED] Strange behavior running progra,

  1. #1

    Thread Starter
    Fanatic Member AccessShell's Avatar
    Join Date
    Oct 2013
    Posts
    790

    Resolved [RESOLVED] Strange behavior running progra,

    I'm using VB6 on WIN 10 Home.
    This happens with two programs
    The program goes to the Internet to get some date. The problem occurs in getting the data (two different sites).
    When I run the .exe, the program gets NO data, no err msg, but I don't know what to ask.
    When I run the .vbp, the program works correctly.
    I have directly accessed the websites and they are up and running.

    Any help would be appreciated. Oh, I think the computer is running slow. When I save anything, the blue donut is visible for sever seconds, at least 5.

  2. #2
    PowerPoster jdc2000's Avatar
    Join Date
    Oct 2001
    Location
    Idaho Falls, Idaho USA
    Posts
    2,392

    Re: Strange behavior running progra,

    Maybe post the code you are using to get the data?

  3. #3

    Thread Starter
    Fanatic Member AccessShell's Avatar
    Join Date
    Oct 2013
    Posts
    790

    Re: Strange behavior running progra,

    This for one of the programs
    Const HTTPREQUEST_PROXYSETTING_PROXY As Long = 2 #Const USE_PROXY = 1
    Set HttpRequest = New WinHttp.WinHttpRequest
    With HttpRequest
    '.Open "GET", "http://money.cnn.com/data/us_markets/", True
    .Open "GET", "http://bigcharts.marketwatch.com/markets/indexes.asp", True
    '.Open "GET", "https://www.marketwatch.com/tools/quotes/intchart.asp", True
    '.Option(WinHttpRequestOption_SecureProtocols) = SecureProtocol_ALL
    '.Option(WinHttpRequestOption_EnableRedirects) = True
    '.Option(WinHttpRequestOption_UserAgentString) = "IE11"
    '.Option(WinHttpRequestOption_EnableHttpsToHttpRedirects) = True
    '.Option(WinHttpRequestOption_SslErrorIgnoreFlags) = 13056
    ' 13056: ignore all err, 0: accept no err
    .Send
    If .WaitForResponse(5) Then
    holdResponse = .ResponseText
    Set HttpRequest = Nothing
    End If
    End With



  4. #4
    Fanatic Member
    Join Date
    Feb 2019
    Posts
    706

    Re: Strange behavior running progra,

    In the last few months, we had reports about issues with accessing HTTPS sites. Please search the forum using Google search box at the top of the page.

  5. #5

    Thread Starter
    Fanatic Member AccessShell's Avatar
    Join Date
    Oct 2013
    Posts
    790

    Re: Strange behavior running progra,

    You read the wrong line. The line NOT commented out is
    Open "GET", "http://bigcharts.marketwatch.com/markets/indexes.asp", True

  6. #6
    Fanatic Member
    Join Date
    Feb 2019
    Posts
    706

    Re: Strange behavior running progra,

    Quote Originally Posted by AccessShell View Post
    You read the wrong line. The line NOT commented out is
    Open "GET", "http://bigcharts.marketwatch.com/markets/indexes.asp", True
    I put that URL in a web browser, and as I expected it redirected to a secure site. You need to tell the library that you are using to use TLC 1.2/1.3. It may require editing the registry to support it, but I could be wrong. Please see post #35 at this link. I don't have time to research for solutions, otherwise I would have more links.

  7. #7
    Fanatic Member
    Join Date
    Jul 2007
    Location
    Essex, UK.
    Posts
    578

    Re: Strange behavior running progra,

    I wonder if this is a permissions issue. The IDE is probably run elevated but perhaps the exe is not. Make sure you run the exe as administrator.

  8. #8

    Thread Starter
    Fanatic Member AccessShell's Avatar
    Join Date
    Oct 2013
    Posts
    790

    Re: Strange behavior running progra,

    I went to Internet options in the control panel and went to the advanced tab. Under security 'Use TLSL 1.0' was turned on, 'Use TLS 1.1' was turned on, 'Use TLS 1.2' was turned on. 'Use TLS 1.3(experimental)' was turned OFF. I turned it on. Without rebooting (The table did not require a reboot on this iten, I ran the 2 programs I have that exhibited this problem. They both are working just fine. I will watch for the rest of today and tomorrow. Then I will report the findings.

    Thanks

  9. #9

    Thread Starter
    Fanatic Member AccessShell's Avatar
    Join Date
    Oct 2013
    Posts
    790

    Re: Strange behavior running progra,

    I don't know if 'Use SSL 3.0' should be turned on. It is off now. I don't know what it is.

  10. #10
    Fanatic Member
    Join Date
    Feb 2019
    Posts
    706

    Re: Strange behavior running progra,

    SSL is the older format.

  11. #11

    Thread Starter
    Fanatic Member AccessShell's Avatar
    Join Date
    Oct 2013
    Posts
    790

    Re: Strange behavior running progra,

    Before I even try to run an executable, how would I know it needs to be run with Admin authority? One of the programs auto starts at 9:30 AM. How would I modify the auto start procedure to run as Admin?

  12. #12
    PowerPoster jdc2000's Avatar
    Join Date
    Oct 2001
    Location
    Idaho Falls, Idaho USA
    Posts
    2,392

  13. #13
    Frenzied Member
    Join Date
    Dec 2008
    Location
    Melbourne Australia
    Posts
    1,487

    Re: Strange behavior running progra,

    Sorry if you have already 'answered' this.
    Did it use to work, and it suddenly stopped working ?

    Different question - If you run the .vbp file using 'run with full compile' does that run ?

  14. #14
    Hyperactive Member
    Join Date
    Mar 2019
    Posts
    414

    Re: Strange behavior running progra,

    Are you running the compiled program from the same user account as the IDE? If I remember correctly internet flags can be set up differently for different users in the registry local_machine vs current_user

  15. #15

    Thread Starter
    Fanatic Member AccessShell's Avatar
    Join Date
    Oct 2013
    Posts
    790

    Re: Strange behavior running progra,

    I have been running these program for several months successfully.

    If you run the .vbp file using 'run with full compile' does that run ? I have never done this. I have never heard of this. I don't even know what this means.

    I have only one user account on this computer.

  16. #16

    Thread Starter
    Fanatic Member AccessShell's Avatar
    Join Date
    Oct 2013
    Posts
    790

    Re: Strange behavior running progra,

    I have had no problem running the programs today with 'Use TLS 1.3(experimental)' turned on. I did not have an opportunity to try again with the switch off. I cannot try again until Monday. As before, I did not need Admin privileges to run the program.

  17. #17
    Frenzied Member
    Join Date
    Dec 2008
    Location
    Melbourne Australia
    Posts
    1,487

    Re: Strange behavior running progra,

    Quote Originally Posted by AccessShell View Post
    I have been running these program for several months successfully.

    If you run the .vbp file using 'run with full compile' does that run ? I have never done this. I have never heard of this. I don't even know what this means.
    .
    When you run your program in the IDE (You probably click the Arrow head icon) you will be alerted to some errors, if they exist.
    However when you make the EXE, VB6 can jump on you with some other types of errors.
    I hate that, as I may have made the errors days ago, and cannot recall what I was doing back then (I am 78).
    So I always run my program with full compile.
    If you look along the menu bar, there is a menu called 'Run'
    If you click that, there is an option to 'Start with Full Compile'
    Rob
    PS For other elderly members who also want to be told about all errors immediately (instead of a week later), I use this keyboard combination every time i run the program - Alt FSRF
    (Alt File Save Run with Full compile)

  18. #18

    Thread Starter
    Fanatic Member AccessShell's Avatar
    Join Date
    Oct 2013
    Posts
    790

    Re: Strange behavior running progra,

    Bobbles, thanks for the tip. You have me beat by one year.

  19. #19

    Thread Starter
    Fanatic Member AccessShell's Avatar
    Join Date
    Oct 2013
    Posts
    790

    Re: Strange behavior running progra,

    When using TLS 1.3 (experimental), the programs work correctly. I tested the programs by turning that off. Both programs stopped working correctly. I will leave it on.

    Thanks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width