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

Powerbuilder 8.0.3 - PBVM80.PDB file needed

$
0
0

Hello there.

We are a Software Developer using PowerBuilder 8.0.3.0  We have an issue where Microsoft is involved and trying to help us understand a crashing issue with the PBVM80.dll  file.  We hope someone out there has the PDB version of this DLL so we can move our issue forward with Microsoft.

Please see thread below for more technical details.

thanks you for your time.

Chris Webb

Xytech Systems

 

 

Subject: RE: [REG:114072111636480] pro/ IIS Internet Info Svr 6.0/ system crashed

 

Please find below my analysis and the next set of action plan:

 

We see the crashing thread as zero and see the call stack of the procdump data:

 

 

0:000> kL

ChildEBP RetAddr 

WARNING: Stack unwind information not available. Following frames may be wrong.

00000000 00000000 pbvm80!FN_DataStoreWnd+0x9b

 

EXCEPTION_RECORD: ffffffff -- (.exr 0xffffffffffffffff)

ExceptionAddress: 10be27cb (pbvm80!FN_DataStoreWnd+0x0000009b)

   ExceptionCode: c0000005 (Access violation)

  ExceptionFlags: 00000000

NumberParameters: 2

   Parameter[0]: 00000000

   Parameter[1]: 0000000c

Attempt to read from address 0000000c

 

CONTEXT:  00000000 -- (.cxr 0x0;r)

eax=0000ffff ebx=07bb0154 ecx=00780ff0 edx=00000000 esi=10be2730 edi=00000080

eip=10be27cb esp=0012dba4 ebp=00000000 iopl=0         nv up ei pl nz na po nc

cs=001b  ss=0023 ds=0023  es=0023  fs=003b gs=0000 efl=00010202

pbvm80!FN_DataStoreWnd+0x9b:

10be27cb 8b4d0c mov     ecx,dword ptr [ebp+0Ch] ss:0023:0000000c=????????

 

DEFAULT_BUCKET_ID: NULL_CLASS_PTR_READ

 

PROCESS_NAME: enterprise.exe

 

ERROR_CODE: (NTSTATUS) 0xc0000005 - The instruction at 0x%08lx referenced memory at 0x%08lx. The memory could not be %s.

 

EXCEPTION_CODE: (NTSTATUS) 0xc0000005 - The instruction at 0x%08lx referenced memory at 0x%08lx. The memory could not be %s.

 

EXCEPTION_PARAMETER1: 00000000

 

EXCEPTION_PARAMETER2: 0000000c

 

READ_ADDRESS: 0000000c

 

FOLLOWUP_IP:

pbvm80!FN_DataStoreWnd+9b

10be27cb 8b4d0c mov     ecx,dword ptr [ebp+0Ch]

 

0:000> lmvm pbvm80

start end        module name

10b00000 10e91000   pbvm80   C (export symbols)       pbvm80.dll

    Loaded symbol image file: pbvm80.dll

    Image path: C:\APPS\XytechWebServices\app\pbvm80.dll

    Image name: pbvm80.dll

Timestamp:        Thu Sep 19 16:05:39 2002 (3D89A87B)

CheckSum:         00000000

ImageSize:        00391000

    File version:     8.0.3.9704

    Product version:  8.0.3.0

    File flags:       2 (Mask 3) Pre-release

    File OS:          10001 DOS Win16

    File type:        1.65 App

    File date:        00000000.00000000

Translations:     0409.04e4

    CompanyName: Sybase Inc.

ProductName:      PowerBuilder/InfoMaker

InternalName:     PB 8.0

FileVersion:      8.0.3.9704

    FileDescription:  Sybase Inc. Product File

    LegalCopyright: Copyright Sybase Inc. 2000

 

 

Below is the callstack of the dump taken using debugdiag second chance--->enterprise__PID__7704__Date__07_22_2014__Time_01_52_11PM__640__Second_Chance_Exception_C0000005.dmp

 

 

0:000> kL

ChildEBP RetAddr 

WARNING: Stack unwind information not available. Following frames may be wrong.

00000000 00000000 pbvm80!FN_DataStoreWnd+0x9b

 

0:000> .exr -1

ExceptionAddress: 10be27cb (pbvm80!FN_DataStoreWnd+0x0000009b)

   ExceptionCode: c0000005 (Access violation)

  ExceptionFlags: 00000000

NumberParameters: 2

   Parameter[0]: 00000000

   Parameter[1]: 0000000c

Attempt to read from address 0000000c

 

0:000> da 0000000c

0000000c "????????????????????????????????"

0000002c "????????????????????????????????"

0000004c "????????????????????????????????"

0000006c "????????????????????????????????"

0000008c "????????????????????????????????"

000000ac "????????????????????????????????"

000000cc "????????????????????????????????"

000000ec "????????????????????????????????"

0000010c "????????????????????????????????"

0000012c "????????????????????????????????"

0000014c "????????????????????????????????"

0000016c "????????????????????????????????"

 

 

Took the first chance access violation dump:

 

Enterprise__PID__7892__Date__07_23_2014__Time_03_18_04PM__683__Second_Chance_Exception_C0000027.dmp

 

0:000> kL

ChildEBP RetAddr 

0012d654 77bc7e30 msvcrt!_global_unwind2+0x18

0012d65c 11502198 msvcrt!longjmp+0x18

WARNING: Stack unwind information not available. Following frames may be wrong.

00000000 00000000 pbdwe80!Ordinal659+0x2198

 

0:000> .exr -1

ExceptionAddress: 77bc641c (msvcrt!_global_unwind2+0x00000018)

   ExceptionCode: c0000027

  ExceptionFlags: 00000006

NumberParameters: 0

 

0:000> !analyze -v

*******************************************************************************

* *

* Exception Analysis *

* *

*******************************************************************************

 

Debugger CompCtrlDb Connection::Open failed 80040e4d

Cannot access CompCentralDB. You may need to request access: http://windows/access

*** WARNING: Unable to verify checksum for enterprise.exe

*** ERROR: Module load completed but symbols could not be loaded for enterprise.exe

*** WARNING: Unable to verify checksum for pbvm80.dll

*** ERROR: Symbol file could not be found.  Defaulted to export symbols for pbvm80.dll -

Debugger Dbgportaldb Connection::Open failed 80040e4d

Database Dbgportaldb not connected

FAULTING_IP:

msvcrt!_global_unwind2+18

77bc641c 5d pop     ebp

 

EXCEPTION_RECORD: ffffffff -- (.exr 0xffffffffffffffff)

ExceptionAddress: 77bc641c (msvcrt!_global_unwind2+0x00000018)

   ExceptionCode: c0000027

  ExceptionFlags: 00000006

NumberParameters: 0

 

CONTEXT:  00000000 -- (.cxr 0x0;r)

eax=00000000 ebx=00000000 ecx=00000000 edx=00000000 esi=00000000 edi=00000000

eip=77bc641c esp=0012d644 ebp=0012d654 iopl=0         nv up ei pl nz na pe nc

cs=001b  ss=0023 ds=0023  es=0023  fs=003b gs=0000 efl=00000206

msvcrt!_global_unwind2+0x18:

77bc641c 5d pop     ebp

 

DEFAULT_BUCKET_ID: APPLICATION_FAULT

 

PROCESS_NAME:  enterprise.exe

 

ERROR_CODE: (NTSTATUS) 0xc0000027 - Unwind exception code.

 

EXCEPTION_CODE: (NTSTATUS) 0xc0000027 - Unwind exception code.

 

NTGLOBALFLAG:  0

 

APPLICATION_VERIFIER_FLAGS: 0

 

USER_LCID_STR:  ENU

 

APP:  enterprise.exe

 

ANALYSIS_VERSION: 6.13.0016.1867 (debuggers(dbg).130603-1647) x86fre

 

FAULTING_THREAD: 000010e8

 

PRIMARY_PROBLEM_CLASS: APPLICATION_FAULT

 

BUGCHECK_STR: APPLICATION_FAULT_APPLICATION_FAULT

 

LAST_CONTROL_TRANSFER: from 77bc7e30 to 77bc641c

 

STACK_TEXT: 

0012d654 77bc7e30 00000000 11502198 0012d6dc msvcrt!_global_unwind2+0x18

0012d65c 11502198 0012d6dc 00000600 0012d71c msvcrt!longjmp+0x18

WARNING: Stack unwind information not available. Following frames may be wrong.

00000000 00000000 00000000 00000000 00000000 pbdwe80!Ordinal659+0x2198

 

 

 

Conclusions and Action Plan:

===============================

The reason that we are not able to get the complete stack unwind is because we don't have the symbols (PDB) for anything that is on the stack. Basically, everything on the stack is non-Microsoft and therefore our debuggers are not able to walk the stack.

 

However, it is very clear that the problem is with pbvm80.dll.

 

The fact that the process crashes in a few seconds would tell me that it is a problem with installation/configuration.

 

I understand that you had mentioned to me earlier that You cannot get the PDB files from Sybase. PDBs are a must to debug this further. It would have given us the function details and a complete callstack. Unfortunately we don’t have it.

 

The other option you have is to check with the Sybase folks if there are any known issues with this pbvm80.dll or check with them if the issue that you are facing is fixed with new version of this product.

 

Please let me know if you have any queries or concerns.


Problem creating Oracle functions from PowerBuilder

$
0
0

I am trying to create a simple Oracle database function from the PowerBuilder database painter and I and getting this error:

 

ORA-24344: success with compilation error

 

This is the function:

 

CREATE OR REPLACE FUNCTION GETDATE

RETURN DATE AS

BEGIN

  RETURN SYSDATE;

END;

 

This is Oracle Express 11g from PowerBuilder 10 using the O10 driver. I was certain I had run this same script before successfully but now it doesn't work.

 

I am trying to replicate the getdate() function found in Sybase & Microsoft databases in Oracle to facilitate my application working on different databases without changes.

Base64Encoded to PDF

$
0
0

Hi Team,

 

Can we able to do the below in powerbuilder?

 

1) Reads the PDF data from Sybase DB which will be in the (Base64Encoded format) and save it as a PDF in any location(C:\temp\)

2) Open the saved PDF in PDF Reader through PowerBuilder

 

Thanks,

Naresh

Powerbuilder 12.1 and web service deploy problems

$
0
0

My Powerbuilder application had a recent problem with the webservice.  Apparently, the dll created by the deploy process contains the physical location of the service and not the virtual name.  The web service stopped working when the service service was moved to a new server.

 

Now that the problem has been identified, I want to redeploy the dll associated with the service.  However, the <deploy> is not working.  I am getting an error.

 

---------- Deploy: Deploy of p_collect_wsproxy_validate   (10:09:46 AM)
Retrieving PowerBuilder proxies from Web service...
Error: Cannot access the WSDL or the WSDL file is invalid.(http://servicebus.entergy.com/Finance/GL/Validation/ChartFieldValidation?WSDL)
    Generation Errors:
    Cannot access the WSDL or the WSDL file is invalid.(http://servicebus.entergy.com/Finance/GL/Validation/ChartFieldValidation?WSDL)
---------- Finished Deploy of p_collect_wsproxy_validate   (10:09:47 AM)

 

I can access the web service from a browser.  I can ping the associated server.  However, powebuilder is not picking up the webservice correctly.

Another co-worker found a reference online that said that powerbuilder 12.1 only works with the dot net framework 3.5, so I removed 4 and went back to 3.5.1 and pb12.1 is still not picking up the wsdl.

 

I tried removing the old copy of the dll from the build directory.
PB12.1 is still not re-deploying the object. 

 

When the application was last modified, I was running windows XP.  I now have a new machine running windows 7. It is possible that some supporting framework applications are at their latest levels.  However, as I mentioned, I removed .Net 4.X and reloaded .net 3.5.1

 

Any suggestions???

Why is application crashing after doing a build?

$
0
0

PB 12.5.1 (build 4015), Window 7.

 

I have a very, very small application that I needed to modify.  It is not set up like many I have designed with an application manager, frame, menu, and such (pfc).  The application opens a main! window with no menu.  I changed the application object open event adding script and added an user event for database connection.  I removed a login window that was not needed.  I execute/run in development mode and all works “fine”.  Then I created a project and did a build, full for speed as an executable with dlls.  When I run the exe the window of type main! opens but the application immediately crashes (last line in application open event is “open (w_window_main)”.  When I debug the program using the windows debugger I receive a message “Unhandled exception at 0x0061227f in fbds.exe 0xC0000005: Access violation writing location 0x0000003c.”.  Then I break and the call stack location is PBSHR125.DLL!0061227f().  The "main" window does open and is visible with the windows stop working window displayed too.

 

Any ideas or thoughts appreciated.

PB 12.5 Soap Execution Error

$
0
0

Does anyone know why I am getting the error is bold below?  Actual error message could not be attached.

 

I am getting the following error when I run a Soap Proxy Client from a PB 12.5 application :

The essential part of the error is:

Error Number  0

Error Text = Unknown error, problem with Soap Client

 

Listed below is the script from the event that fails:

________________________________________________________________________________________

 

//Declare Soap objects

soapconnection l_conn

proxy_basichttpbinding_icardloadingservice      proxy_obj

__authorization                                              ltns_authorization

__transaction                                                ltns_transaction

__transactionresponse                                    ltns_transactionresponse

 

 

LONG ll_log, ll_return

STRING ls_endpoint

 

 

l_conn = create soapconnection

ll_log = l_conn.SetSoapLogFile ("C:\mySoapLog.log")

 

 

ll_return = l_conn.CreateInstance( proxy_obj, "proxy_basichttpbinding_icardloadingservice" )

 

 

ltns_authorization.idbranch = "A00070"

ltns_authorization.iduser = 3159

ltns_authorization.password = "#######"

 

 

ltns_transaction.accountnumber = "A1111"

ltns_transaction.amount = 100.

ltns_transaction.branchid = "A00070"

ltns_transaction.clavereceiver = "1234567"

ltns_transaction.senderid = 1

 

 

ltns_transactionresponse.accountnumber = ""

ltns_transactionresponse.code = ""

ltns_transactionresponse.idbranch = ""

ltns_transactionresponse.idsender = ""

ltns_transactionresponse.ws_message = ""

ltns_transactionresponse.passwordreceiver = ""

 

 

IF IsValid(proxy_obj) THEN

ltns_transactionresponse = proxy_obj.createtransaction(  ltns_authorization, ltns_transaction )  <===ERROR happens here!

ELSE

  MessageBox("Error","Proxy object is NULL")

END IF

Database Interface Question

$
0
0

Hello,

 

i'm using PB 12.5.2 Build 5006 Classic and ORACLE 11 connecting with ORA11 Driver.

 

I have another app inserting rows in an interface table of my app. I want to process these rows asap.

I could use a timer and do selects on this table and if i find rows process them but that solution has many drawbacks.

 

i wonder if there are other approaches, i have to admit i cant think of any.

 

Every suggetion is welcome!

 

Thanks in advance

 

Christian

Intermittent Crashes with .NET visual controls embedded in PowerBuilder

$
0
0

After adding a few .NET (4.0) controls embedded in our PowerBuilder (12.1 Build 7217) windows as OLE objects, we are now getting random hard crashes in our application. It is a hard crash so exception handling in our application does not catch the error, the app simply crashes.

We have been able to reproduce it through automated UI tests, and it usually occurs after opening and closing the same set of three or four windows less than 100 times.

The most common error codes we get are the three below:

 

0xC0000005  EXCEPTION_ACCESS_VIOLATION  The thread tried to read fromor write to a virtual address for which it does not have the appropriate access.
0x80000003  EXCEPTION_BREAKPOINT A breakpoint was encountered.
0xc0000409  Unknown software exception (ApplicationError)

 

 

 

 

Here are some sample errors in the Windows Event Viewer:

 

 

 

 

 

 

 

Faulting application name:[OUR APP NAME], version:1.0.0.1, time stamp:0x512de438
Faultingmodule name: unknown, version:0.0.0.0, time stamp:0x00000000
Exception code:0x80000003
Fault offset:0x048495b4
Faulting process id:0x2fc
Faulting application start time:0x01cfa28c02e07932
Faulting application path: C:\Program Files(x86)\..........[our app exe]
Faultingmodule path: unknown
ReportId:9c101a2e-0e7f-11e4-815e-0026b9806e38

Faulting application name:[OUR APP NAME], version:1.0.0.1, time stamp:0x512de438
Faultingmodule name: clr.dll, version:4.0.30319.18444, time stamp:0x52717e84
Exception code:0xc0000005
Fault offset:0x000fe810
Faulting process id:0x2fc
Faulting application start time:0x01cfa28c02e07932
Faulting application path: C:\Program Files(x86)\..........[our app exe]
Faultingmodule path: C:\Windows\Microsoft.NET\Framework\v4.0.30319\clr.dll
ReportId: a5b51191-0e7f-11e4-815e-0026b9806e38

Faulting application name:[OUR APP NAME], version:1.0.0.1, time stamp:0x512de438
Faultingmodule name: ntdll.dll, version:6.1.7601.18229, time stamp:0x51fb1072
Exception code:0xc0000029
Fault offset:0x00090892
Faulting process id:0x272c
Faulting application start time:0x01cfa29978c86751
Faulting application path: C:\Program Files(x86)\..........[our app exe]
Faultingmodule path: C:\WINDOWS\SysWOW64\ntdll.dll
ReportId:983c1451-0e8d-11e4-a4b9-b8ca3a74f207

 

The application is not even crashing on our code, but usually somewhere in the CLR code or the PBVM code. The callstack from the crash dump does not even include any of our functions, it seems to be purely .NET framework/CLR code. The callstack below is what we usually see, but even this is not consistent from one crash to the next:

 

clr.dll!string"d:\\iso_whid\\x86fre\\base\\ntos\\rtl"...()  +0x4f3b9b bytes 
ntdll
.dll!ExecuteHandler@20()  +0x24 bytes
ntdll
.dll!_KiUserExceptionDispatcher@8()  +0xe bytes 
0b1cb4b4() 
clr
.dll!GetFastContextCookie()  +0x1d bytes 
clr
.dll!CtxEntry::EnterContextCallback()  +0x41 bytes 
ole32
.dll!CRemoteUnknown::DoCallback()  +0x3b bytes 
rpcrt4
.dll!_Invoke@12()  +0x30 bytes 
rpcrt4
.dll!_NdrStubCall2@16()  +0x217 bytes 
rpcrt4
.dll!_CStdStubBuffer_Invoke@12()  +0x82 bytes 
ole32
.dll!SyncStubInvoke()  +0x30 bytes 
ole32
.dll!StubInvoke()  +0x73 bytes 
ole32
.dll!CCtxComChnl::ContextInvoke()  +0xdb bytes 
ole32
.dll!MTAInvoke()  +0x1a bytes
ole32
.dll!STAInvoke()  +0x4c bytes
ole32
.dll!AppInvoke()  +0x8d bytes
ole32
.dll!ComInvokeWithLockAndIPID()  +0x21b bytes
ole32
.dll!ComInvoke()  +0x71 bytes
ole32
.dll!ThreadDispatch()  +0x1a bytes 
ole32
.dll!ThreadWndProc()  +0x93 bytes
user32
.dll!_InternalCallWinProc@20()  +0x28 bytes 
user32
.dll!_UserCallWinProcCheckWow@32()  +0xa2 bytes 
user32
.dll!_DispatchMessageWorker@8()  +0xc8 bytes
user32
.dll!_DispatchMessageW@4()  +0xf bytes 
ole32
.dll!CCliModalLoop::PeekRPCAndDDEMessage()  -0x7982 bytes
ole32
.dll!CCliModalLoop::BlockFn()  +0x1143 bytes 
ole32
.dll!_CoWaitForMultipleHandles@20()  +0xb7 bytes 
clr
.dll!MsgWaitHelper()  +0x6f bytes 
clr
.dll!Thread::DoAppropriateAptStateWait()  +0x12524 bytes 
clr
.dll!Thread::DoAppropriateWaitWorker()  +0xe9 bytes
clr
.dll!Thread::DoAppropriateWait()  +0x60 bytes 
clr
.dll!Thread::JoinEx()  +0x83 bytes 
clr
.dll!Thread::Join()  +0x16 bytes 
clr
.dll!RCW::Initialize()  +0x1cb81f bytes
clr
.dll!RCW::CreateRCW()  +0x62 bytes 
clr
.dll!COMInterfaceMarshaler::CreateObjectRef()  +0x4e bytes 
clr
.dll!COMInterfaceMarshaler::FindOrCreateObjectRef()  +0x8c bytes 
clr
.dll!GetObjectRefFromComIP()  +0x125 bytes 
clr
.dll!UnmarshalObjectFromInterface()  +0x1b bytes 
clr
.dll!StubHelpers::InterfaceMarshaler__ConvertToManaged()  +0xc6 bytes 
System.Windows.Forms.ni.dll!7ba745e0() 
[Frames below may be incorrect and/or missing,no symbols loaded forSystem.Windows.Forms.ni.dll]  
clr
.dll!_COMToCLRDispatchHelper@28()  +0x28 bytes 
clr
.dll!BaseWrapper<Stub*,FunctionBase<Stub*,&DoNothing<Stub*>,&StubRelease<Stub>,2>,0,&CompareDefault<Stub*>,2>::~BaseWrapper<Stub*,FunctionBase<Stub*,&DoNothing<Stub*>,&StubRelease<Stub>,2>,0,&CompareDefault<Stub*>,2>()  +0x175b8b bytes
clr
.dll!COMToCLRWorkerBody()  +0x80 bytes 
clr
.dll!COMToCLRWorkerDebuggerWrapper()  +0x34 bytes 
clr
.dll!_COMToCLRWorker@8()  +0x12b bytes 
04e7a2c6() 
PBVM120
.DLL!10b1a856()


Even when we strip down the embedded .NET control to a simple/empty container with no child controls on it, and no other significant code being called, we still get the crash. Note that we are only making simple function calls into the .NET control with basic data type parameters.

 

We have been able to drastically improve stability by manually calling Dispose on all the .NET controls and forcing garbage collection, such that now we don't seem to get the error at all when showing certain embedded .NET controls, but we still get the error for others.

 

This does not appear to be a memory leak issue as such, since the app is only using around 100MB of RAM when it crashes. Although it does appear to be some kind of memory corruption issue, given that it is a hard crash in the CLR code, usually with an access violation error, and given that calling Dispose on our controls seems to reduce the problem occurrence.

 

Since the app seems to crash randomly in the CLR code we have been unable to pinpoint the exact cause of the issue, all we can say is that it only seems to occur when opening PowerBuilder windows in our app that have embedded .NET controls.

 

We updated the .NET version installed on our machines and applied the hotfix that looked like it would resolve this issue (below), but this has not helped.

 

http://support.microsoft.com/kb/2640103

 

Any help would be greatly appreciated, as we have been unable to find any evidence on the web that others are having this issue.


PocketBuilder 2.5.2 and SQL Anywhere 12

$
0
0

Hi all,


I have aWindows Mobile device .Itshould runSQLAnywhere 12 withPocketBuilder2.5.2.Butat thestarton themobiledevicealways get the messagethat the driverdbodbc10.dllmissing .Where can I setthat the driverofASA 12 shouldbe taken ? Ordoes this not workwithASA12 .


Thanks for help.


André Rust

Date Expression in Datawindow

$
0
0

Dear,

 

I have a problem making script inside datawindow using expression for date and text color

s01_prod_date > SubString(Replace(Convert(varchar(10), getdate()-2, 112), '-', ''),1,8);

 

the logic is when date is not yet 2 days than (s01_prod_date), data windows text color is Red and after that normal text color

 

please help,

anyone who usually handle about datawindow expression

 

Thanks Before

Importing XML Bug Feature

$
0
0

PB 12.5.1

 


I realize this has been the case since the beginning but I am finally asking the question - why would ImportString(XML!, lsXML) not import the values above the Start Detail setting???  This has always been an annoyance because you can Export the data but not turn around and Import it!  It seems so simple to support so I can only assume there is just some technical issue that prevents it from working.  If anyone can shed light on why I would love to know.

 

That being said, is there a better solution then finding the data in the XML string and then setting the columns in code?  My XML is typically pretty small in size so using PBDOM seems like overkill.  Any other suggestions or tricks that one might have to use the power of the DW to handle it?

 

Thanks,

Chris Craft

How to pass a structure/array of structure as input parameter in a webservice

$
0
0

Hi Team,

 

I am trying to create a webservice in powerbuilder .net( pb 12.5.1) . As this webservice will be used by external world to access some of data on basis of some input paarameter.

 

So can i use array of structure as input parameter to a webservice ? If no, then how can i pass a result set ( mora then 1 row with more than one column)

as an argument to the webservice.

 

 

 

Regards

Subrat

pbdebug in limited quantities

$
0
0

PB Classic 12.5.2 Build 5583

OS Doesn't matter

 

I'm working on tracking down a strange app crashing problem, and the results from /pbdebug would be ideal IF I could turn it on/off as needed within the app.

 

With no pbdebug off, it takes maybe 15 seconds to get to the response window in the app that's having problems (that's from the time you click the desktop icon to start it). With pbdebug on, it takes 7-8 minutes to get to the window (there's a lot of looping going on to parse multiple datawindows for displaying problem data to the user in a text box). If I could turn on /pbdebug when the response window opens, that would make the app usable and might help find the problem faster. As it is, I can't get debug info because the app never gets to the point where the user can break it. I also can't use the PB Trace tools since they don't close down properly and the trace file is unusable if the app doesn't close it right.

 

Does anyone know of a way to toggle /pbdebug within a running app?

 

 

Brief problem is: at some point on the response window, the internal PB Script processor gets hung, and the entire app stops running code. The strange part is that it doesn't act like an infinite loop since windows keep repainting, and the windows close buttons (corner X) actually works, but no code gets run when you close it. Other buttons click, (depress), but nothing happens. Eventually you need to close the app by killing it from task manager, but it continues painting properly the whole time.

How to remove DDDW from a column (dynamically)

$
0
0

Dear Experts,

 

Dynamically, I added drop down datawindow in a column and works fine.

Also I want to remove that attached drop down datawindow from that column

What is the modify script?

Thanks

Amanullah

Animating Datawindows (1 of n)

$
0
0

The PowerBuilder datawindow is just that: A window into your data.  Data source and layout at design time and data buffers and presentation of that data at run time. I have always being an advocate of using tools for what they were meant for. But, or rather and more!

 

By animating, I mean conditionally showing objects using the visible expression of each object.  You may for example have a log of phone calls made and want to show the phone number only for the time it was active.

 

To exploit the visible expression there are two unusual things you need to do.  You need each data element to be a text object, not a column, and the databuffer to have only one row and in this case one column.  For illustration we will paint a text object in the painter.  For real, you would want to generate the text objects at run time. For now:

Visible.png

 

phone_4689 is a text object with the text “212 922 1234” and we want to show this phone at the time is was in use; between 9:10 and 9:45.  The datawindow contains one row and one column: “showtime” of type time. So the phone_4689.visible expression then is “if (showtime > time(‘09:10’) and showtime < time(’09:45’), 1 , 0 )”:


All we need to do at run time is to animate is to advance the “showtime”.  Do this either in the timer event or a slider to let the user emulate the time they want to see.  Or both.

 

For this example the timer event increments the time of day by a minute each time the event is triggered:

 

itShowTime = RelativeTime ( itShowTime , 60 )

dw_1.SetItem ( 1 , ‘showtime’,  itShowTime )

 

A start button could contain:

 

itShowTime = time ( ’09:00’ )

if dw_1.RowCount() = 0 then dw_1.InsertRow(0)

timer ( 1 , parent )


You should see the phone number ten seconds later for 35 seconds.


Error calling method of a PBNI object

$
0
0

Dear All,

 

We are facing issue of "Error calling method of a PBNI object". We are calling web services of WCF after some time to refresh data.We need help to solve this issue as we have to go live with client.

 

It's really urgent!

 

Regards

Imran Zaheer

PB.Net, Datawindow and Readonly

$
0
0

Hi everyone!

 

Im pretty new to powerbuilder and its  my first time to build an app using powerbuilder.net

 

my situation here is, I have created a data entry application that consists of 2 datawindow to show the product, and product version respectively. The values/contents of the version_datawindow are dependent on the index of product_datawindow. i have set both of the datawindows to dw_prod.object.datawindow.@readonly=true/dw_ver.object.datawindow.@readonly=true. I have a ribbon menu control for my action handlers.

 

Whenever i press the Add button, two datawindows will set is @readonly property to false.

 

my question is this.

 

  1. when i press the ADD button, the datawindows are still on @readonly=true
    • i have put the protect in the script so whenever the add is clicked, the newrow is only editable
    • i have put tab order in my datawindows
  2. is it a bug that datawindows cannot change @readonly property?
  3. what would be the reasons why i cannot type on my datawindow?

 

notes:

i have tried this methods

dw_prod.object.datawindow.readonly='yes'/'no';

dw_prod.modify("Datawindow.readonly='Yes'/'No'")

 

please help.

 

thanks guys and more power!

Oracle Wire Protocol Driver for ASA

$
0
0

Hi all,

 

where can I get the Oracle wire driver for sql Anywhere 10, 12 or 16?

 

Please send me the URL and info. Thanks.

 

André Rust

OrcaScript question

$
0
0

I am wondering what the difference is between 'refresh target' and 'get latest version'.

release date of powerbuilder 15

Viewing all 2935 articles
Browse latest View live


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