Hi.
I was wondering if you used any leak finding tools in your code? There
seems to be a few mallocs that don't get freed, and a few internal buffer
overruns.
I don't know if it will work for you, but I'd suggest trying out a proggie
called memcheck. I use it for wireless terminals (DOS based) and it works
great. When the proggie shuts down, it tells me the location and size of
every structure that wasn't freed. Also it will tell me during runtime
when I overwrite something that I shouldn't have. Just a suggestion.
If I had more time I would dig in and see if I couldn't do some work on
some code here.
-Mike