Roger Blanchard
447 posts
Registered:
29 Jun 2018
15 Apr 2020
Link to this post
I have been working with PTS for a week on an issue where our app will just close after making a call to SonicMQ. In reviewing logs the 4gl adapter appears to be throwing a STOP. The funny thing is if I call my method from a simple ultrabutton on the form it works just fine.
/*------------------------------------------------------------------------------
Purpose:
Notes:
------------------------------------------------------------------------------*/
@VisualDesigner.
METHOD PRIVATE VOID ultraButton1_Click( INPUT sender AS System.Object, INPUT e AS System.EventArgs ):
THIS-OBJECT:RefreshInventory().
RETURN.
END METHOD.
However,
If I call the same METHOD from the Toolbar the app will just close.
METHOD PRIVATE VOID PriceToolbar_ToolClick( INPUT sender AS System.Object, INPUT e AS Infragistics.Win.UltraWinToolbars.ToolClickEventArgs ):
THIS-OBJECT:RefreshInventory().
RETURN.
END METHOD.
The RefreshInventory METHOD is basically using the sonic 4gl adapter to perform a requestreply so it will be in some for of wait-for-message in the adapter.
I am not saying this is related to the toolbar but the issue only happens from the toolbar. I have even gone to a few of our old forms and tested from an ultraToolbarsManager1 and it works just fine.
I was just wondering if you had any thoughts on if there is something in the SmartToolbarController that could be causing this?
Thanks in advance.