Error log design...

Discussion in 'C Programming' started by Anthony J Bybell, Jan 4, 2005.

  1. (Hopefully this posted will be under the main
    thread...groups.google.co.uk can't retrieve the parent posting...most
    likely it won't be. Oh well.)

    A ring buffer (i.e., something with scrolling head/tail pointers)
    would eliminate the overhead of your linked list. When it wraps, it's
    up to you to either overwrite it or only keep the first data you
    collected. Note also that if you're desperate you could employ some
    sort of simple compression scheme (e.g., using packed 7 bit or smaller
    characters) if your buffer space is tight.

    HTH,
    -t
    Anthony J Bybell, Jan 4, 2005
    #1
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Henrik_the_boss
    Replies:
    0
    Views:
    2,647
    Henrik_the_boss
    Nov 5, 2003
  2. Amratash
    Replies:
    0
    Views:
    519
    Amratash
    Apr 13, 2004
  3. =?Utf-8?B?VG9tIFdpbmdlcnQ=?=

    My.Log.Writeexception not writing to Application Event Log.

    =?Utf-8?B?VG9tIFdpbmdlcnQ=?=, Jan 20, 2006, in forum: ASP .Net
    Replies:
    0
    Views:
    2,371
    =?Utf-8?B?VG9tIFdpbmdlcnQ=?=
    Jan 20, 2006
  4. unomystEz
    Replies:
    0
    Views:
    549
    unomystEz
    Nov 19, 2006
  5. vj
    Replies:
    0
    Views:
    678
Loading...

Share This Page