on 11-05-2014 8:50 PM
PB 12.5.2, current EBF
Windows 7, 8, 8.1 (32 and 64bit)
We're doing a machine compile to avoid a app crash (one specific response window, no weird code, worked in 10.2.1, now crashes at random) and have several PBD files that we normally use. Now they're DLL files.
How does PB handle SetLibraryList when there are no actual PBDs, but DLL files instead? Can a different app still open and use them like it's a PBD to grab datawindow objects? (we have a situation where some nested reports need to have sort order changed and there's no way to dynamically change it more than one time unless a separate app modifies it in a common pbl) Should I use GetEnvironment and check the MachineCode property and adjust the SetLibraryList calls as appropriate (changing .pbd to .dll)?
And as an aside - is the redraw bug known when changing sort order in 12.5.2 5652? (in the drag/drop sort order window, nothing changes visually when you move columns around, but the sort actually does change for the window and you can see it if you re-open the sort order again) I asked this 2 weeks ago and got no response at all.
Thanks
Hi Brad;
Yes, the SetLibraryList ( ) or AddToLibraryList ( ) methods will work with PBD's or DLL's.
Regards ... Chris
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Brad;
Yes, you would need to refer to your libraries with the .DLL extension not .PBD for M-Code compilation.
Suggestions:
1) Define your library list in an INI file and load the values from there.
- or -
2) Use the GetLibraryList ( ) along with the POS ( ) to see if you get a hit on ".dll" or ".pbd". Once you know the default extension - use the AddtoLibraryList ( ) or SetLibraryList from a format like "Library1.xxx, Library2.xxx, Library3,xxx ..." using the Replace ( ) method to swap out the ".xxx" with either a PBD or DLL extension as required.
Note: For P-Code compiles - your library list can be a mix of PBL and/or PBD's.
HTH
Regards ... Chris
User | Count |
---|---|
84 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.