I’ve same experience as yourself.
I can confirm registered correctly and see with MS oleview.
Also tried COM in excel using VB module and worked well.
Exactly same as book I referenced earlier post.
in AFL code, AmiBroker closes without error message etc.
Code in a chart caused AmiBroker to close once it’s layout was selected.
So I ran AFL code in editor and debug mode only.
No different, but now could step through and variable/object watch window.
Note: AB help states CreateObject(“name”) starts COM server.
Perhaps python code should be client side COM?
Once I tried AB COM CreateObject(“Broker Application”),
then code for python COM; CreateObject(“ABTestObj.example”).
It didn’t close AmiBroker, but this occurred only once.
I had changed code to (object)
so there was an object.
AB recognised the object but still no pointer.
Usually AB closed executing next line
Haven’t tried VB script to use ActiveXObject, since don’t think it’ll be different.
Stackoverflow forum has posts where client side GetModule() call is necessary even if coding server.
It has something to do with the COM pointer which is exactly this problem.
No information otherwise or why.
So 2 things to try
-client COM code
Hope helps with tracking problem down.