Sybase NNTP forums - End Of Life (EOL)

The NNTP forums from Sybase - forums.sybase.com - are now closed.

All new questions should be directed to the appropriate forum at the SAP Community Network (SCN).

Individual products have links to the respective forums on SCN, or you can go to SCN and search for your product in the search box (upper right corner) to find your specific developer center.

PB 11 and systemerror event

9 posts in Objects Last posting was on 2008-05-01 08:29:02.0Z
Gerry Regehr Posted on 2008-04-29 21:36:29.0Z
Sender: 7102.48179270.1804289383@sybase.com
From: Gerry Regehr
Newsgroups: sybase.public.powerbuilder.objects
Subject: PB 11 and systemerror event
X-Mailer: WebNews to Mail Gateway v1.1t
Message-ID: <481794dd.712e.1681692777@sybase.com>
NNTP-Posting-Host: 10.22.241.41
X-Original-NNTP-Posting-Host: 10.22.241.41
Date: 29 Apr 2008 14:36:29 -0700
X-Trace: forums-1-dub 1209504989 10.22.241.41 (29 Apr 2008 14:36:29 -0700)
X-Original-Trace: 29 Apr 2008 14:36:29 -0700, 10.22.241.41
Lines: 19
Path: forums-1-dub!not-for-mail
Xref: forums-1-dub sybase.public.powerbuilder.objects:9661
Article PK: 736800

Using PB 11.1 build 8204

I'm becoming frustrated at the fact that PowerBuilder no
longer seems to fire the systemerror event for me. Even
when debugging, if I step to a line in a function that has
an error (almost any kind of error, e.g. invalid
row/column), execution simply jumps out of the function with
no message at all that anything was amiss.

I don't have any try/catch blocks anywhere. I do have code
in the systemerror event that used to (in PB 9) catch all of
these errors and display a friendly message helping me
figure out what to look for.

Is there some system option or setting that I have to change
in PB 11 to get this functionality back?

Thanks for any help,
Gerry


"Jason 'Bug' Fenter [TeamSybase]" <NO_SPAMMING_jason.fenter_ Posted on 2008-04-29 22:20:15.0Z
From: "Jason 'Bug' Fenter [TeamSybase]" <NO_SPAMMING_jason.fenter_@_teamsybase.com>
User-Agent: Thunderbird 2.0.0.12 (Windows/20080213)
MIME-Version: 1.0
Newsgroups: sybase.public.powerbuilder.objects
Subject: Re: PB 11 and systemerror event
References: <481794dd.712e.1681692777@sybase.com>
In-Reply-To: <481794dd.712e.1681692777@sybase.com>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
NNTP-Posting-Host: vip152.sybase.com
X-Original-NNTP-Posting-Host: vip152.sybase.com
Message-ID: <48179f1f$1@forums-1-dub>
Date: 29 Apr 2008 15:20:15 -0700
X-Trace: forums-1-dub 1209507615 10.22.241.152 (29 Apr 2008 15:20:15 -0700)
X-Original-Trace: 29 Apr 2008 15:20:15 -0700, vip152.sybase.com
Lines: 27
X-Authenticated-User: teamsybase
Path: forums-1-dub!not-for-mail
Xref: forums-1-dub sybase.public.powerbuilder.objects:9662
Article PK: 736803

I wouldn't expect you to see the SystemError event when debugging; the
debugger traps the error in place of the SystemError event. Definitely
make sure you have disabled "Just In Time Debugging".

I'd start from the beginning. Create a new application with two lines of
code.
Int i
i = 1 / 0

Well, I guess you'd need code in the SystemError event to see that it
was being fired, but you get my idea. Start simple and make sure that
even those rudimentary cases (like above) behave as expected.



Off topic:
Sybase has been reviewing NNTP availability and is looking at
alternative ways to build a user community. As a test-bed /
proof-of-concept, I have personally created a community on Ning
(http://powerbuilder.ning.com). While Ning certainly doesn't offer all
of the features that I'd like to see Sybase eventually implement, I am
trying to foster some community involvement on that site. Several of the
TeamSybase members have joined already and are available to answer
questions there.

Please sign up; give it a try. My hope is that it evolves into more than
just a Q&A database, but it won't get there without your participation.


Lawrence Sim Posted on 2008-05-01 08:29:02.0Z
From: Lawrence Sim <lawrence.sim.au@gmail.com>
Newsgroups: sybase.public.powerbuilder.objects
Subject: Re: PB 11 and systemerror event
Date: Thu, 1 May 2008 01:29:02 -0700 (PDT)
Organization: http://groups.google.com
Lines: 36
Message-ID: <19b0f362-e08a-4443-bfe8-658149967fac@w1g2000prd.googlegroups.com>
References: <48179f1f$1@forums-1-dub> <48189489.9a0.1681692777@sybase.com>
NNTP-Posting-Host: 203.122.242.105
Mime-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
X-Trace: posting.google.com 1209630543 25668 127.0.0.1 (1 May 2008 08:29:03 GMT)
X-Complaints-To: groups-abuse@google.com
NNTP-Posting-Date: Thu, 1 May 2008 08:29:03 +0000 (UTC)
Complaints-To: groups-abuse@google.com
Injection-Info: w1g2000prd.googlegroups.com; posting-host=203.122.242.105; posting-account=ATedhAoAAAChiOzk0hK6UTay1uvDlQDi
User-Agent: G2/1.0
X-HTTP-UserAgent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.14) Gecko/20080404 Firefox/2.0.0.14,gzip(gfe),gzip(gfe)
X-HTTP-Via: 1.1 asp.essential.intranet:3128 (squid/2.5.STABLE8)
Path: forums-1-dub!forums-master!newssvr.sybase.com!news-sj-1.sprintlink.net!news-peer1.sprintlink.net!newsfeed.yul.equant.net!nntp1.roc.gblx.net!nntp.gblx.net!nntp.gblx.net!newscon02.news.prodigy.net!prodigy.net!news.glorb.com!postnews.google.com!w1g2000prd.googlegroups.com!not-for-mail
Xref: forums-1-dub sybase.public.powerbuilder.objects:9670
Article PK: 736810

catch(exception...) will not catch a runtime error...

try using a throwable instead

On May 1, 12:47 am, Gerald Regehr wrote:
> My issue is that I always get a silent failure with no
> mention that anything is wrong. This happens whether
> debugging, running in the IDE or running the executable.
>
> Here's an example.
> I had coded
> "if dw_test_series_result.object.admin_region_id.TabSequence> 0 then"
>
> thinking that the tabsequence value would be a long.
>
> When I run the app, either debugging or not, that line fails
> with no message of any type and the rest of the code in the
> function is not run.
>
> I coded a try block around that section of code with catch
> (exception ex) and a finally block. The catch code did not
> fire, which implies that there was no exception thrown, and
> it seems that I am not able to catch a RuntimeError.
> When I put a breakpoint in the finally block, I was able to
> check the global error object and found the message that the
> datatypes were mismatched.
>
> I changed the code to
> "if
> long(dw_test_series_result.object.admin_region_id.TabSequence)> 0 then"
>
> That code runs without error.
>
> So my real problem is that the original code failed with no
> message anywhere.


Jeremy Lakeman Posted on 2008-04-29 23:53:14.0Z
From: Jeremy Lakeman <jeremy.lakeman@gmail.com>
Newsgroups: sybase.public.powerbuilder.objects
Subject: Re: PB 11 and systemerror event
Date: Tue, 29 Apr 2008 16:53:14 -0700 (PDT)
Organization: http://groups.google.com
Lines: 26
Message-ID: <36a94882-a959-4af7-96cb-d81084204d88@x41g2000hsb.googlegroups.com>
References: <481794dd.712e.1681692777@sybase.com>
NNTP-Posting-Host: 203.122.242.105
Mime-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
X-Trace: posting.google.com 1209513195 27537 127.0.0.1 (29 Apr 2008 23:53:15 GMT)
X-Complaints-To: groups-abuse@google.com
NNTP-Posting-Date: Tue, 29 Apr 2008 23:53:15 +0000 (UTC)
Complaints-To: groups-abuse@google.com
Injection-Info: x41g2000hsb.googlegroups.com; posting-host=203.122.242.105; posting-account=euaBtgoAAAC_vDxfsxmpMKlBxHaHpmRS
User-Agent: G2/1.0
X-HTTP-UserAgent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.14) Gecko/20080404 Firefox/2.0.0.14,gzip(gfe),gzip(gfe)
X-HTTP-Via: 1.1 asp.essential.intranet:3128 (squid/2.5.STABLE8)
Path: forums-1-dub!forums-master!newssvr.sybase.com!news-sj-1.sprintlink.net!news-peer1.sprintlink.net!nntp1.phx1.gblx.net!nntp.gblx.net!nntp.gblx.net!border2.nntp.dca.giganews.com!nntp.giganews.com!postnews.google.com!x41g2000hsb.googlegroups.com!not-for-mail
Xref: forums-1-dub sybase.public.powerbuilder.objects:9663
Article PK: 736807


On Apr 30, 6:36 am, Gerry Regehr wrote:
> Using PB 11.1 build 8204
>
> I'm becoming frustrated at the fact that PowerBuilder no
> longer seems to fire the systemerror event for me. Even
> when debugging, if I step to a line in a function that has
> an error (almost any kind of error, e.g. invalid
> row/column), execution simply jumps out of the function with
> no message at all that anything was amiss.
>
> I don't have any try/catch blocks anywhere. I do have code
> in the systemerror event that used to (in PB 9) catch all of
> these errors and display a friendly message helping me
> figure out what to look for.
>
> Is there some system option or setting that I have to change
> in PB 11 to get this functionality back?
>
> Thanks for any help,
> Gerry

The semantics of the system error event changed when exception
handling was added to powerbuilder version 8. Instead of being
triggered immediately, the system error event is now raised only after
the stack has been unwound and the runtime error has not yet been
caught.