Hi Pravin,
I don't know if any of you are aware of the PBDebug facility within PB.. It
was recommended to me on a Sybase newsgroup to use the PBDebug tracing
feature within PB on the compiled application on the deployment workstation
(works as well on the development workstation)... I was having a problem
with a OCX and it worked well..
Basically this feature will echo every command or instruction performed by a
compiled Powerbuilder Application to a text file
(c:\pathname\myapp.dbg).. It helps you isolated the exact command that was
executing when the application crashes (GPF, Dr. Watson) or begins to loop
etc... This is not recommended for the production environment since there
is an impact on performance... It is recommended that once you are sure of
where the problem is happening that you place statements around that
particular script that will turn the Trace feature "ON" when executing that
particular portion of code (i.e. this may be while a particular window is
open and for every action on that window everything will be recorded)...
To activate it you simply append /PBDebug execution parm to your run command
like so:
-> c:\pathname\myapp.exe /PBDebug
>From the reference manual:
"If you are building a P-code executable (PDBs), these functions are already
built into your executable. If you are building a machine code executable
(DLLs), then you must select the Trace Information check box in the Project
Painter" when you do a build.
Hope this helps you..
Iain Mills
CCPS Project Coordinator \ Application Developer
CANPASS Project
Revenue Canada
Information Technology Branch
> Integrated Customs Systems Division
> Compliance and Information Systems Directorate
8th Floor Billings Bridge Tower
2323 Riverside Drive
Ottawa, Ontario
K1A 0L8
Voice: (613) 952-9570
Public Fax: (613) 952-6488
Mailto:[EMAIL PROTECTED]
> -----Original Message-----
> From: [EMAIL PROTECTED] [SMTP:[EMAIL PROTECTED]]
> Sent: Monday, August 02, 1999 6:59 AM
> To: [EMAIL PROTECTED]
> Subject: PFCSIG GPF for MSVCRT.DLL
>
> Hi All,
>
> I am facing a problem in SOME machines having Win '95 ( not all Win '95
> M/c's ).
>
> A Window containg a RTE Control is openend from a tab page containg a
> Tabular DW Control.
> On opening this window the MSVCRT.DLL is loaded into memory (i think).
> On closing this window when the Tabular DW is refreshed it goes into the
> PFC_Retrieve
> RetrieveStart
> RetrieveRow ( once, even though there are multiple records in the
> database )
> And then gives a GPF with the following details.
>
> =================================================================
> EMS caused an exception 10H in module MSVCRT.DLL at 0137:78001ec5.
> Registers:
> EAX=0000001a CS=0137 EIP=78001ec5 EFLGS=00010217
> EBX=00000001 SS=013f ESP=0062e330 EBP=0062e33c
> ECX=013d0cc0 DS=013f ESI=043c01a6 FS=2a9f
> EDX=00000003 ES=013f EDI=00000000 GS=0000
> Bytes at CS:EIP:
> 9b d9 7d fe 9b 66 8b 45 fe 80 cc 0c 66 89 45 fc
> Stack dump:
> 0062e340 0062e354 00000000 0062e444
> 112c8e67 013d0cc0 1125e2e3 013d0cc0
> 055c04b4 013d0cc0 0062e36c 00000000
> 00000001 013d0cc0 055c0f56 0062e374
> =================================================================
>
> Could somebody tell me what way do thesesDetails help me in any way ( I
> know
> that the GPF doesn't hep me in any way ).
>
> NB.
>
> The version of the MSVCRT.DLL is the same in all the machimes ( the GPF &
> the other working machines ).
>
> It doesn't GPF if the window containg the RTE control is not opened and
> the
> Tabular DW is refreshed as many times required.
>
> TIA,
>
> Cheers,
>
> Pravin.
> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>
> Pravin Ningoo CAPITA Education Services
> Ltd.
>
> Stannard Way
> Tel : Off +44 (0)1234 832233 Priory Business Park
> Res +44 (0)1234 358114 Cardington
> Fax: Off +44 (0)1234 838961 Bedford. MK44 3SG
> eMail: <mailto:[EMAIL PROTECTED]> England
> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>
> > [EMAIL PROTECTED] HOSTED BY IIGG, INC. FOR HELP WITH LIST SERVE COMMANDS,
> ADDRESS
> > A MESSAGE TO [EMAIL PROTECTED] WITH THE FOLLOWING MESSAGE: help
> pfcsig
> > SEND ALL OTHER INQUIRES TO [EMAIL PROTECTED]
> [EMAIL PROTECTED] HOSTED BY IIGG, INC. FOR HELP WITH LIST SERVE COMMANDS, ADDRESS
> A MESSAGE TO [EMAIL PROTECTED] WITH THE FOLLOWING MESSAGE: help pfcsig
> SEND ALL OTHER INQUIRES TO [EMAIL PROTECTED]