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.

Uncatchable errors?

7 posts in DataWindow Last posting was on 2008-06-04 17:01:25.0Z
scionyx Posted on 2008-05-29 21:28:00.0Z
From: scionyx <sfield@scionyx.com>
Newsgroups: sybase.public.powerbuilder.datawindow
Subject: Uncatchable errors?
Date: Thu, 29 May 2008 14:28:00 -0700 (PDT)
Organization: http://groups.google.com
Lines: 21
Message-ID: <0cd799b0-cc5b-4319-86b6-327d97263e9b@i18g2000prn.googlegroups.com>
NNTP-Posting-Host: 158.228.211.10
Mime-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
X-Trace: posting.google.com 1212096483 9088 127.0.0.1 (29 May 2008 21:28:03 GMT)
X-Complaints-To: groups-abuse@google.com
NNTP-Posting-Date: Thu, 29 May 2008 21:28:03 +0000 (UTC)
Complaints-To: groups-abuse@google.com
Injection-Info: i18g2000prn.googlegroups.com; posting-host=158.228.211.10; posting-account=-kzySgkAAAAqb7jiNSJ1XKXlAz27meBa
User-Agent: G2/1.0
X-HTTP-UserAgent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; InfoPath.1; .NET CLR 2.0.50727),gzip(gfe),gzip(gfe)
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!nlpi057.nbdc.sbc.com!prodigy.net!border1.nntp.dca.giganews.com!nntp.giganews.com!postnews.google.com!i18g2000prn.googlegroups.com!not-for-mail
Xref: forums-1-dub sybase.public.powerbuilder.datawindow:87004
Article PK: 416261

In another thread, I asked if there was a way to catch a certain
error... Are there just some errors that are not catchable? e.g.
"Load of nested report ... failed", "database not connected"

I've coded the DBError and ERROR events and wrapped the the call in a
Try/catch block, and I still get some system-message pop-ups such as
the above examples.

try
dw_1.Retrieve(arg1, arg2);

catch (DWRuntimeError e)
// Handle the error myself

end try

--

Thanks!

Steve


Jeremy Lakeman Posted on 2008-05-30 00:51:06.0Z
From: Jeremy Lakeman <jeremy.lakeman@gmail.com>
User-Agent: Thunderbird 2.0.0.14 (Windows/20080421)
MIME-Version: 1.0
Newsgroups: sybase.public.powerbuilder.datawindow
Subject: Re: Uncatchable errors?
References: <0cd799b0-cc5b-4319-86b6-327d97263e9b@i18g2000prn.googlegroups.com>
In-Reply-To: <0cd799b0-cc5b-4319-86b6-327d97263e9b@i18g2000prn.googlegroups.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: <483f4f7a$1@forums-1-dub>
Date: 29 May 2008 17:51:06 -0700
X-Trace: forums-1-dub 1212108666 10.22.241.152 (29 May 2008 17:51:06 -0700)
X-Original-Trace: 29 May 2008 17:51:06 -0700, vip152.sybase.com
Lines: 25
Path: forums-1-dub!not-for-mail
Xref: forums-1-dub sybase.public.powerbuilder.datawindow:87005
Article PK: 416262


scionyx wrote:
> In another thread, I asked if there was a way to catch a certain
> error... Are there just some errors that are not catchable? e.g.
> "Load of nested report ... failed", "database not connected"
>
> I've coded the DBError and ERROR events and wrapped the the call in a
> Try/catch block, and I still get some system-message pop-ups such as
> the above examples.
>
> try
> dw_1.Retrieve(arg1, arg2);
>
> catch (DWRuntimeError e)
> // Handle the error myself
>
> end try
>
> --
>
> Thanks!
>
> Steve

no, but you can ignore them.
dw_1.object.datawindow.nouserprompt='yes'


scionyx Posted on 2008-05-30 14:35:49.0Z
From: scionyx <sfield@scionyx.com>
Newsgroups: sybase.public.powerbuilder.datawindow
Subject: Re: Uncatchable errors?
Date: Fri, 30 May 2008 07:35:49 -0700 (PDT)
Organization: http://groups.google.com
Lines: 31
Message-ID: <9e9f893b-4514-4120-9f30-1d85b1a0b584@g16g2000pri.googlegroups.com>
References: <0cd799b0-cc5b-4319-86b6-327d97263e9b@i18g2000prn.googlegroups.com> <483f4f7a$1@forums-1-dub>
NNTP-Posting-Host: 158.228.211.10
Mime-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable
X-Trace: posting.google.com 1212158149 24478 127.0.0.1 (30 May 2008 14:35:49 GMT)
X-Complaints-To: groups-abuse@google.com
NNTP-Posting-Date: Fri, 30 May 2008 14:35:49 +0000 (UTC)
Complaints-To: groups-abuse@google.com
Injection-Info: g16g2000pri.googlegroups.com; posting-host=158.228.211.10; posting-account=-kzySgkAAAAqb7jiNSJ1XKXlAz27meBa
User-Agent: G2/1.0
X-HTTP-UserAgent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; InfoPath.1; .NET CLR 2.0.50727),gzip(gfe),gzip(gfe)
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!newsfeed.news2me.com!news.glorb.com!postnews.google.com!g16g2000pri.googlegroups.com!not-for-mail
Xref: forums-1-dub sybase.public.powerbuilder.datawindow:87012
Article PK: 416269


