Recording length limit?

Hi all…
I’m currently making a kinda video archive using webcam and communication server.
Then I have a problem. I have no idea what the problem is, but the length of recording is somewhat limited, like under fifteen seconds.
Is there any way that I can record it unlimitedly?
Or what possibliy did I make wrong?