1. Jerrod Bonner
  2. PowerBuilder
  3. Tuesday, 27 November 2018 02:38 AM UTC

I have a user function object used to open a web browser that causes a crash when deploying the project but only when the option to create machine code and a .dll library is selected.  Deployment with Pcode as well as machine code without a .dll library will deploy without issue.

 

The cause seems to be tied to a call to GetContextService and the code works as expected in runtime:

inet iinet_base

GetContextService("inet",iinet_base) //comment out for successful deployment

iinet_base.HyperlinkToURL("http://www.appeon.com")

if isvalid(iinet_base) then destroy iinet_base

 

Anyone have similar experiences or know of any workarounds?

 

I have attached files for duplication.

 

 

Problem signature:
Problem Event Name: APPCRASH
Application Name: PB170.EXE
Application Version: 17.2.0.1858
Application Timestamp: 5b55ee46
Fault Module Name: PBCMP170.dll
Fault Module Version: 17.2.0.1858
Fault Module Timestamp: 5b55ef1a
Exception Code: c0000005
Exception Offset: 0004208d

 

Attachments (1)
Chris Pollach @Appeon Accepted Answer Pending Moderation
  1. Thursday, 29 November 2018 18:14 PM UTC
  2. PowerBuilder
  3. # 1

Hi Jerrod;

   That looks like old Jaguar (EAServer) way of coding.

In newer and especially native, web & mobile PB Apps ... try this instead:

  • inet   iinet_base
  • iinet_base = CREATE iNet
  • iinet_base.HyperlinkToURL("http://www.appeon.com")

 

HTH

Regards ... Chris

Comment
  1. Jerrod Bonner
  2. Thursday, 29 November 2018 18:41 PM UTC
Thanks, Chris! Works like a charm.
  1. Helpful
  1. Chris Pollach @Appeon
  2. Thursday, 29 November 2018 20:12 PM UTC


Excellent news Jerrod! :-)
  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.