Posts: 3
Threads: 1
Joined: Dec 2021
12-14-2021, 02:07 PM
(This post was last modified: 12-14-2021, 02:08 PM by fviegas11.)
Hi, I encountered a bug when declaring a COM object if I write "WinHttp.WinHttpRequest r._create" and in the next line I tipe ".r" I will receive an error that "_create" is an unknown member and it back to work after restarting QM.
I recorded a video trying to simulate the bug(sorry about the quality):
https://gofile.io/d/qCzCd0
Macro 1
WinHttp.WinHttpRequest r._create
Posts: 12,073
Threads: 140
Joined: Dec 2002
Thank you. But I can't reproduce it, and therefore can't fix. Probably depends on other code that runs before. Maybe you can give more info that can help to reproduce this bug.
Posts: 3
Threads: 1
Joined: Dec 2021
It gives the error just after opening QM, if the code is already on QM when it starts will works without bug, when you declare any COM object if you put a dot on the next line that object will not work anymore until you restart. The bug only occurres if you start to type ".WinHtt" and select it from the list that shows, if you type directly without the dot works fine.
Heres another video simulation with and without putting a dot.
https://gofile.io/d/MXCHEY
Posts: 12,073
Threads: 140
Joined: Dec 2002
12-15-2021, 08:04 AM
(This post was last modified: 12-15-2021, 08:06 AM by Gintaras.)
Still can't reproduce.
Can you post the typelib declarations? Are they in function init2?
Posts: 3
Threads: 1
Joined: Dec 2021
12-15-2021, 10:08 AM
(This post was last modified: 12-15-2021, 10:12 AM by fviegas11.)
Here but I declared the typelib in the same macro and run before start to type.
https://youtu.be/EKYPljjnKCU
typelib WinHttp {662901FC-6951-4854-9EB2-D9A2570F2B2E} 5.1
typelib Chilkat_v9_5_0 {004CB902-F437-4D01-BD85-9E18836DA5C2} 1.0
WinHttp.WinHttpRequest r._create
Chilkat_v9_5_0.ChilkatAsn c._create