Skip to main content

Is there a way to suppress the below event pop-up (and does anyone know what causes this)?  I am running a "stress" script which runs a process that basically connects to a MainFrame 3270, and then issues the commands/user/password in order to login (and then exits).  Often when I have 2 such scripts running side-by-side, I will get the below event pop-up.  What is worse, is that once it pops up, the process appears to hang until I press OK.  In addition, if the 2nd side-by-side script hits into the same state, its event exception does not even pop up until I click OK on the first one.. (i.e., - and maybe this is a Windows issue - only one event pops up at a time, and other ones are apparently queued.)

1. How can I suppress the event pop-up?

2. What is best way to diagnose the root cause?

 


#Rumba

Is there a way to suppress the below event pop-up (and does anyone know what causes this)?  I am running a "stress" script which runs a process that basically connects to a MainFrame 3270, and then issues the commands/user/password in order to login (and then exits).  Often when I have 2 such scripts running side-by-side, I will get the below event pop-up.  What is worse, is that once it pops up, the process appears to hang until I press OK.  In addition, if the 2nd side-by-side script hits into the same state, its event exception does not even pop up until I click OK on the first one.. (i.e., - and maybe this is a Windows issue - only one event pops up at a time, and other ones are apparently queued.)

1. How can I suppress the event pop-up?

2. What is best way to diagnose the root cause?

 


#Rumba

Does anyone know how to suppress the Rumba event pop-up described above?

 

Thanks,

Larry


Does anyone know how to suppress the Rumba event pop-up described above?

 

Thanks,

Larry

Hi,

Few notes:

1. What is your Rumba version?

2. How do you trigger the script and what type of script do you use? - better to share it with us

3. Did you try "Suppress Dialog" feature? - Under Connection | Configure...  "TN3270 Advanced" see image attached

Screen Shot 2019-11-21 at 17.05.06.png

Thanks

Adi

 


Hi,

Few notes:

1. What is your Rumba version?

2. How do you trigger the script and what type of script do you use? - better to share it with us

3. Did you try "Suppress Dialog" feature? - Under Connection | Configure...  "TN3270 Advanced" see image attached

Screen Shot 2019-11-21 at 17.05.06.png

Thanks

Adi

 

Adi - thanks... I realized that I was not clear in my description of my issue.  The "script" was not a Rumba script, but rather a .NET C# VB application, using Rumba 9.5 SP1.  My colleague did suggest a corresponding code change as follows.

I already had the following object:

Public WithEvents HostDisplay As AxObjectXMFDisplay.AxObjectXMFDisplay

And now I added:

HostDisplay.ShowHostErrorDialog = False

However, when I added the above, every time my own class was instantiated, I got the following exception:

System.Windows.Forms.AxHost InvalidActiveXStateException

Any ideas what I might have done wrong (and if this was even the correct property to set)?

Thanks!
Larry


Adi - thanks... I realized that I was not clear in my description of my issue.  The "script" was not a Rumba script, but rather a .NET C# VB application, using Rumba 9.5 SP1.  My colleague did suggest a corresponding code change as follows.

I already had the following object:

Public WithEvents HostDisplay As AxObjectXMFDisplay.AxObjectXMFDisplay

And now I added:

HostDisplay.ShowHostErrorDialog = False

However, when I added the above, every time my own class was instantiated, I got the following exception:

System.Windows.Forms.AxHost InvalidActiveXStateException

Any ideas what I might have done wrong (and if this was even the correct property to set)?

Thanks!
Larry

Hi Larry,
it's not the right property. The ShowHostErrorDialog Property is for AS/400 Display only.

You can try to use the DisableDialogs 

Property DisableDialogs As Boolean
Member of ObjectXMFDisplay.ObjectXConfigureTn3270Lin


Hi Larry,
it's not the right property. The ShowHostErrorDialog Property is for AS/400 Display only.

You can try to use the DisableDialogs 

Property DisableDialogs As Boolean
Member of ObjectXMFDisplay.ObjectXConfigureTn3270Lin

Thanks Andree... I'll give it a try...


Thanks Andree... I'll give it a try...

Syntactically I was able to get the property set, but now I am not sure that it is really doing anything in the context of my (VB .NET) program.

