1. Barry Ellison
  2. PowerBuilder
  3. Friday, 5 January 2024 13:35 PM UTC

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: 
Accepted Answer
Barry Ellison Accepted Answer Pending Moderation
  1. Friday, 5 January 2024 20:09 PM UTC
  2. PowerBuilder
  3. # Permalink

The problem 'Went Away'.  The only notable change was changing the runtime from 2819 to build 2828.  The IDE remains on 2819.  Did a full rebuild and can no longer reproduce the error.  (The full rebuild has been reduced from 25 mins down to 17 I might add. TYVM!)

I will consider this solved.

Comment
  1. Armeen Mazda @Appeon
  2. Sunday, 7 January 2024 15:49 PM UTC
Thanks for the update!
  1. Helpful 1
There are no comments made yet.
Chris Pollach @Appeon Accepted Answer Pending Moderation
  1. Friday, 5 January 2024 15:07 PM UTC
  2. PowerBuilder
  3. # 1

Hi Barry;

  Since you already have a test case PB App, please open a Support ticket for this issue and attach the test case to it.

Many thanks!

Regards ... Chris

Comment
  1. Barry Ellison
  2. Friday, 5 January 2024 15:46 PM UTC
My app is really large, so I isolated the call to a new workspace, new target, new PBL with only the application object and the window.  Only opened my window and the test worked.  This made me investigate further. I'll report back here if I determine anything useful.
  1. Helpful
There are no comments made yet.
  • Page :
  • 1


There are no replies made for this question yet.
However, you are not allowed to reply to this question.
We use cookies which are necessary for the proper functioning of our websites. We also use cookies to analyze our traffic, improve your experience and provide social media features. If you continue to use this site, you consent to our use of cookies.