[prev in list] [next in list] [prev in thread] [next in thread]
List: commoncpp-bug
Subject: Serial patch for commoncpp-1.7.3 framework
From: Andrey Mandychev <andreymandychev () gmail ! com>
Date: 2010-02-01 15:59:20
Message-ID: 4B66FA58.5040205 () gmail ! com
[Download RAW message or body]
Dear,
Two months ago I faced with commoncpp framework and decided to include
it in my project. I was really enjoy working with commoncpp. Threads,
unix sockets and serial port were used. It works fine. But I have one
issue connecting with ost::SerialService class. Below there is a
description of it.
I created AppSerialPort class derived from ost::SerialPort. The new
class is self-deleting class like ChatterSession from tcpservice demo.
It deletes itself when serial port has disconnected. But such
implementation leads to segmentation fault. Because ost::SerialService
attempts to get access to deleted object. To solve the issue I've made a
few changes in the ost::SerialService class which are similar to
ost::SocketService class.
I'm sending you the patch. Please try it and see the difference. For
more information I have attached short demo. You can launch it before
and after patch. Hope it helps to improve the code.
--
Best Regards,
Andrey Mandychev.
["serialpatch.tgz" (application/x-compressed-tar)]
_______________________________________________
Bug-commoncpp mailing list
Bug-commoncpp@gnu.org
http://lists.gnu.org/mailman/listinfo/bug-commoncpp
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic