Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
ShowDialog: exception
#1
I am getting the following error when running the code in .exe :

Error (RT) in ShowDialog: exception

and the caret opens to the following line in ShowDialog :
err+ out "Error (RT) in dialog: %s,[][9]line: %s" _error.description _error.line

I am calling ShowDialog as follows :
Code:
Copy      Help
;typelib SCGrid "D:\Users\Sanjeev Rana\Desktop\PSR2\SCGrid.ocx"
PSR_Def
PSRDATA_Def
;mac "PSR_RequestDetected"
bee _s.format("%s\media\startup.wav" PSR_CURDIR)
;PSR_Load_Dlg 0 0 0 0
AddTrayIcon _s.format("%s\images\icon.ico" PSR_CURDIR) "PSR is running"
;PSR_Main_Dlg 0 0 0 0
str controls = "3 1114 1115 1116 1117 1118 1119 1122 1124 1125 1126 1128 1138 1139 1140 1141 1142 1143"
str ax3SHD e1114 e1115 e1116 e1117 e1118 e1119 e1122 e1124 e1125 e1126 e1128 e1138 e1139 e1140 e1141 e1142 cb1143
cb1143 = "&Normal[]Failed[]Scheduled"
ax3SHD = ""
if(!ShowDialog("PSR_Main_Dlg" &PSR_Main_Dlg &controls)) ret

The code runs fine through QM. Exception in .exe
Btw: No problems in Vista !
IBM Mainframe Expert who Plays with QM a LOT !
#2
I cannot test because don't have PSR_Main_Dlg and dialog definition.

Using QM 2.2.1.5? If no, upgrading possibly will solve the problem.

Try to disable the err+ line. Where then is exception?

Try to replace PSR_Main_Dlg to a barebone dialog function.

Try to remove ActiveX controls.
#3
Found the problem G. One of the functions that I was calling from the dialog on WM_INITDIALOG was failing on exception.

Fixed it. Thx
IBM Mainframe Expert who Plays with QM a LOT !


Forum Jump:


Users browsing this thread: 1 Guest(s)