1. Matt Kleweno
  2. PowerBuilder
  3. Tuesday, 21 March 2023 23:11 PM UTC

After calling RemoveDirectory() from an application the directory remains until I close the PB IDE.  The directory is empty and not the current directory when the remove is called.  The directory does delete but only when the IDE is shutdown.

The directory should release immediately, but I find it extremely strange that it remains until the IDE closed, even after the application is closed.

Any ideas on what the cause could be?

Miguel Leeuwe Accepted Answer Pending Moderation
  1. Wednesday, 22 March 2023 11:46 AM UTC
  2. PowerBuilder
  3. # 1

Hi,

From the RemoveDirectory() help. "

Usage

The directory must be empty and must not be the current directory for this function to succeed.

"

Are you sure the directory is not the "current" on when you delete it? Use ChangeDirectory() to where you application exe is or anywhere else before calling removedirectory().

Not sure if this might be the problem, but you never know.

regards

Comment
  1. Matt Kleweno
  2. Wednesday, 22 March 2023 12:18 PM UTC
Hi Miguel,



Yes, we have the ChangeDirectory() call directly before RemoveDirectory().
  1. Helpful
There are no comments made yet.
Matt Kleweno Accepted Answer Pending Moderation
  1. Wednesday, 22 March 2023 10:31 AM UTC
  2. PowerBuilder
  3. # 2

Hi Chris,

 

  1. What O/S version is the App running on?
    Windows 10

  2. What version & build of PB are you using? 
  3. If you are on PB 2022, what App bitness are you running?
    I believe since still PB21, the IDE is 32 bit.  We do deploy to 64-bit.

Comment
  1. Chris Pollach @Appeon
  2. Wednesday, 22 March 2023 11:38 AM UTC
Hi Matt;

Thank you for that information.

Note that PB 2022 - for the first time - can run or debug your apps directly from the IDE in either 32 or 64 bit mode. ;-)

Regards ... Chris
  1. Helpful
  1. Matt Kleweno
  2. Wednesday, 22 March 2023 12:11 PM UTC
Yes, moving to PB2022 is on our roadmap for this year.
  1. Helpful 2
There are no comments made yet.
Chris Pollach @Appeon Accepted Answer Pending Moderation
  1. Tuesday, 21 March 2023 23:48 PM UTC
  2. PowerBuilder
  3. # 3

Hi Matt;

  Can you tell us...

  1. What O/S version is the App running on?
  2. What version & build of PB are you using? 
  3. If you are on PB 2022, what App bitness are you running?

Regards ... Chris 

 

Comment
  1. John Fauss
  2. Wednesday, 22 March 2023 04:02 AM UTC
@Matt - I'd be interested to know if the directory being deleted is on a local hard drive, a network drive, or a shared drive. Also, is this a directory that you/your app created?
  1. Helpful 2
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.