Stack Overflow when program is openned on the client side computer

I have a program that is perfectly run on my server computer.
But when it is openned from another computer, there's an error of
stack overflow with the following message:
"This program has performed an illegal operation and will be shut down."
and when i click on close, it came up a message of:

"Exception EStackOverflow in module ... at 000A95AD. Stack overflow."

how can i fixed this?   thanks in advance.