- Barry Ellison
- PowerBuilder
- Friday, 22 December 2023 02:49 AM UTC
Under normal situations my right-click looks like this.
The following crash occurs in either runtime or EXE. 2019 R3 build 2728. When focus is set to the desktop and without setting focus back to the application, we immediately right-click on the datawindow hoping for the 'Update' menu. Instead we get an app-crash. Once I found the offending line (lm_info.m_list.popmenu()), I wrapped a try/catch block around it in hopes of catching something but got nothing. Both lm_info and lm_info.m_list are valid based on logging.
Via another thread I found mention of pbresource.dll and pbsysfunc.dll need to be deployed. These are indeed deployed in my EXE folder which is also in my path. It also mentions removing any image from the menu toolbar, of which there are none. https://community.appeon.com/index.php/qna/q-a/pb-2019-r3-crashes-on-context-menus-with-menuimage
Try
// Popup menu
gnv_app.inv_logging.of_log( 'u_tabpg_client_desk_info: dw_1.rbuttondown before popmenu() - Frame X and Y = ('+string(lw_parent.pointerx())+','+string(lw_parent.pointery())+')')
If IsValid(lm_info) Then
gnv_app.inv_logging.of_log( 'u_tabpg_client_desk_info: dw_1.rbuttondown before popmenu() - lm_info is valid')
If IsValid(lm_info.m_list) Then
gnv_app.inv_logging.of_log( 'u_tabpg_client_desk_info: dw_1.rbuttondown before popmenu() - lm_info.m_list is valid')
Else
gnv_app.inv_logging.of_log( 'u_tabpg_client_desk_info: dw_1.rbuttondown before popmenu() - lm_info.m_list is invalid')
End If
Else
gnv_app.inv_logging.of_log( 'u_tabpg_client_desk_info: dw_1.rbuttondown before popmenu() - lm_info is invalid')
End If
lm_info.m_list.PopMenu (lw_parent.PointerX() + 5, lw_parent.PointerY() + 10)
Catch (Throwable T1)
gnv_app.inv_logging.of_log( 'could not popmenu - throwable msg follows')
gnv_app.inv_logging.of_log( t1.getMessage() )
Finally
gnv_app.inv_logging.of_log( 'could not popmenu - inside finally')
End Try
Event crash info.
Faulting application name: PB190.exe, version: 19.2.0.2728, time stamp: 0x6100e4a4
Faulting module name: PBVM.dll, version: 19.2.0.2728, time stamp: 0x6100e676
Exception code: 0xc000041d
Fault offset: 0x0011ab0d
Faulting process id: 0x3e960
Faulting application start time: 0x01da3441177e0533
Faulting application path: C:\Program Files (x86)\Appeon\PowerBuilder 19.0\PB190.exe
Faulting module path: C:\Program Files (x86)\Appeon\Common\PowerBuilder\Runtime 19.2.0.2728\PBVM.dll
Report Id: 6d62679f-7682-4911-8c83-b2a794ce2da1
Faulting package full name:
Faulting package-relative application ID:
Find Questions by Tag
Helpful?
If a reply or comment is helpful for you, please don’t hesitate to click the Helpful button. This action is further confirmation of their invaluable contribution to the Appeon Community.