httpClient.sendrequest() crashes PB IDE in 2022 R2, works great in 2019 R3.
I'm attempting to migrate and test a large application of 124 PBLs on PB 2022 R2. I ran into an issue with the app just crashing, no msg. I tracked it down the httpClient object. I wrote this test code on a separate window in 2022 R2 and PB just 'goes away' on the sendrequest() step. Try/Catch doesn't trigger.
Backported the entire window back to 2019 R3 and it works as expected - returns a 1 to mle_log.text. Therefore, this does not seem environment related?
Steps taken and notes
- Windows 10
- Ensured my IDE and runtimes were same versions - 2819
- Optimized all PBLs (suggested on other issues)
- Rebooted, retested, same result
- URL is hard coded in the SLE (same for 2019 and 2022)
- Event viewer included below
Any thoughts?
Long ll_rtc
String ls_msg
httpclient lnv_httpclient
n_cst_https lnv_https
mle_log.text = 'Starting test...'
lnv_httpclient = Create httpclient
lnv_httpclient.clearrequestheaders( )
Try
ll_rtc = lnv_httpclient.sendrequest( 'GET', sle_url.text)
mle_log.text += 'Return code = ' + string(ll_rtc)
Catch (Throwable T1)
ls_msg = T1.GetMessage()
mle_log.text += '~r~n' + ls_msg
End Try
Destroy lnv_httpclient
Return
From Event viewer
Faulting application name: pb220.exe, version: 22.1.0.2819, time stamp: 0x64c36da2
Faulting module name: PBVM.dll, version: 22.1.0.2819, time stamp: 0x64c77820
Exception code: 0xc0000005
Fault offset: 0x002e6f90
Faulting process id: 0x414c
Faulting application start time: 0x01da3fdab05963dd
Faulting application path: C:\Program Files (x86)\Appeon\PowerBuilder 22.0\pb220.exe
Faulting module path: C:\Program Files (x86)\Appeon\Common\PowerBuilder\Runtime 22.1.0.2819\PBVM.dll
Report Id: 95348b4f-a372-4526-98e4-2517c0c01f4f
Faulting package full name:
Faulting package-relative application ID: