Quantcast
Channel: SCN : All Content - PowerBuilder Developer Center
Viewing all 2935 articles
Browse latest View live

Powerbuilder application crashes after upgrade to 12.5.2 (build 5006)

$
0
0

I have already seen few similar posts on this forum for similar issue. However, I feel mine is different from those and could be some basic steps am missing. Thanks in advance for any comments.

 

 

We are evaluating the effort and benefits of migrating our PB 10.2.1 (build 9731) application to  PB 12.5 Classic. After downloading the trial version from the SAP site, I could migrate the application easily with only a handful of warnings. However, while running the application either from build (EXE) or from IDE, it crashes (windows application failure) frequently. In addition to that, few of our application screens opens as blank screen (doesn’t display anything in the DW attached).

 

My operating system is Windows 7 (32 bit) Service Pack 1. The application has many calls external DLLs (both windows standard and custom), as samples at the bottom. I believe that the correct (from PB 12.5) DLLs are copied to Powerbuilder home directory (C:\Software\Sybase\PowerBuilder 12.5 & C:\Software\Sybase\Shared\PowerBuilder) and the source code directory in my attempt to ensure that there are no issues with DLLs. However, initially I had installed powerbuilder 12.5 also under the same root as Power builder 10.0, but as I read few posts that DLLs from different version residing in same place can cause issues, uninstalled and installed PB 12.5 on different location.

 

Our PB application also interact with the .Net modules of the application by communicating through a custom DLL. However, that seems still working and I am able to open the .Net screens from the migrated application.

 

Below are the main scenarios in which the application crashes and every time I get a DLL error as given below.

1. While running the application from IDE and selecting ‘Exit’ from the main window. This will close any instantiated objects and close the mutex by calling the windows API.

 

function ulong CreateMutexA(ulong lpMutexAttributes, boolean bInitialOwner, ref string lpName) library "kernel32.dll" alias for "CreateMutexW" function ulong GetLastError() library "kernel32.dll" alias for "GetLastError;Ansi"

function ulong CloseHandle(ulong hMutex) library  "kernel32.dll" alias for "CloseHandle;Ansi"

 

This will result in the below crash.

 

Faulting application name: PB125.EXE, version: 12.5.2.5006, time stamp: 0x50f93412

Faulting module name: kernel32.dll, version: 6.1.7601.17932, time stamp: 0x503275b9

Exception code: 0xc0000005 Fault offset: 0x0004c372

Faulting process id: 0x2bdc

Faulting application start time: 0x01cf3e72371227c9

Faulting application path: C:\Software\Sybase\PowerBuilder 12.5\PB125.EXE

Faulting module path: C:\Windows\system32\kernel32.dll

Report Id: 8feef8fc-aa65-11e3-8049-f500274aecdc

 

2. Opening of certain windows results in the below crash. If I try to debug the code and move mouse over the line of code being executed, then also I get the same crash. I don’t do the mouse move then I can proceed with the same line, however it will crash at a later line calling ‘classname’.

 

Problem Event Name: APPCRASH

Application Name: PB125.EXE

Application Version: 12.5.2.5006

Application Timestamp: 50f93412

Fault Module Name: PBVM125.dll

Fault Module Version: 12.5.2.5006

Fault Module Timestamp: 50f93437

Exception Code: c0000005

Exception Offset: 00175357

OS Version: 6.1.7601.2.1.0.256.48

Locale ID: 3081

Additional Information 1: 38ca

Additional Information 2: 38ca6ad0537dbd0555785bd862b8e94f

Additional Information 3: 0cd5

Additional Information 4: 0cd54a5b6672f15bf2ca366539d89c12

 

3. Few of the application screen opens but doesn’t display the datawindow attached to it.


Web forms in IE10

$
0
0

I have more errors if i try to using IE10 to open deployed PB11.2 application the following sample of this error:

Error:Unable to get property 'PageRequestManager' of undefined or

null reference

Line:42

powerbuilder 10.2.1 crash on windows 8

$
0
0

Let's say it simple. I create a exe file by powerbuilder 10.2.1 and run fine in both xp & windows 7. When i pass it to windows 8, it will crashed when i click any place after several second. Please do you have any suggestion to solve this unexpected error? And the same time, the same application which was generated by powerbuilder 7, was run normally on windows 8.

 

This is very annoyed to me that all my application was migrated to 10 but can't run properly on windows 8. Please help.

how to Send SMS thru pb 12.5?

$
0
0

Friends,

 

We have a requirement to send sms thru pb 12.5.

can anybody help me to achieve this task from the scratch...?

