It's not nice of your to ask such questions without showing any code (Griff's right about telepathic abilities; I don't have them, but Griff does; he is just kidding :-)).
Almost 100% of such cases is when you use recursion or mutual recursion (of more than one methods calling each other in cycle). In such cases, your bug is not providing a condition when this recursion ever finishes.
- Read about the subj.: http://en.wikipedia.org/wiki/Recursion[^], http://en.wikipedia.org/wiki/Mutual_recursion[^].
- Analyze your code.
- Use debugger and detect situation when you get to the same point of code again and again. Usually it's quite easy to find.
- Fix the bug.
- PROFIT!
—SA