I note you are breaking out of the while statement when lastError <> 0.
Should an error occur and the process loose control of the serial port, why
not try and connect and configure the port again? Also, what is the error
that you are getting when it stops to collect data?

On Wed, May 20, 2009 at 1:34 PM, lloyd thomas <[email protected]>wrote:

> I have written a console app witch uses synaser to collect data which
> is then converted and placed into a database.
> The problem I am having is that the app will run for a couple of days
> and then the serial port part of it will stop collecting data. If I
> restart the app it happens all over again.
> Rather than bore you here I have placed an abridged version of the code
> here
>
> http://pastebin.com/m5e3de129
>
> I am using:
> Windows Vista Business
> Lazarus 0.9.26 Beta
> FPC 2.2.2
>
> Thanks for you help in advance
>
> Lloydie T
>
>
> ------------------------------------------------------------------------------
> Crystal Reports - New Free Runtime and 30 Day Trial
> Check out the new simplified licensing option that enables
> unlimited royalty-free distribution of the report engine
> for externally facing server and web deployment.
> http://p.sf.net/sfu/businessobjects
> _______________________________________________
> synalist-public mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/synalist-public
>
------------------------------------------------------------------------------
Register Now for Creativity and Technology (CaT), June 3rd, NYC. CaT
is a gathering of tech-side developers & brand creativity professionals. Meet
the minds behind Google Creative Lab, Visual Complexity, Processing, & 
iPhoneDevCamp asthey present alongside digital heavyweights like Barbarian
Group, R/GA, & Big Spaceship. http://www.creativitycat.com 
_______________________________________________
synalist-public mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/synalist-public

Reply via email to