Results 1 to 10 of 22

Hybrid View

  1. #1
    Senior Member
    Join Date
    Sep 2007
    Location
    des plaines
    Posts
    41
    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

  2. #2
    Administrator
    Join Date
    Jul 2006
    Location
    Milan
    Posts
    1,091
    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?

  3. #3
    Senior Member
    Join Date
    Sep 2007
    Location
    des plaines
    Posts
    41
    <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.

  4. #4
    Administrator
    Join Date
    Jul 2006
    Location
    Milan
    Posts
    1,091
    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.

  5. #5
    Senior Member
    Join Date
    Sep 2007
    Location
    des plaines
    Posts
    41
    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

  1. Database Feed
    By mode_vigilante in forum Adapter SDKs
    Replies: 16
    Last Post: January 27th, 2012, 03:58 PM
  2. .NET web service as Data Feed
    By icaiozzi in forum Adapter SDKs
    Replies: 1
    Last Post: November 19th, 2010, 11:52 AM
  3. How to deploy on an external Web Server?
    By AndyKelly in forum Client SDKs
    Replies: 1
    Last Post: July 7th, 2010, 10:50 AM
  4. How And Where To Specify Database As Data Feed?
    By devidasan in forum Adapter SDKs
    Replies: 1
    Last Post: March 17th, 2009, 11:00 AM
  5. External deployment
    By markgoldin in forum General
    Replies: 6
    Last Post: September 28th, 2007, 01:15 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
All times are GMT +1. The time now is 04:37 PM.