1. Dennis Huynh
  2. PowerBuilder
  3. Tuesday, 11 August 2020 18:47 PM UTC

Hi,

I am currently using PowerBuilder 2017 R3 Build 1915.  The company had upgraded Windows 7 to Windows 10.  Since the upgraded there came up a strange behavior.  Every time when user tried to upload file, the app would crash between 2 - 5 minutes.  It is consistent.  I looked through the codes and learned that we used GETFILEOPENNAME(…).  If I commented out that function then there was no crashes.  I am assuming that function is causing the app to crash.

Any helps would be very appreciated.

Thanks and Regards,

Dennis Huynh

 

Ken Guo @Appeon Accepted Answer Pending Moderation
  1. Wednesday, 12 August 2020 02:57 AM UTC
  2. PowerBuilder
  3. # 1

Hi Dennis,

I suggest you:

  1. Run your app using the compatibility mode and set it to be compatible with Windows 7 to see if it works.
  2. Launch your app via Run as Administrator to see if it is OK.
  3. Monitor the memory changes when your application is running and see if it increases rapidly. If yes, could you please locate which code is causing the increase of the memory?
  4. If your application requires read/write a file, it is suggested to use the FileReadEx and FileWriteEx functions.

Regards,

Ken

Comment
  1. Dennis Huynh
  2. Wednesday, 12 August 2020 14:25 PM UTC
Hi Ken,



We used Procmon64 try to track down which program brought down the PowerBuilder app and so far have no luck.

Thanks for your suggestions and we definitely will try them.



Thanks!

Dennis
  1. Helpful
There are no comments made yet.
Dennis Huynh Accepted Answer Pending Moderation
  1. Tuesday, 11 August 2020 20:47 PM UTC
  2. PowerBuilder
  3. # 2

Hey Mike,

Thanks for input.

Here is the script that we have been using for decade.

ll_rc = GetFileOpenName("Import SGML File", is_filepath, ls_filename, "sgm", "SGML Files (*.sgm),*.sgm")

 

Let say, we tried to load a file with 2000 records.  Why it was half way, it crashed - as long it got close to around 4 - 5 mins.

Another case, we tried to load a file with 10 records.  It loaded successfully.  But the app crashed around 4 - 5 mins.

If it is a security matter, I don't think the system would allow the call to GETFILEOPENNAME at the place.

Just a thought...

 

 

 

Comment
  1. mike S
  2. Wednesday, 12 August 2020 13:15 PM UTC
i agree, it isn't the getfileopenname since the crashing occurs after you get the file name and start processing. since it started processing your records, it is something else you are doing in your code.







  1. Helpful
  1. Dennis Huynh
  2. Wednesday, 12 August 2020 14:36 PM UTC
i commented all the codes and just left getfileopenname and system crashed.

I commented all the codes including getfileopenname and system did not crash.

i commented just getfileopenname and left the rest of the codes alone and system did not crash.
  1. Helpful
There are no comments made yet.
mike S Accepted Answer Pending Moderation
  1. Tuesday, 11 August 2020 20:27 PM UTC
  2. PowerBuilder
  3. # 3

you should post the exact GETFILEOPENNAME script you use.  there are a ton of options.

 

also, check for windows security changes that would prevent the call.

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.