1. Alex Hernandez
  2. PowerBuilder
  3. Thursday, 23 May 2019 09:39 AM UTC

Hello,

I have an application (developed with Powerbuilder 2017 R3) that works perfectly with both 32bit and 64bit executables in my Windows7 computer. But when I deploy it in a Windows10 client computer it only works the 32bit executable. In fact, using the 64bit executable the application initiates, connects to an Oracle database and loads some data in the screen, but as soon as it finishes opening it halts. No errors, no systems events to track.

Then I made a new application, the most basic one, that it just opens an empty window with no code inside. I compiled the 64 bit executable and deployed it in Windows 10 computers and it happens the same, it opens but as soon as the window is loaded the application closes.

I executed it using the /pbdebug parameter and surprise, it works. I tried then the first application with the /pbdebug parameter and it also works (very very slowly, but it works). I have no clue about how to resolve this issue. Could you help me please?

Thank you all.

 

 

Chris Pollach @Appeon Accepted Answer Pending Moderation
  1. Thursday, 23 May 2019 14:14 PM UTC
  2. PowerBuilder
  3. # 1

Hi Alex;

   This sounds very weird ... especially with the simple one window test app that is failing.

Can you tell us ...

1) What "edition" and "build" of W10 are you using?

2) What version of Oracle are you using?

3) What oracle connection settings are you using?

4) Are you using the full Oracle client or "Instant" client?

5) What edition & build of PB are you using?

Suggestion: Please open up a support ticket and attach your simple 64 bit App as a test case.

Regards ... Chris

Comment
  1. Alex Hernandez
  2. Friday, 24 May 2019 06:40 AM UTC
Sorry, today I'm in another office with another project so I don't have this information, I will post it all on monday when I'll be back at the main office.



Thanks!
  1. Helpful
  1. Alex Hernandez
  2. Monday, 27 May 2019 07:59 AM UTC
Hello,

This is the requested information:

1) Windows 10 Pro v10.0.16299

2) Oracle Client 12.2.0.1.0. The dabase it's on a server and it's an Oracle 10g 10.2.0.4.0

3) Configured in file tnsnames.ora

4) Oracle client

5) Powerbuilder 2017 R3 Universal Edition Build 1858



Thank you!

  1. Helpful
  1. Chris Pollach @Appeon
  2. Wednesday, 29 May 2019 15:45 PM UTC
Hi Alex;

It sounds like it might be an event timing issue. You mention that the 64bit App seems to load some data and then crash. That would be something going on in your application during or right after a Retrieve(). Say for example, RetrieveEnd, ItemFocus, RowFocus, etc events. I would review your code in those areas. Also, any "Post"ed events around this action as well. My suspicions are that event firing order or timing of those might differ slightly in the 64bit App that are somehow causing this issue. This is my best guess as using the /PBDebug trace does alter somewaht the timing of these events & thus, their code execution.

Regards ... Chris
  1. Helpful
There are no comments made yet.
Alex Hernandez Accepted Answer Pending Moderation
  1. Thursday, 23 May 2019 10:34 AM UTC
  2. PowerBuilder
  3. # 2

First of all thank you for your response.

The trouble is that I get the same behaviour with an application with only an empty window, with no controls, no externall dlls... The only code of the whole application is the "open(w_main)" of the application object.

Comment
  1. Chris Pollach @Appeon
  2. Thursday, 23 May 2019 14:35 PM UTC
Yes, this tells me that using the /PBDebug trace might be "slowing" your App down enough to allow some resource(s) its looking for time to actually complete (another possibility).
  1. Helpful
There are no comments made yet.
Roland Smith Accepted Answer Pending Moderation
  1. Thursday, 23 May 2019 10:29 AM UTC
  2. PowerBuilder
  3. # 3

It could be a call to an external dll function.

Any argument that is described as a pointer in the documentation must be defined as longptr.

 

Comment
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.