Hello!
We have recently updated from BlueZone 8.1 (64bit) TN5250 to Rocket TE 10.1 (32bit) TN3270 MainFrame Display. We had previously developed many scripts and automations with the previous version in the VBA macro component that we are now having issues with after this update.
The big issue currently encountered is: "Run-time error '-2147467259 (80004005)':
We run the VBA macro as usual. It works for a few minutes. It will randomly close during the script citing: Run-time error '-2147467259'
We will attempt to restart the macro and the first encounter of "SESSION.READSCREEN (buf,len,col,row) will result in "Run-time error '-2147467259 (80004005)': Method 'ReadScreen' of object 'IWhllObj' failed. "SESSION.WRITESCREEN (str,row,col)" will result in "Run-time error '-2147467259 (80004005)': Class not registered."
If I do a full session close and reopen the session, I can restart the macro and the existing code executes fine until again, it seemingly randomly will "disconnect" from the Class/library and if macro restarted, will fail per above reasons on first encounter of above code.
This error does not appear during normal compile. I was able to test other "SESSION" executions with no problem during reattempts to debug. "SESSION.CONNECTED" returns TRUE prior to the first readscreen. I can do "SESSION.NAME" and return the active session name. SESSION.GETSESSIONID and SESSION.GETSESSIONNAME also result in accurate returns that I am to step thru.
I am lost as to why it is erroring on the above specific executions. I'm thinking it has to do with either the connection type change or the 64 to 32 bit change but I cannot pinpoint the how or why. I have looked thru the automation dev guide and require assistance.
We have the current libraries active: BZRef Type Libray, bzvab 10.1 Type Library, BZWhll Type Libray.
If any advice can be provided on above resolution, it would be much appreciated! Thank you!
------------------------------
Taylor Baranski
Business Analyst
EdFinancial Services
Knoxville TN US
------------------------------