We currently (till now) have done all the Rumba processing (connect, sendkeys, etc.)  via HostDisaply declared like this:

Me.HostDisplay = New AxObjectXMFDisplay.AxObjectXMFDisplay

I was able to also create and set the disable dialog display like this:

Public WithEvents Tn3270Link As ObjectXMFDisplay.ObjectXConfigureTn3270Link

Me.Tn3270Link = New ObjectXMFDisplay.ObjectXConfigureTn3270Link

Me.Tn3270Link.DisableDialogs = True

However, I have no idea how to connect the 2.  I would have liked to see something that would have allowed something like:

Me.HostDisplay.DisableDialogs = True

or

Me.HostDisplay,<ObjTN3270Configure>.DisableDialogs = True

but I did not see anything like that...Is it possible that the addition I made is sufficient (and if so how/why)?

If not - then how can I do what I'd like to do?

Thanks,

Larry

 

 


Syntactically I was able to get the property set, but now I am not sure that it is really doing anything in the context of my (VB .NET) program.

We currently (till now) have done all the Rumba processing (connect, sendkeys, etc.)  via HostDisaply declared like this:

Me.HostDisplay = New AxObjectXMFDisplay.AxObjectXMFDisplay

I was able to also create and set the disable dialog display like this:

Public WithEvents Tn3270Link As ObjectXMFDisplay.ObjectXConfigureTn3270Link

Me.Tn3270Link = New ObjectXMFDisplay.ObjectXConfigureTn3270Link

Me.Tn3270Link.DisableDialogs = True

However, I have no idea how to connect the 2.  I would have liked to see something that would have allowed something like:

Me.HostDisplay.DisableDialogs = True

or

Me.HostDisplay,<ObjTN3270Configure>.DisableDialogs = True

but I did not see anything like that...Is it possible that the addition I made is sufficient (and if so how/why)?

If not - then how can I do what I'd like to do?

Thanks,

Larry

 

 

The HostInterface object is used by the control to select and configure a connection to a host. The HostInterface object provides programmatic access to the Interface objects which control configuration for specific host interfaces.

The interface is used to connect to a Mainframe host. To select this interface, use the Name Property in the HostInterface object.

The Name property requires the filename of the interface object. For this interface the name is WallData.TN3270Link. In VB, the code looks like this:

ObjectXMFDisplay1.HostInterface.Name = "WallData.TN3270Link"

code snippet

...

Set MFDsp = MFForm.Dsp1


MFDsp.HostInterface.Name = "WallData.TN3270Link"
MFDsp.HostInterface.StartupModelType = 2
Set TN3270 = MFDsp.HostInterface.Interface
TN3270.InsertName2 "your3270hostname"
TN3270.DisableDialogs = True                          'Disable Dialog
TN3270.TelnetPort = 23

 

With TN3270.DisableDialogs set to True I not longer get the RUMBA Event Errror Dialog as you posted in the initial question.


The HostInterface object is used by the control to select and configure a connection to a host. The HostInterface object provides programmatic access to the Interface objects which control configuration for specific host interfaces.

The interface is used to connect to a Mainframe host. To select this interface, use the Name Property in the HostInterface object.

The Name property requires the filename of the interface object. For this interface the name is WallData.TN3270Link. In VB, the code looks like this:

ObjectXMFDisplay1.HostInterface.Name = "WallData.TN3270Link"

code snippet

...

Set MFDsp = MFForm.Dsp1


MFDsp.HostInterface.Name = "WallData.TN3270Link"
MFDsp.HostInterface.StartupModelType = 2
Set TN3270 = MFDsp.HostInterface.Interface
TN3270.InsertName2 "your3270hostname"
TN3270.DisableDialogs = True                          'Disable Dialog
TN3270.TelnetPort = 23

 

With TN3270.DisableDialogs set to True I not longer get the RUMBA Event Errror Dialog as you posted in the initial question.

Thanks Andree!

In our case since we already had the host interface/host display, I just needed to do:

frmHostInterface.HostDisplay.HostInterface.Interface.DisableDialogs = True

Testing is a different story but I know this didn't break anything, as connect() following this still works