I am creating one game in Windows phone using c# and silver light platform. I am new in this technology and currently facing memory leak issue.

As per research and study I have done, I have tried to do all the things including events, string and usage of garbage collector.

Can any one please give common tips to best utilize garbage collector and memory management since it seems issue right now. When my garbage collector reaches 5 lac size, it stop collecting new things and application is getting crash.

I also tried empty the garbage collectore passing parameter 0 in gc collect but it is crashing the app.

Can you please guide and help for basic things to take care, process to follow to avoid such issues and best use of GC collect?

Thanks in advance,
Jacob