1. Olan Knight
  2. PowerBuilder
  3. Tuesday, 14 November 2017 18:15 PM UTC

PBv12.1, b7055
Windows 7, 64 bit platform
Client/server app

Normally, we run our main app from a batch file, which consists of:   
--- add the Class Libraries

     set path=%path%;J:\QualityAssurance\csgi12\Common\Common_0193\exe
   --- add the runtime DLLs
     set path=%path%;J:\QualityAssurance\csgi12\Resources
   --- add the Help files
      set path=%path%;J:\QualityAssurance\csgi12\Resources\Help
   --- change the current directory to where the code resides and run the app
      cd J:\QualityAssurance\csgi12\ICABS\zICABS4_4_b0151_R#685146\complete
      start icabs4_4.exe

Today, out of the clear blue sky, one tabpage of one module in my app started failing when the app was run from the batch file.
If you place all of the required files into a single folder and run the app by double-clicking the EXE, everything works correctly.

By process of elimination, I found that if I put a copy of PBSHR120.DLL in with my application code, everything works correctly even when the app is started from the batch file. This would seem to indicate that the PBSHR120.DLL in the referenced folder is damaged; except that the copy in with the code was copied from the referenced folder. Which would seem to indicate that the DLL is just fine, thank you very much.

I've tried:
1) Replacing the PBSHR120.DLL in the Resources folder. The error still occurs.
2) Creating a new Resources folder, copying all of the required files from a different folder (the Production folder) into that new folder and pointing the batch file to that new folder. The error still occurs.
3) Referencing the production folders instead of the development folders in the batch file. The error still occurs.
4) Restarting  PowerBuilder. The error still occurs.
5) Restarting the VM. The error still occurs.
6) Adding the new Resources folder to the PATH variable. The error still occurs.


My work-around is to simply place a copy of PBSHR120.DLL in with my application code.
 
Any ideas on what might be causing this behavior of this ONE runtime DLL?

Olan Knight Accepted Answer Pending Moderation
  1. Thursday, 2 August 2018 23:11 PM UTC
  2. PowerBuilder
  3. # 1

I finally put all of the required files, PBLs, and DLLs into a single folder and ran the code successfully.

Thank you all for your help and  your ideas!

Olan

Comment
There are no comments made yet.
Daryl Foster Accepted Answer Pending Moderation
  1. Wednesday, 15 November 2017 00:33 AM UTC
  2. PowerBuilder
  3. # 2

In the past I've used Process Monitor (https://docs.microsoft.com/en-us/sysinternals/downloads/procmon) to see exactly which dlls and files my applications is using.  It might be worth running that to see if the version of PBSHR120.DLL you think is being used is the one actually being used.

Comment
There are no comments made yet.
Roland Smith Accepted Answer Pending Moderation
  1. Tuesday, 14 November 2017 19:58 PM UTC
  2. PowerBuilder
  3. # 3

I would install FileLocator Lite and use it to look for multiple copies:

https://www.mythicsoft.com/filelocatorlite/download/

 

Comment
  1. Olan Knight
  2. Thursday, 16 November 2017 00:54 AM UTC
There are multiple instances of this DLL on the various drives. I'll check the PATH tomorrow.

Thanks, Roland!



 

  1. Helpful
There are no comments made yet.
Ronnie Po Accepted Answer Pending Moderation
  1. Tuesday, 14 November 2017 19:22 PM UTC
  2. PowerBuilder
  3. # 4

Hi Olan,

Is it possible that there's another version of PBSHR120.DLL sitting higher in the search path?

One quick test you could try is modify one line of your batch file to

set path=J:\QualityAssurance\csgi12\Resources;%path%

and see if it makes a difference.

Comment
There are no comments made yet.
Matthew Balent Accepted Answer Pending Moderation
  1. Tuesday, 14 November 2017 19:05 PM UTC
  2. PowerBuilder
  3. # 5

...out of the clear blue sky...

Did some permissions get changed?

 

Comment
  1. Olan Knight
  2. Wednesday, 15 November 2017 20:11 PM UTC
Good idea, but all of the copies are NOT marked as read only and they all have RWE privileges assigned to me.



Thank You,

Olan

  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.
We use cookies which are necessary for the proper functioning of our websites. We also use cookies to analyze our traffic, improve your experience and provide social media features. If you continue to use this site, you consent to our use of cookies.