I have build my PB project using 64 bit and it is not working where I have build the same code with 32 bit it is working. Can some one will help in the regard. Do we need to import any files for 64 bit complaint.
- You are here:
- Home
- Q&A
- Q&A
- PowerBuilder
- 64 bit Build
Resolved
64 bit Build
- How-to
- MOHAN KRISHNA DEVARAPU
- PowerBuilder
- Wednesday, 23 January 2019 13:29 PM UTC
- Wednesday, 23 January 2019 14:34 PM UTC
- PowerBuilder
- # 1
Define 'not working'.
Are you running it on the same machine that you developed on?
A 64bit exe needs a 64bit database connection, maybe that is your problem.
- Wednesday, 23 January 2019 22:04 PM UTC
- PowerBuilder
- # 2
Mohan,
Try the following.
1. Open Windows Search and search for "PowerBuilder Runtime Packager"
2. Run the PowerBuilder Runtime Packager
3. Select "PowerBuilder 64-bit Components"
4. Create the .MSI file
5. Run the .MSI file to install the PowerBuilder 64-bit Runtime
6. Attempt to run your 64-Bit PowerBuilder application.
- MOHAN KRISHNA DEVARAPU
- Wednesday, 23 January 2019 22:39 PM UTC
-
Helpful Loading... Helpful 0
- Thursday, 24 January 2019 00:21 AM UTC
- PowerBuilder
- # 3
A 64bit app uses a different set of runtime dll files. The 64bit runtimes are in:
C:\Program Files (x86)\Appeon\Shared\PowerBuilder\x64
This is not documented anywhere but PBD files can be shared between 32bit and 64bit exes.
Some Windows API functions will need to be changed to work in 64bit. Any argument that is described as a handle in the Microsoft documentation needs to be defined as longptr. A longptr compiles as long for 32bit and longlong for 64bit.
- Chris Pollach @Appeon
- Thursday, 24 January 2019 19:54 PM UTC
You are correct .. this is not documented currently but ... PBD's are bit neutral. I opened a ticket recently to clear this matter up in the PB documentation and "Build Run-time Library" dialogue to make this crystal clear.
Regards ... Chris
-
Helpful Loading... Helpful 0
- Thursday, 24 January 2019 14:21 PM UTC
- PowerBuilder
- # 4
After some investigarion I found some issue inthe pfc library casuing by below code. Do I need to change the below for 64 bit build
// Public Function: of_GetPhysicalMemory
// Arguments: none
// Returns: long - total memory
// Description: Return the total physical memory (RAM) installed in the machine
//////////////////////////////////////////////////////////////////////////////
// Rev. History Version
// 5.0 Initial version
//////////////////////////////////////////////////////////////////////////////
/*
* Open Source PowerBuilder Foundation Class Libraries
*
* Copyright (c) 2004-2017, All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted in accordance with the MIT License
* https://opensource.org/licenses/MIT
*
* ====================================================================
* This software consists of voluntary contributions made by many
* individuals. For more information on the Open Source PowerBuilder
* Foundation Class Libraries see
* https://github.com/OpenSourcePFCLibraries
*/
//
//////////////////////////////////////////////////////////////////////////////
os_memorystatus lstr_memory
lstr_memory.ul_length = 32
Return (lstr_memory.ul_totalphys)
- Thursday, 24 January 2019 14:30 PM UTC
- PowerBuilder
- # 5
I am getting diffrent values from this function while executing from development version I am getting one value while executing from commandline prompt I am getting another value.
- Roland Smith
- Thursday, 24 January 2019 15:48 PM UTC
unsignedlong dwLength
unsignedlong dwMemoryLoad
longptr dwTotalPhys
longptr dwAvailPhys
longptr dwTotalPageFile
longptr dwAvailPageFile
longptr dwTotalVirtual
longptr dwAvailVirtual
-
Helpful Loading... Helpful 0
- Roland Smith
- Thursday, 24 January 2019 16:16 PM UTC
-
Helpful Loading... Helpful 0
- Thursday, 24 January 2019 20:35 PM UTC
- PowerBuilder
- # 6
Hi Mohan;
AFAIK I do not believe that the PFC is 100% 64bit compliant.
FWIW: I had to change my App framework to use the GlobalMemoryStatusEx command instead. However, when using that SDK method, you can use it with both 32 & 64bit Apps, as follows:
HTH
Regards ... Cris
- Page :
- 1
However, you are not allowed to reply to this question.
You'll need to be more specific about what is not working correctly.
But I did the same by building application 64bit it is opening and disapprearing without any error. Here my concern is while building the pb2017 in 64 bit do I need to install new .pbds or dlls.
Note: We do use PFC framework. I have downloaded from appeon site PFC17.0.zip and imported all the librairies.