Hi,
: I have developed a program which listens to the user's and responds with some answer from the database. when I use this software for some time like 1.5 to 2 hrs, at some abrupt time the application suddenly stops recording and there ends the process.
: Iam coding in VC++ 6.0, WinAPI.
: OS - XP
: RAM - 128MB
: please help
:
I'm guessing this is the exact same "abrupt time" everytime you do this, right?

I've read the threads on memory leaks etc and very much doubt it's to do with that. It's much more likely to do with you reaching the maximum range of a given datatype.
Take your signed int, for example. It has a maximum value of 2^31 - 1. That may seem a big value, until you think like this:-
44100 sampling rate * 2 channels * 2 bytes per sample = 176400 bytes of data per second
2^31 / 176400 = 12173 seconds = 202 minutes ~= 3 and a bit hours
You may be using these values in a different way, and encounter this issue before my suggested limit of 3 hours like you mention - in terms of orders of magnitude we're pretty close. I very much suspect that this issue may be at the heart of your problems.
If you look on my list of stuff to do with AMaMP I've already flagged this up as "Something ugly that will have to be dealt with some day". Using 64 bit integers is a possible solution, depending upon their availability. Of course, once you've dealt with stuff inside your app you still have to look at things at an OS level, which is probably going to be even more nasty.
I guess a little extension is possible by using an unsigned int...
Jonathan
###
for(74,117,115,116){$::a.=chr};(($_.='qwertyui')&&
(tr/yuiqwert/her anot/))for($::b);for($::c){$_.=$^X;
/(p.{2}l)/;$_=$1}$::b=~/(..)$/;print("$::a$::b $::c hack$1.");