any bookmarks or links to get the details will be highly appreciated.

 

thanks & regards

How do you remove STATEFUL components from memory in EAServer?

$
0
0

This is from one of the books on Powerbuilder/EAServer:

 

"So the major difference between stateless and stateful components is that stateless components

automatically invoke the component deactivate event when a method call ends and the component

is logically removed from memory. A stateful component remains in memory until physically re-

moved by the caller."

 

What does the caller (client Powerbuilder program) do to physically remove a stateful component from EAServer?

 

Thanks,

 

Mark

Powerbuilder Classic calling webservice and get message "can not be reflected"

$
0
0

We are switching to Ultipro Saas offering, so I need to convert a program that synchronizes data to use Web Services instead of the direct DB connection we had before.

 

I created the proxy using .NET, but when I run authenticate I get the message "Method LoginService.Authenticate can not be reflected"

 

I'm not sure what I am doing wrong

 

li_ret = s_conn.createinstance(u_soap,"LoginService")

u_soap.setclientaccesskey( lws_client )

u_soap.setuseraccesskey( ls2_userkey )

u_soap.setusername( ls3_user )

u_soap.setpassword( ls1_pass )

u_soap.authenticate( ll_status, lb_status, ls_msg, ls_token )

 

 

 

<wsdl:definitions xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:wsx="http://schemas.xmlsoap.org/ws/2004/09/mex" xmlns:wsa10="http://www.w3.org/2005/08/addressing" xmlns:tns="http://tempuri.org/" xmlns:soap12="http://schemas.xmlsoap.org/wsdl/soap12/" xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd" xmlns:wsp="http://schemas.xmlsoap.org/ws/2004/09/policy" xmlns:wsap="http://schemas.xmlsoap.org/ws/2004/08/addressing/policy" xmlns:msc="http://schemas.microsoft.com/ws/2005/12/wsdl/contract" xmlns:wsa="http://schemas.xmlsoap.org/ws/2004/08/addressing" xmlns:wsam="http://www.w3.org/2007/05/addressing/metadata" xmlns:wsaw="http://www.w3.org/2006/05/addressing/wsdl" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:i0="http://www.ultipro.com/services/loginservice" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" name="LoginService" targetNamespace="http://tempuri.org/">

<wsp:Policy wsu:Id="WSHttpBinding_ILoginService_policy">

<wsp:ExactlyOne>

<wsp:All>

<wsaw:UsingAddressing/>

</wsp:All>

</wsp:ExactlyOne>

</wsp:Policy>

<wsdl:import namespace="http://www.ultipro.com/services/loginservice" location="https://service2.ultipro.com/services/LoginService?wsdl=wsdl0"/>

<wsdl:types/>

<wsdl:binding name="WSHttpBinding_ILoginService" type="i0:ILoginService">

<wsp:PolicyReference URI="#WSHttpBinding_ILoginService_policy"/>

<soap12:binding transport="http://schemas.xmlsoap.org/soap/http"/>

<wsdl:operation name="Authenticate">

<soap12:operation soapAction="http://www.ultipro.com/services/loginservice/ILoginService/Authenticate" style="document"/>

<wsdl:input name="TokenRequest">

<soap12:header message="i0:TokenRequest_Headers" part="ClientAccessKey" use="literal"/>

<soap12:header message="i0:TokenRequest_Headers" part="Password" use="literal"/>

<soap12:header message="i0:TokenRequest_Headers" part="UserAccessKey" use="literal"/>

<soap12:header message="i0:TokenRequest_Headers" part="UserName" use="literal"/>

<soap12:body use="literal"/>

</wsdl:input>

<wsdl:output name="TokenResponse">

<soap12:body use="literal"/>

</wsdl:output>

</wsdl:operation>

</wsdl:binding>

<wsdl:service name="LoginService">

<wsdl:port name="WSHttpBinding_ILoginService" binding="tns:WSHttpBinding_ILoginService">

<soap12:address location="https://service2.ultipro.com/services/LoginService"/>

<wsa10:EndpointReference>

<wsa10:Address>https://service2.ultipro.com/services/LoginService</wsa10:Address>

</wsa10:EndpointReference>

</wsdl:port>

</wsdl:service>

</wsdl:definitions>

How do I configure a 15.7.0.80 client?

$
0
0

We have been using Sybase client 12.5.1 to connect to Sybase ASE 12.5.4 with PowerBuilder 12.5.1 (build 4015).  Now we have PCs with the Sybase client 15.7.0.80 installed.  I tried to just update the general information but the test connection fails.  Any help on how to configure the client's data source to be able to connect to the database appreciated ... SBC 101 on moving from one client to the next.

Why does DSEdit fail to start?

$
0
0

We have some new PCs that have been set up with Sybase client 15 installed.  The attached error message appears when trying to execute DSEdit from the start menu or from the bin folder.  Any clues or help appreciated before I spend more time.  BTW, somebody else installed the client, I hope to get the client to install on another machine for better access, I did not see the application event log, and I did not use the sxstrace.exe tool.


Developer Center and Users Group Speakers

$
0
0

Two questions:

 

1.  Who is responsible for keeping the SAP PowerBuilder Developer Center home page current?  About 50% of the links point to Not Found pages.

 

2.  Who at SAP would be the contact for getting someone to come speak at a PowerBuilder users group meeting?  In the past, I had many of the Sybase representatives contact information but I have 0 contacts at SAP.

 

It's been an uncertain path to chart for PowerBuilder development efforts at our company not knowing if this product is going to be supported.

 

Thanks,

 

-Allen

failed to get local NLS_LANG charset ID

$
0
0

I am trying to connect to Oracle 11 through PowreBuilder 12. I can not find Oracle 11 on my installed database interfaces. When I create the profile with Oracle 10 I get this error

 

failed to get local NLS_LANG charset ID

 

Do I have to add Oracle 11? Re-install PB?

 

Thank You

Can PB native calendar objects show non-working days?

$
0
0

Hello all

I have a question about the native controls of PB, who functoin as date pickers.

Is there a way to make them show holidays in different color?

I am working on PB11.5 and PB12.5 - non-pfc

 

Thank you

Arcady


DW expression without explicitely naming the control

$
0
0

Hello, all

I have a theoretical question regarding DW.

Some of my DW's are denced charts with numerous controls. These controls do not have enough space to show all the needed data, so they have tooltips. Each control has the following expression (or something similar) in the tooltip : describe("controlname.text")

 

My question is: is it possible not to name the control explicitely in the expression, but use some other relative expression, which returns the current control (the tooltip text is always dependent on the data in it's own control).

 

I hope my quesiton was not too confusing. I know how to make it work in the code, I just go over the controls and set the tooltip accordingly on each one. But is it possible to set the same exact extression in the painter itself?

 

Thank you

Arcady

Powerbuilder App hangs in windows 7 - 64 bit

$
0
0

I had originally posted on the sybase forum, about an issue

where we seemed to have powerbuilder applications that would hang, when splwow was running on a windows 7 - 64 bit

 

original post

We have a Main jump off point to our other applications.

We use a Run Command to call these.

One of the people here, seems to think that it's hanging

on the splwow64.exe even though there is no printing

involved.

It seems like it's waiting on something to free up, before

proceeding. The application is running in the task manager,

it's just waiting.

This is happening on a window 7 64-bit.

 

 

response

Have you tried using /pbdebug when you open the other applications? This

will give you an indicator of what line in the PB app it's hung on, and

if the debug output never shows up, you'll know it's the OS having

problems actually loading the app itself.

Does it happen for ALL of the "other" apps? Or only some of them? If

only some, any commonality between them? (order of startup, specific

data it's pulling, common objects being used)

 

 

More Detail

we ran one of our modules under debug

and, it seems to be handing when we do an openchannel

      Executing instruction at line 6

      Executing instruction at line 7

      Executing class function F_PASS_SECURITY for class F_PASS_SECURITY, lib entry F_PASS_SECURITY

        Executing instruction at line 5

        Executing instruction at line 7

        Executing class function OPENCHANNEL for class SYSTEMFUNCTIONS, lib entry _TYPEDEF

          Executing system dll function

 

 

If we kill the splwow process... the module continues to run as normal

Any thoughts on this?


How to get table of object in Powerbuilder script

$
0
0

I am using PB12.5 and Oracle 11g.

 

I have an Oracle package in which I created a Table of type object with following details

CREATE OR REPLACE TYPE FILE_TYPE FORCE AS OBJECT (file_name VARCHAR(200), file_data CLOB)

 

CREATE OR REPLACE TYPE FILE_TYPE_TABLE IS TABLE OF FILE_TYPE

 

I have written a function in the same package with following signature

 

FUNCTION getFileItems(

   a_message      IN VARCHAR(50)

   )

   return FILE_TYPE_TABLE PIPELINED;

 

There is some process inside the mentioned package function that create and assign records into FILE_TYPE.

 

Is there any method in Powerbuilder to call the above mentioned package function and get the table of type return values into PB script?

 

Thanks,

Anoop

Unknown build error PB12.5 .NET

$
0
0

Hi,

 

We have upgraded from PB 12.5 to PB 11. I'm testing the .NET IDE and are experiencing the following error each time I change a property on a CommandButton:

 

Unknown build error, 'Method 'get_Command' in type 'System.Windows.Controls.Button' from assembly 'PresentationFramework, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' does not have an implementation.

 

I've seen some solutions pointing to the project file and assemblies.txt, but every time I make a change in those files the changes are overwritten as soon as I make a change in PB. Is it possible to make these changes permanent?

 

 

 

Platform specs:

PB version: 12.5.0, build 2511

OS: Windows 8, 64 bit


Help to interface zebra ZMotifPrinter.dll

$
0
0

Hy All,

I'm using Powerbuilder 10.5.

I need to upgrade anapplicationthatis usingthe Zebra libraryZBRPrinter.dllto usethe new Zebra libraryZMotifPrinter.dll.


In current application I'm using the ZBRPrinter.dll functions  after they have beendefinedasglobalexternal functions
such as :

SUBROUTINE ZBRPRNGetSDKVer (Ref long major ,Ref long minor ,Ref long engLevel ) LIBRARY "ZBRPrinter.DLL"  alias for "ZBRPRNGetSDKVer;Ansi"

Using the same technique, but withthe new library ZMotifPrinter.dll   Iget the error : "Bad Runtime function reference ..."
I didthe test usingthe following simple function:

 

FUNCTION string GetDriverName( string deviceName )  LIBRARY "ZMotifPrinter.dll"  alias for "GetDriverName;Ansi"


Any ideaabout thereasonof this error ?
any suggestions onhow to investigate?
any helpwill be 'appreciated

 

 

thanks in advance

regards
saverio


 

Passing datastore (populated) to a new window via Message - null object ref?

$
0
0

Hi, Powerbuilder 11.5.1

 

 

I'm trying to pass contents (say, 100 rows) of one datastore from w_one to w_two by Message.PowerObjectParm. What I do in the first window is set

 

Message.PowerObjectParm = lds_datastore

 

and immediately call opening of the second window. In the preopen() of the second window, I try to retrieve this datastore and its contents by

 

n_ds ds_get_datastore

ds_get_datastore = Message.PowerObjectParm

 

However, when I call ds_get_datastore.RowCount(), I keep getting null object reference on it. I did a bit of research, and I would understand if the first window was a response window which was CLOSING right when the new window gets opened, as in that case the original datastore gets destroyed. But it's not a response window, and at the time of opening the second window, the first window and its datastore very much still exist, albeit they lose focus, obviously.

 

So if the first window is not destroyed, and its datastore as well, why am I getting a null object reference when I call a RowCount() on the picked up datastore in the new window?

 

If this just can't be done, can you suggest alternative ways? I tried to do it by GetFullState() and keeping it in blob, but it seems that I can't pass blob via Message PowerObjectParm somehow. Compiler returns "Incompatible types in assigment: powerobject, blob"?

 

 

Thanks for any suggestions

How to get Machine time zone in Powerbuilder?

$
0
0

Do we have any way to get machine time zone in Powerbuilder script?

 

Thanks in advance.

Issue with SaveAs PDF using XSLFOP

$
0
0

Hi, We have been using SaveAs method to generate PDF files using XSLFOP technique successfully, however, recently we ran into an issue where a very large report (about 100+ pages) generated a PDF file that could not be opened. We get the following error when we try to open the PDF file. “There was an error opening this document. The file is damaged and could not be repaired.” We tried it again with lesser range of dates and the proper PDF file is generated. (Report was about 35 pages). So we think it has something to do with the large volume of data which is causing the SaveAs method to generate the corrupt PDF file. Any help will be much appreciated !! Note : In the same folder where we have the EXE,PBD and DLLs, we have two subfolders fop-0.20.5 and jre. Thanks, Chirag Vora

How do you upgrade the Powerbuilder Virtual Machine on EAServer?

$
0
0

I am upgrading from PB 11.5 to PB 12.5. I renamed the current folder (C:\Program Files\Sybase\EAServer6\PowerBuilder) and then created a new Powerbuilder folder that contains the PB 12.5 DLLs. It appears to be working but I have the PB Heap summary turned on and it is complaining:

 

      PbHeap_dumpSummary [JaguarServer] Warning: There are no valid PowerBuilder versions installed.

 

Thanks for any help,

 

Mark Yanni

 

Viewing all 2935 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>