-
Notifications
You must be signed in to change notification settings - Fork 35
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
VB6 App : Runtime error on Win 10 22H2 on Macbook using Boot Camp #36
Comments
Tell me the real URL you are having problems with so I can test here. |
Hi Vladimir :) I think it's not an URL problem but only with Windows on Mac with bootcamp, as well as on any other machine (Laptop with Win 10, my PC with Win 10, Win XP and 10 virtual machines, it's always OK. Here is the real URL : |
Does it work with WinHttpRequest? Does it work with IP address directly (https://217.160.0.76/checkupdate.php?lastver)? |
Hi, |
Hi Vladimir :) I built 4 tests and the user tested them: With WinhttpRequest:
With chttpRequest:
|
Can you pinpoint which line in your code exactly raises this error? Do you have
You can skip calling
Edit: So you are using class sources directly, not the compiled DLL. |
Hi :) I implented "On Error Goto ..." so should have more infos, I added a checkbox to test with and without setTimeouts method, here is the code:
About the last version, I use class source, yes. I encountered problems when I replaced files I already have, for last ones, I got errors on modules can not be loaded, continue ? yes/no, I tried to re-add them but Class Modules was seen as Modules (so getting a lot of red lines in VB6 IDE), but I just tried to remove Modules and Class Modules from VB6 IDE, and re-add them and now it looks good. I compiled the exe and sent to my user. Just having to wait its report. |
Re, Also, a VB6 app still running before timeout ? I mean, if the user get the result in 3 seconds, is the app will do nothing else during this delay ? Or http request are executed separatly from the rest of the app ? |
It probably needs time to resolve host name through his DNS server. I usually set timeouts to ~5 seconds while the defaults are ~15 seconds for resolve and ~30 seconds for send/receive (as used by WinHttpRequest).
This depends on In asynchronous mode you can use Overall using synchronous execution (the way you have it done) is much more easier to implement but might stall the program if timeouts are hit in cases of lost connectivity, slow DNS servers, etc. |
Hi :) Oh thanks for explanation of Async mode, so as well as I would not block the app while trying to reach the page (for multiple reason, machine has no internet connexion, etc etc), so I should change for this? : |
Yes, this is the same model as in WinHttpRequest. The result is available in This will allow you to use "normal" timeouts because half a second is not enough for name resolution or establishing a connection in the general case.
Is this Edge running under the virtual machine (i.e. Boot Camp) too or is it native for the Mac OS? |
Hi Vladimir :) He should talking about Egde in Windows. I don't know BootCamp (I have no Mac) but after some search, it looks more a dual boot menu (to choose to boot with Mac OS or Windows) on startup. Thanks for tip about events :) After some search, I created a small exe with just a Form with this code:
But as well as in the final project, httprequest should not be related to a form, I try to move the http variable and http_OnResponseFinished sub to a Class module, the project does not run anymore (variable not defined, even setting as Public instead of Private). I get difficulties to find good Class module examples to create a class from this code :( |
Hi,
A user reported me a problem with check update function of my software using HttpRequest class, so I made a small app with just this :
cAsyncSocket.cls
cHttpRequest.cls
cTlsSocket.cls
mdTlsThunks.bas
Project with a Form, a Command button, a WebBrowser.
Code :
When the user clicks on Command1 button, he get only Run-time error -2147012894 (80072ee2) .
The only info I found with google, was timeout problem, so I increased timeouts from 500 to 1000, but the user has tested with the same result.
Any idea ? :)
Thanks
Couin
The text was updated successfully, but these errors were encountered: