Skip to main content
We upgraded from BlueZone v6.1.9 to Rocket Terminal Emulator v10.1 - using old script below and getting error:  Unable to attach to Emulator application

Wondering if anyone has seen this before and can offer any assistance.

Script:

Sub Main

set bzhao = CreateObject("BZWhll.WhllObj")
bzhao.Connect "A"

Run "C:\\<pathc to executable file>.exe"



End Sub

------------------------------
Kristi Robinson
Technology Support Consultant

------------------------------
We upgraded from BlueZone v6.1.9 to Rocket Terminal Emulator v10.1 - using old script below and getting error:  Unable to attach to Emulator application

Wondering if anyone has seen this before and can offer any assistance.

Script:

Sub Main

set bzhao = CreateObject("BZWhll.WhllObj")
bzhao.Connect "A"

Run "C:\\<pathc to executable file>.exe"



End Sub

------------------------------
Kristi Robinson
Technology Support Consultant

------------------------------
Hi Kristi,

I haven't seen this error myself but I do have some additional questions for you.

Is this a VBA macro? If yes, what bitness of Microsoft Office were you running against BluZone v6.1.9? After upgrading to Rocket TE v10.1, did you install the 32-bit version or 64-bit version?

In this line, Run "C:\\<pathc to executable file>.exe", are you trying to launch / open a Rocket TE session?

Thanks,
Son



------------------------------
Son Pham
Senior Support Engineer
Rocket Software
------------------------------
Hi Kristi,

I haven't seen this error myself but I do have some additional questions for you.

Is this a VBA macro? If yes, what bitness of Microsoft Office were you running against BluZone v6.1.9? After upgrading to Rocket TE v10.1, did you install the 32-bit version or 64-bit version?

In this line, Run "C:\\<pathc to executable file>.exe", are you trying to launch / open a Rocket TE session?

Thanks,
Son



------------------------------
Son Pham
Senior Support Engineer
Rocket Software
------------------------------

Thank you for your response:

 

We were able to run this .bbs macro to launch the .exe file using O365 x64 bit prior to our upgrade.  It is a BlueZone Basic Script – and I have registered the .dll for BZBasic.dll. 

 

So, O365 x64 bit prior to upgrade was working.  Both versions of Emulator are 32-bit.

 

We were running BZ v6.1.9 32-bit – and upgraded to TE v10.1 32-bit.

 

The .exe launches a program to copy paste certain text from the Emulator into some Word Docs, for printing and mailing out. 

 

 

 

Kristi Robinson

Technology Consultant

 

 




This message and accompanying documents are covered by the Electronic Communications Privacy Act, 18 U.S.C. 2510-2521, and contain information intended for the specified individual(s) only. This information is confidential. If you are not the intended recipient, you are hereby notified that you have received this document in error and that any review, dissemination, copying or the taking of any action based on the contents of this information is strictly prohibited. If you have received this communication in error, please notify us immediately by e-mail and delete the original message


Thank you for your response:

 

We were able to run this .bbs macro to launch the .exe file using O365 x64 bit prior to our upgrade.  It is a BlueZone Basic Script – and I have registered the .dll for BZBasic.dll. 

 

So, O365 x64 bit prior to upgrade was working.  Both versions of Emulator are 32-bit.

 

We were running BZ v6.1.9 32-bit – and upgraded to TE v10.1 32-bit.

 

The .exe launches a program to copy paste certain text from the Emulator into some Word Docs, for printing and mailing out. 

 

 

 

Kristi Robinson

Technology Consultant

 

 




This message and accompanying documents are covered by the Electronic Communications Privacy Act, 18 U.S.C. 2510-2521, and contain information intended for the specified individual(s) only. This information is confidential. If you are not the intended recipient, you are hereby notified that you have received this document in error and that any review, dissemination, copying or the taking of any action based on the contents of this information is strictly prohibited. If you have received this communication in error, please notify us immediately by e-mail and delete the original message

I'm not sure if you meant bzhao.Run vs just Run. If the BBS script is using "bzhao.Run" then the program needs to be whitelisted in the global.ini [Security] section. Compare your v6.1 global.ini to the v10.1 global.ini found in their respective installation directories.

------------------------------
Mike Jones
Rocket Software
------------------------------
I'm not sure if you meant bzhao.Run vs just Run. If the BBS script is using "bzhao.Run" then the program needs to be whitelisted in the global.ini [Security] section. Compare your v6.1 global.ini to the v10.1 global.ini found in their respective installation directories.

------------------------------
Mike Jones
Rocket Software
------------------------------

