Página 1 de 1

Windows Event Log

Publicado: Mar Mar 27, 2007 2:14 pm
por Capsol Coder
Howdy Gents
Has anyone written an object to write to the windows event log? I have
little console app that runs on a Denso hand held terminal. It does things
likes stocktakes, electronic picking, asset tracking, stock queries etc. We
have 5 units running at one site. We wrote it using Xailer (thank god) . It
has been very stable but today it crashed with a bound error. The customer
sent me a screen shot of the error window. It popped up on the server . I
didn't even expect it would do that.
I'm wondering is there a way I can stop this popping up? I'd prefer to just
have the app crash and the error log be written. It would be great to be
able to write the error details to the event log. It would also be nice for
other things.
Also, while I'm on it, Xailer rocks. (I don't understand why more users
aren't in thie NG) Possibly because a lot of XH uses don't like paying for
software maybe?
I started using xh back when Andy ,August and Ron where all working on the
open source IDE. I then purchased WOW from August (no docs) and used it for
a bit, but it became un-supported. I then purchased Visual XH from XH.com,
never got to even create a windows app, it was never stable enough, after 2
years i let the subscription run out as I got sick of waiting. I kept my eye
on Xailer for quite a while (we had been using DBU for years) The fact that
you have actually finshed the IDE, the base GUI libs and documented the
whole thing is a credit to you. We have now written several small apps
succesfully.
Thanks for the great contribution, as far as I can see, Xailer is the only
commercially viable option for someone who hasn't been using Clipper/Xh for
the last 10-15 years.
Cheers
Nick

Windows Event Log

Publicado: Mié Mar 28, 2007 8:18 pm
por jfgimenez
Nick,
sorry for the delay.
> Has anyone written an object to write to the windows event log? I have
> little console app that runs on a Denso hand held terminal. It does things
> likes stocktakes, electronic picking, asset tracking, stock queries etc.
> We
> have 5 units running at one site. We wrote it using Xailer (thank god) .
> It
> has been very stable but today it crashed with a bound error. The customer
> sent me a screen shot of the error window. It popped up on the server . I
> didn't even expect it would do that.
>
> I'm wondering is there a way I can stop this popping up? I'd prefer to
> just
> have the app crash and the error log be written. It would be great to be
> able to write the error details to the event log. It would also be nice
> for
> other things.
attached is the form that Xailer shows when an error arise. You may modify
it as you need. Also, you could replace it entirely by a class (not a form)
that saves the error message without showing any window. It's called from
errorsys so:
WITH OBJECT TErrorForm()
:cMessage := cMessage
:aOptions := aOptions
:New( Application:oMainForm )
nRet := :ShowModal( , .T. )
END
> Also, while I'm on it, Xailer rocks. (I don't understand why more users
> aren't in thie NG) Possibly because a lot of XH uses don't like paying
> for
> software maybe?
>
> I started using xh back when Andy ,August and Ron where all working on the
> open source IDE. I then purchased WOW from August (no docs) and used it
> for
> a bit, but it became un-supported. I then purchased Visual XH from XH.com,
> never got to even create a windows app, it was never stable enough, after
> 2
> years i let the subscription run out as I got sick of waiting. I kept my
> eye
> on Xailer for quite a while (we had been using DBU for years) The fact
> that
> you have actually finshed the IDE, the base GUI libs and documented the
> whole thing is a credit to you. We have now written several small apps
> succesfully.
>
> Thanks for the great contribution, as far as I can see, Xailer is the only
> commercially viable option for someone who hasn't been using Clipper/Xh
> for
> the last 10-15 years.
Thanks for your kind words and support.
--
Regards,
Jose F. Gimenez
http://www.xailer.com
http://www.xailer.info


Attached files errorform.zip (1.3 KB)Â