On May 29, 5:51 pm, Jeremy Lakeman <jeremy.lake...@gmail.com> wrote:
> scionyx wrote:
> > In another thread, I asked if there was a way to catch a certain
> > error...  Are there just some errors that are not catchable?  e.g.
> > "Load of nested report ... failed", "database not connected"
>
> > I've coded the DBError and ERROR events and wrapped the the call in a
> > Try/catch block, and I still get some system-message pop-ups such as
> > the above examples.
>
> > try
> >   dw_1.Retrieve(arg1, arg2);
>
> > catch (DWRuntimeError e)
> >   // Handle the error myself
>
> > end try
>
> > --
>
> > Thanks!
>
> > Steve
>
> no, but you can ignore them.
> dw_1.object.datawindow.nouserprompt='yes'- Hide quoted text -
>
> - Show quoted text -

That's great! :-) It would be nice to catch something though, so the
error could be logged... I'll look into it.


scionyx Posted on 2008-05-30 15:40:09.0Z
From: scionyx <sfield@scionyx.com>
Newsgroups: sybase.public.powerbuilder.datawindow
Subject: Re: Uncatchable errors?
Date: Fri, 30 May 2008 08:40:09 -0700 (PDT)
Organization: http://groups.google.com
Lines: 38
Message-ID: <e85faabc-2e1b-4866-b7b2-b06028166893@w34g2000prm.googlegroups.com>
References: <0cd799b0-cc5b-4319-86b6-327d97263e9b@i18g2000prn.googlegroups.com> <483f4f7a$1@forums-1-dub>
NNTP-Posting-Host: 158.228.211.10
Mime-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable
X-Trace: posting.google.com 1212162009 3232 127.0.0.1 (30 May 2008 15:40:09 GMT)
X-Complaints-To: groups-abuse@google.com
NNTP-Posting-Date: Fri, 30 May 2008 15:40:09 +0000 (UTC)
Complaints-To: groups-abuse@google.com
Injection-Info: w34g2000prm.googlegroups.com; posting-host=158.228.211.10; posting-account=-kzySgkAAAAqb7jiNSJ1XKXlAz27meBa
User-Agent: G2/1.0
X-HTTP-UserAgent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; InfoPath.1; .NET CLR 2.0.50727),gzip(gfe),gzip(gfe)
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!newsfeed.news2me.com!news.glorb.com!postnews.google.com!w34g2000prm.googlegroups.com!not-for-mail
Xref: forums-1-dub sybase.public.powerbuilder.datawindow:87013
Article PK: 416270


On May 29, 5:51 pm, Jeremy Lakeman <jeremy.lake...@gmail.com> wrote:
> scionyx wrote:
> > In another thread, I asked if there was a way to catch a certain
> > error...  Are there just some errors that are not catchable?  e.g.
> > "Load of nested report ... failed", "database not connected"
>
> > I've coded the DBError and ERROR events and wrapped the the call in a
> > Try/catch block, and I still get some system-message pop-ups such as
> > the above examples.
>
> > try
> >   dw_1.Retrieve(arg1, arg2);
>
> > catch (DWRuntimeError e)
> >   // Handle the error myself
>
> > end try
>
> > --
>
> > Thanks!
>
> > Steve
>
> no, but you can ignore them.
> dw_1.object.datawindow.nouserprompt='yes'- Hide quoted text -
>
> - Show quoted text -

This does not supress the "Load of nested report..." pop-up.

The underlying object is a DataStore, created at runtime. I set
NoUserPrompt just before the retrieve, and again before print. (the
latter just in case).

Thanks!

Steve


scionyx Posted on 2008-06-03 15:19:58.0Z
From: scionyx <sfield@scionyx.com>
Newsgroups: sybase.public.powerbuilder.datawindow
Subject: Re: Uncatchable errors?
Date: Tue, 3 Jun 2008 08:19:58 -0700 (PDT)
Organization: http://groups.google.com
Lines: 11
Message-ID: <6fcfe9c9-5516-428b-8d23-c1d2b47b16ad@b5g2000pri.googlegroups.com>
References: <0cd799b0-cc5b-4319-86b6-327d97263e9b@i18g2000prn.googlegroups.com> <483f4f7a$1@forums-1-dub> <e85faabc-2e1b-4866-b7b2-b06028166893@w34g2000prm.googlegroups.com>
NNTP-Posting-Host: 158.228.211.10
Mime-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
X-Trace: posting.google.com 1212506398 15754 127.0.0.1 (3 Jun 2008 15:19:58 GMT)
X-Complaints-To: groups-abuse@google.com
NNTP-Posting-Date: Tue, 3 Jun 2008 15:19:58 +0000 (UTC)
Complaints-To: groups-abuse@google.com
Injection-Info: b5g2000pri.googlegroups.com; posting-host=158.228.211.10; posting-account=-kzySgkAAAAqb7jiNSJ1XKXlAz27meBa
User-Agent: G2/1.0
X-HTTP-UserAgent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; InfoPath.1; .NET CLR 2.0.50727),gzip(gfe),gzip(gfe)
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!nlpi057.nbdc.sbc.com!prodigy.net!border1.nntp.dca.giganews.com!nntp.giganews.com!postnews.google.com!b5g2000pri.googlegroups.com!not-for-mail
Xref: forums-1-dub sybase.public.powerbuilder.datawindow:87044
Article PK: 416297

Just checking back to see if anyone has ANY idea how to supress this
or ALL messages.

I must conced in general that it's working, but how would I know
unless I turn the setting OFF? :-) And maybe this particular error is
above all that, but could indeed kill an unattended application.

Thanks!

Steve


Jeremy Lakeman Posted on 2008-06-04 13:22:44.0Z
From: Jeremy Lakeman <jeremy.lakeman@gmail.com>
User-Agent: Thunderbird 2.0.0.14 (Windows/20080421)
MIME-Version: 1.0
Newsgroups: sybase.public.powerbuilder.datawindow
Subject: Re: Uncatchable errors?
References: <0cd799b0-cc5b-4319-86b6-327d97263e9b@i18g2000prn.googlegroups.com> <483f4f7a$1@forums-1-dub> <e85faabc-2e1b-4866-b7b2-b06028166893@w34g2000prm.googlegroups.com> <6fcfe9c9-5516-428b-8d23-c1d2b47b16ad@b5g2000pri.googlegroups.com>
In-Reply-To: <6fcfe9c9-5516-428b-8d23-c1d2b47b16ad@b5g2000pri.googlegroups.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: <48469724@forums-1-dub>
Date: 4 Jun 2008 06:22:44 -0700
X-Trace: forums-1-dub 1212585764 10.22.241.152 (4 Jun 2008 06:22:44 -0700)
X-Original-Trace: 4 Jun 2008 06:22:44 -0700, vip152.sybase.com
Lines: 16
Path: forums-1-dub!not-for-mail
Xref: forums-1-dub sybase.public.powerbuilder.datawindow:87062
Article PK: 416320


scionyx wrote:
> Just checking back to see if anyone has ANY idea how to supress this
> or ALL messages.
>
> I must conced in general that it's working, but how would I know
> unless I turn the setting OFF? :-) And maybe this particular error is
> above all that, but could indeed kill an unattended application.
>
> Thanks!
>
> Steve
>

You could use a timer to detect the existence of the window. Use a win32
api to enumerate all window handles looking for something created by
your process but not a window you care about.


scionyx Posted on 2008-06-04 17:01:25.0Z
From: scionyx <sfield@scionyx.com>
Newsgroups: sybase.public.powerbuilder.datawindow
Subject: Re: Uncatchable errors?
Date: Wed, 4 Jun 2008 10:01:25 -0700 (PDT)
Organization: http://groups.google.com
Lines: 16
Message-ID: <19524584-2710-4231-8040-cc37e412c85b@x1g2000prh.googlegroups.com>
References: <0cd799b0-cc5b-4319-86b6-327d97263e9b@i18g2000prn.googlegroups.com> <483f4f7a$1@forums-1-dub> <e85faabc-2e1b-4866-b7b2-b06028166893@w34g2000prm.googlegroups.com> <6fcfe9c9-5516-428b-8d23-c1d2b47b16ad@b5g2000pri.googlegroups.com> <48469724@forums-1-dub>
NNTP-Posting-Host: 158.228.211.10
Mime-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable
X-Trace: posting.google.com 1212598885 7038 127.0.0.1 (4 Jun 2008 17:01:25 GMT)
X-Complaints-To: groups-abuse@google.com
NNTP-Posting-Date: Wed, 4 Jun 2008 17:01:25 +0000 (UTC)
Complaints-To: groups-abuse@google.com
Injection-Info: x1g2000prh.googlegroups.com; posting-host=158.228.211.10; posting-account=-kzySgkAAAAqb7jiNSJ1XKXlAz27meBa
User-Agent: G2/1.0
X-HTTP-UserAgent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; InfoPath.1; .NET CLR 2.0.50727),gzip(gfe),gzip(gfe)
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!newsfeeds.sol.net!10.218.45.202.MISMATCH!newspump.sol.net!news.glorb.com!postnews.google.com!x1g2000prh.googlegroups.com!not-for-mail
Xref: forums-1-dub sybase.public.powerbuilder.datawindow:87069
Article PK: 416326

That's an interesting approach. I think it would have to be a
separate window because the popup is modal. I do have the primary
timer turned off when it happens... I could leave it on and rely on
the AlreadyHere flag check. (if ib_AlreadyHere then //scan window
list...)

I took a quick look at the IDLE() event timer, but isn't an unattended
application idle by default?

Thanks!

On Jun 4, 6:22 am, Jeremy Lakeman <jeremy.lake...@gmail.com> wrote:
> You could use a timer to detect the existence of the window. Use a win32
> api to enumerate all window handles looking for something created by
> your process but not a window you care about.