I was so hopeful that whitelisting the application would be the solution.  Unfortunately, it has not allowed the application to "find" the emulator.

 

I whitelisted the application and tested, not fixed.  I edited the global.ini in v10.1 to match that in v6.1.9, not fixed.  Also, the global.ini in v6.1.9 does not have a Security section, no applications whitelisted....but I tried that anyway – no fix.

 

I'm going to extract the .exe application file today and see if there is anything that is pointing to "BlueZone" vs "Rocket" emulator.

 

Thank you for the suggestions, and if you think of something, please let me know.

 

Kristi Robinson

Technology Consultant

 

 



I was so hopeful that whitelisting the application would be the solution.  Unfortunately, it has not allowed the application to "find" the emulator.

 

I whitelisted the application and tested, not fixed.  I edited the global.ini in v10.1 to match that in v6.1.9, not fixed.  Also, the global.ini in v6.1.9 does not have a Security section, no applications whitelisted....but I tried that anyway – no fix.

 

I'm going to extract the .exe application file today and see if there is anything that is pointing to "BlueZone" vs "Rocket" emulator.

 

Thank you for the suggestions, and if you think of something, please let me know.

 

Kristi Robinson

Technology Consultant

 

 


Is the option "Allow Multiple Simultaneous Connections" enabled in your config? It's found in the API Properties dialog (Options::API from the menu).

------------------------------
Mike Jones
Rocket Software
------------------------------
Is the option "Allow Multiple Simultaneous Connections" enabled in your config? It's found in the API Properties dialog (Options::API from the menu).

------------------------------
Mike Jones
Rocket Software
------------------------------

Yes "Allow Multiple Simultaneous Connections" is checked "on" in Options > API

 

Thank you,

 

Kristi Robinson

Technology Consultant

 

 



Yes "Allow Multiple Simultaneous Connections" is checked "on" in Options > API

 

Thank you,

 

Kristi Robinson

Technology Consultant

 

 


Do you know if the exe application uses COM or HLLAPI to interface with the emulator?

------------------------------
Mike Jones
Rocket Software
------------------------------
Do you know if the exe application uses COM or HLLAPI to interface with the emulator?

------------------------------
Mike Jones
Rocket Software
------------------------------

I believe it's COM, as I saw an error on my v6.1.9 when I didn't have the correct mainframe screen opened, it was a COM error.

 

Kristi Robinson

Technology Consultant

 

 



I believe it's COM, as I saw an error on my v6.1.9 when I didn't have the correct mainframe screen opened, it was a COM error.

 

Kristi Robinson

Technology Consultant

 

 


It seems there are two HLLAPI connections in your case. One is from bzhao.Connect method in your script, which is COM interface, another is from your .exe application the Run method launches. Are you saying the second is also COM interface? As "Unable to attach to Emulator application" isn't the error information from BlueZone, could you share your code piece in the .exe application? so that it will be clear which one interface. In particular, if it's HLLAPI interface, can you check if your application loads whlapi32.dll in 10.1 install directory? If it's COM, can you re-add reference that points to 10.1 bzwhll.dll to your application?

By the way, it looks that the first connection has nothing to do with the second, so not sure why your above script doesn't call Run method directly.


------------------------------
Zhi Li
Rocket Software
------------------------------
It seems there are two HLLAPI connections in your case. One is from bzhao.Connect method in your script, which is COM interface, another is from your .exe application the Run method launches. Are you saying the second is also COM interface? As "Unable to attach to Emulator application" isn't the error information from BlueZone, could you share your code piece in the .exe application? so that it will be clear which one interface. In particular, if it's HLLAPI interface, can you check if your application loads whlapi32.dll in 10.1 install directory? If it's COM, can you re-add reference that points to 10.1 bzwhll.dll to your application?

By the way, it looks that the first connection has nothing to do with the second, so not sure why your above script doesn't call Run method directly.


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

Thank you so much for your response.  I have loaded the whlapi32.dll as well as the bzwhll.dll for install of Rocket TE.....I edited the script to simply run the .exe program – and am getting the "Unable to attach to Emulator application" – as you noted, this error is not coming from BlueZone, but is coming from the .exe program.....meaning the program cannot find the Mainframe Display to connect to.....I was able to extract the files in the .exe program and see the following, which I suspected – the .exe program does not "identify" Rocket TE as a mainframe display – and therefore cannot find it as the error states.  ��

 

I believe I have found the issue, now to find a program to edit this .exe file and I think all will be well again.

 

Kindest regards to all for your assistance in leading me to find this solution

 

 

The error line from the .exe program

 

 

Kristi Robinson

Technology Consultant