-
August 26th, 2008, 01:06 PM
#1
Yes, I did comment out the update call. I still had lost data, I would say less then with updates but still there was lost data. Knowing my code would you recommend anything to preotect from losing data?
Thanks
-
August 27th, 2008, 08:32 AM
#2
I can't say I know your code, as the relevant part of the code (that is, where the WndProc is called) is not reported
and I guess it is GUI related code, which I'm not an expert of.
From Lightstreamer point of view, I think that there is no issue
and that, perhaps, the expectation that your feed should produce exactly one event for each second is wrong.
By looking at your log of the feed events, which time sequence can you find?
Are the events equally spaced at 1 second, with holes of 2 seconds when events are lost?
Or are the events equally spaced at slightly more than 1 second, so that sometimes the rounded event time increases by 2 seconds?
-
August 27th, 2008, 12:42 PM
#3
<Are the events equally spaced at 1 second, with holes of 2 seconds when events are lost?
Yes, that what's happening. It goes for 20-30 events fine, then I see one event was lost, then again no lost events for maybe a half a minute then a lost one.
-
August 28th, 2008, 08:36 AM
#4
Sorry to insist on this point, but I'm still not sure that there is no misunderstanding (maybe because of my foreign english).
If you log your events at the entrance of your "PushData" function
and provide each log line with a timestamp with a precision up to the milliseconds,
can you see a pattern like this
08:19:42,500 <event for 8:19:42>
08:19:43,500 <event for 8:19:43>
08:19:45,500 <event for 8:19:45>
or like this
08:19:42,850 <event for 8:19:42>
08:19:43,950 <event for 8:19:43>
08:19:45,050 <event for 8:19:45>
? Note that in both cases, the event for 8:19:44 is missing, but in the latter case it is just because of an event generation rate which is slightly less than one event per second.
-
August 28th, 2008, 07:39 PM
#5
Just wanna tell you that you were right, it was my mistake: My testing data generator is not in fact sending data every second. Unless something else, my solution is ready to go. Thank you so much for all the help and support all of you have been providing.
Similar Threads
-
By mode_vigilante in forum Adapter SDKs
Replies: 16
Last Post: January 27th, 2012, 03:58 PM
-
By icaiozzi in forum Adapter SDKs
Replies: 1
Last Post: November 19th, 2010, 11:52 AM
-
By AndyKelly in forum Client SDKs
Replies: 1
Last Post: July 7th, 2010, 10:50 AM
-
By devidasan in forum Adapter SDKs
Replies: 1
Last Post: March 17th, 2009, 11:00 AM
-
By markgoldin in forum General
Replies: 6
Last Post: September 28th, 2007, 01:15 PM
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
All times are GMT +1. The time now is 04:37 PM.
Bookmarks