I wrote an apllication that check sql table and if it has proper record then selected command is writen to the serial port.

It's working almost fine, but sometimes application crash.
It seams to...