1. Gayathiri R
  2. PowerBuilder
  3. Thursday, 20 April 2023 06:59 AM UTC

Hi ,

 

We have migrated from power builder 10 to 21 and bulit exe files also. Power builder windows are getting crashed during runtime and no errors are logged in  log file. The window crash issue is not constant and we are  no table re-create the issue for same operation. We could see application error in windows event logs 

 

Faulting application name: ca.exe, version: 1.0.0.1, time stamp: 0x625ecb7f

Faulting module name: ntdll.dll, version: 10.0.14393.3241, time stamp: 0x5d786bcf
Exception code: 0xc0000374
Fault offset: 0x000d96a1
Faulting process id: 0x20b8
Faulting application start time: 0x01d97351ef7c5d9e
Faulting application path: D:\Quartz\exe\ca.exe
Faulting module path: C:\Windows\SYSTEM32\ntdll.dll
Report Id: 1bbaf2a0-a64a-4d45-a8d4-878aa0490c32
Faulting package full name:
Faulting package-relative application ID:

 

 

Please look into this issue and sugguest for the solution.

Andreas Mykonios Accepted Answer Pending Moderation
  1. Monday, 8 May 2023 13:21 PM UTC
  2. PowerBuilder
  3. # 1

Hi.

Then tell us where is the PB runtime located? Also, in your application folder do you have an xml file with same name as your executable (ca.xml)? If yes is the value of runtime path pointing to the location where PB runtime is installed?

Andreas.

Comment
  1. John Fauss
  2. Tuesday, 9 May 2023 13:26 PM UTC
It is difficult to say with any certainty since your app is interfacing with what appears to be an older, third-party DLL, but the declaration of the fourth argument (UINT hwndCallWin) does not appear to be correct. Your calling code is passing the Windows handle to the PB window, which is a 32-bit value when the app is executed as a 32-bit application. However, a UINT is a 16-bit value. If you have any documentation for qz32.dll (or the source code, if it has been locally developed), then I suggest you verify the datatype of this argument as well as all other arguments. Because the external function declaration specifies ANSI and also the progma_pack(1) declaration directive, PB has to undertake a considerable amount of data conversion and data repacking, both when calling this external function and then also when accepting all the changes to all of the structure arguments that are passed by reference.

Can you temporarily avoid calling this external function in the app for testing purposes, to see if this external function call is the cause of the abnormal termination? This is how I would proceed to investigate if I were in your situation. Good luck!
  1. Helpful 1
  1. Gayathiri R
  2. Friday, 12 May 2023 10:57 AM UTC
Hi John Fauss,



In call service function we have changed UINT to ULONG but still it is not working. We can't comment external function call because for every operation we are connecting with tuxedo server.
  1. Helpful
  1. Gayathiri R
  2. Friday, 12 May 2023 13:55 PM UTC
Hi John,

We are debugging dll file in visual studio by attaching a powerbuilder executable we are getting an error as 'Binary was bulit without debug information' . Due to this error we are not able to debug the dll function
  1. Helpful
There are no comments made yet.
Gayathiri R Accepted Answer Pending Moderation
  1. Friday, 5 May 2023 13:46 PM UTC
  2. PowerBuilder
  3. # 2

Hi Andres,

 

The application uses external win32 api call and it is 32 bit. The PB window is getting crashed in PB IDE installed environment and citrix environment . 

In developer environment dll files are not present in exe folder and it is crashing 

Comment
There are no comments made yet.
Gayathiri R Accepted Answer Pending Moderation
  1. Friday, 5 May 2023 13:44 PM UTC
  2. PowerBuilder
  3. # 3

Hi Andres,

 

The application uses external win32 api call and it is 32 bit. The PB window is getting crashed in PB IDE installed environment and citrix environment . 

In developer environment dll files are not present in exe folder and it is crashing 

Comment
There are no comments made yet.
Chris Pollach @Appeon Accepted Answer Pending Moderation
  1. Thursday, 20 April 2023 12:47 PM UTC
  2. PowerBuilder
  3. # 4

Hi Gayathiri;

   The crash seems to be happening in "NTDLL" module which is an MS-Windows DLL. 

FYI: https://community.appeon.com/index.php/qna/q-a/pb-r3-application-instability-crashes-in-ntdll-dll-on-windows-10

 This module is used for controlling SDK calls (Windows API's).

According to Microsoft ....

The causes of ntdll. dll error messages can vary greatly. However, most of them result from a corrupt or damaged version of the ntdll DLL file itself, corrupt hardware drivers, or issues between Windows and other programs.

HTH

Regards ... Chris

Comment
There are no comments made yet.
René Ullrich Accepted Answer Pending Moderation
  1. Thursday, 20 April 2023 07:42 AM UTC
  2. PowerBuilder
  3. # 5

It's difficult to say what it could be.

Usual problems after migration from PB without Unicode support to PB with Unicode are calls to external functions. You have to check that you use the correct function (ansi vs. unicode) and (for some calls) that the buffers (e.g. to hold strings) are big enough.

 

Comment
  1. Andreas Mykonios
  2. Thursday, 20 April 2023 07:57 AM UTC
Hi René.

He is migrating from PB 10 which was already unicode. Anyway, we have not enough information. Is this application based on a framework? Does it uses external win32 api calls? It's build in x32 or x64? From PB IDE does it runs correctly? The exe crash happens to the same machine where PB IDE is installed? Are there any dll's in the folder where exe is produced?

The question is so generic that it is hard to give some specific help.

Andreas.
  1. Helpful
  1. René Ullrich
  2. Thursday, 20 April 2023 08:33 AM UTC
Hi Andreas,

you're right. I thought unicode support was later but I was wrong.
  1. Helpful
  1. Gayathiri R
  2. Monday, 8 May 2023 12:52 PM UTC
Hi Andres,

The application uses external win32 api call and it is 32 bit. The PB window is getting crashed in PB IDE installed environment and citrix environment .



In developer environment dll files are not present in exe folder and it is crashing
  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.