zhaopuming / quickfast

Automatically exported from code.google.com/p/quickfast
Other
1 stars 0 forks source link

DotNet Queueing recived messages #76

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Hi,

I tried to store the received messages temporally in a ArrayList. They will be 
processed in another thread.
The problem is that the DNClasses are cleared after the msgRecived() callback 
returns.
My alternative solution is to parse it to a temporary structure, queueing and 
then processing.
It would be better to use it directly. 

Is there any way to keep DNClasses until my other thread process it?

Thanks in advance

Leonardo Santos

Original issue reported on code.google.com by leonardo...@gmail.com on 7 Feb 2011 at 6:49

GoogleCodeExporter commented 9 years ago
This was addressed in a discussion on the QuickFAST users group discussion list.

The quick answer is "No, the message object live only as long as the callback 
to deliver them to the application.  The application may copy the data, or 
delay returning from the callback until the data is used."

Original comment by dale.wil...@gmail.com on 14 Feb 2011 at 9:44