Suppress runtime errors

forum.advanced.programming (1998-2005)
Ralf Köser

Suppress runtime errors

Post by Ralf Köser » 09 Feb 2005, 12:22

 Posted by:  Ralf Köser 

Hi,

I want to run a GTD-Exe as a nt service. In some cases the programm will
throw out runtime-errors like

Invalid cursor
Symbol is undefined or unable to be referenced from current location
Array reference out of bounds
etc......

Now the program waits for the user to press ok. How can I suppress these
messages.
Its not important for me if the program will continue or stop but it must
not wait for userimput.

Thanks

Ralf

Tony

Re: Suppress runtime errors

Post by Tony » 09 Feb 2005, 12:33

 Posted by:  Tony 

You better control the program so you do not have these error messages.
For example, for errors you have mentioned:
1. Try to connect the cursor before using it.
2. Define correctly the VARs
3. Check where the problem is.
You can do it using debugging
Tony

Martin Knopp

Re: Suppress runtime errors

Post by Martin Knopp » 09 Feb 2005, 12:55

 Posted by:  Martin Knopp 

Which TD version are you using?

Since TD3.1 (or 3.0 - I am not sure) there is a SalUseEventLog function
which can avoid this messageboxes and redirect the errors to the event log.

For lower TD version look at www.iceteagroup.com there is a TeaTalk article
with a workaround.

--
Martin Knopp, Dipl. Ing.

fecher GmbH
good people - good software

D'Orsay-Gasse 4/1
A-1090 Wien

Phone +43-1-3199124-0
Fax: +43-1-3199124-80
mailto:Martin.Knopp@fecher.at
http://www.fecher.at
------------------------------------------

We would be happy to inform you regarding the following topics

-- Cross platform development with SQLBase and Team Developer for Windows
and Linux

-- buildingBLOCKS XP: Web User Interfaces with ASP.NET and Team Developer

-- classCOMPILER.NET: Compiling non-visual SAL code to MSIL (.NET) more at
http://www.fecher.at/classcompiler

-- buildingBLOCKS JAVA: Rapid Development of open browserbased
Business Applications

RainerE
Germany
Posts: 2283
Joined: 27 Apr 2021, 12:40
Location: Germany

Re: Suppress runtime errors

Post by RainerE » 09 Feb 2005, 14:09

 Posted by:  Rainer Ebert 

Ralf,

we run a TD2.1exe as service using ntsvc.ocx.

We block messages with Box Eater of Christian Schubert. See his article at
Ice Tea Group for details.

Regards,
Rainer

P.S.: Here the messages I eat with boxeater:
'Unrecoverable Error'
'Division by zero'
'Window handle in hWnd.Template.Var'
'No cursors remaining'
'Array reference out of bounds'

Ralf Köser

Re: Suppress runtime errors

Post by Ralf Köser » 09 Feb 2005, 14:11

 Posted by:  Ralf Köser 

Wow Martin , thats it.
We were upgrading from TD1.5.1 to TD3.1 few weeks ago, so this function was
new for me.

Many thanks

Ralf

Ralf Köser

Re: Suppress runtime errors

Post by Ralf Köser » 09 Feb 2005, 14:23

 Posted by:  Ralf Köser 

Hey Rainer,

this will be useful for our older version of TD.
In the moment we use a program called FireDaemon-Pro to run an Exe-File as
service.
But now I will also try it with ntsvc.ocx.

Thanks for this hint

Ralf

Return to “advanced.programming”

Who is online

Users browsing this forum: [Ccbot] and 0 guests