Skip to main content

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
------------------------------

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
------------------------------

Hello Taylor, 

The error code -2147467259 (0x80004005) means "Unspecified error" . In this case, it's most likely due to some memory access issue, particularly in mix environment with 32bit and 64bit applications. You may try the following steps to address this kind of issue.

  1. Make sure 32bit 10.1 Rocket VBA is installed since your 3270 Display is 32bit. If not, please install it.
  2. Re-register several Rocket TE components
  1. Bring up some command line, cd to 10.1. Rocket TE / BlueZone install directory, run 
    • regsvr32 bzrefl.dll
    • regsvr32 bzwhll.dll
  2. Bring up another command line over administrator, cd to 10.1 Rocket TE / BlueZone install directory, run bzvba /regserver

By the way, I also saw another post you created but that looks repeat question.

Thanks,



------------------------------
Zhi Li
Rocket Software Inc
------------------------------