Smart questions
Smart answers
Smart people
Join Tek-Tips Forums
INTELLIGENT WORK FORUMS
FOR COMPUTER PROFESSIONALS

Member Login




Remember Me
Forgot Password?
Join Us!

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips now!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!

Join Tek-Tips
*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.
Jobs from Indeed

Link To This Forum!

Partner Button
Add Stickiness To Your Site By Linking To This Professionally Managed Technical Forum.
Just copy and paste the
code below into your site.

PBL cannot be expanded, nor objects viewed within PB

LukeAirig (Programmer) (OP)
11 Feb 13 22:45
Hello,

I am a complete newbie to PB and can use some help.
My PB version is 11.2 Build 8407.

I have added a pbl to my library list within PB but it does not have a plus sign (+) in front of it, which I normally click to expand/show the objects in the pbl.

In Windows Explorer it shows a file size of 2017 KB, so there must be something in there. The file properties in Windows Explorer are not marked read-only nor hidden. Is there some setting within PB that I need to set to access the objects in the pbl?

TIA for any help you can give me.

Luke
miguelleeuwe (Programmer)
12 Feb 13 9:13
No there's no setting, it should simply work.

1) Maybe there really is no object at all in the pbl?
2) maybe the pbl is "corrupt". Try to do an 'optimize' using right-mouse button from the library painter.

You can simply copy any object to that library or create a 'dummy' new one (simply create a new window witout nothing) and save it in the library/pbl that you are having the problem with.

I'd go for the "optimize" first.

regards,
Miguel L.

miguelleeuwe (Programmer)
12 Feb 13 9:33
The fact that your library is occupying space, does not necessarily mean there's an object in it.
Powerbuilder 11, does not automatically decrease the size of your library when deleting objects: that's where the 'optimize' does its work.
"Optimize" also checks for 'lost' objects in a pbl: sometimes, especially when trying to import exported and modified code, when compilation does not succeed at the import, there's garbage code present in the library, without seeing it's object name in the list.
It's a good habbit to optimize all of your libraries every now and then (I do it always before creating and deploying any executable).


regards,
Miguel L.

LukeAirig (Programmer) (OP)
18 Feb 13 5:29
Miguel,

I have to put this aside for the time being. I will try your optimize suggestion and post an update later on.
Thanks for your help and insights.

Luke
mbalent (Programmer)
18 Feb 13 7:05
You can examine the pbl with a hex editor. If there are objects in the pbl you should see them listed towards the top of the file.

For example, a pbl of mine has

CODE

mbtest.sra.ENT*0600....F....APJ....mbtest.apl.ENT*0600 and further along
w_frogpond.win.ENT*0600 and n_base_sru, n_base_udo.... 

The objects
mbbest, w_frogpond, and n_base are all objects contained within the pbl.

You may also wish to Google 'PBdump' which is an application that allows you to extract objects from a pbl. (They are extracted into a text file similar to an export from PB).

Matt

"Nature forges everything on the anvil of time"
www.anvil-of-time.com

Topwiz (Programmer)
29 Mar 13 14:03
An empty library that has never had an object in it has a size of 4,608 bytes. You can Optimize it by right clicking on it in the workspace tree and selecting Optimize. What this does is rename the old library as .bak and create a new .pbl file. It then copies any valid objects from the old library to the new one.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members!

Back To Forum

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close