Commit fe939c7e authored by Maxime Perrotin's avatar Maxime Perrotin
Browse files

Fix Scenario for MSC handling

Create a buffer for each received message.
There are unclear issues with the use of .raw with ctypes String
parent 2d014f91
......@@ -185,11 +185,10 @@ class PollerThread(QThread):
print 'Failed to open message queue ' + self.q_name
return -1
buffer_size = GetMsgQueueBufferSize(msg_q)
#p_data_from_mq = DV.new_byte_SWIG_PTR(buffer_size)
p_data_from_mq = ctypes.create_string_buffer(buffer_size).raw
while True:
if self.stop_requested:
return 0
p_data_from_mq = ctypes.create_string_buffer(buffer_size).raw
msg_received_type = RetrieveMessageFromQueue(msg_q,
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment