out of memmory problem

My program shows out of memory error all the time.

I am using a gforce 8x series.

And yeah the program uses constantly memory but it also frees it using free cuda.

what could be the problem??

im a noob any advise is good

my advise is to post your code to make it possible to help you.

Did you already took a loot at how many memory you are using?

for example the 16k shared mem limit or the i think 64k constant memory limit.

And of course the total amount of memory of you Graphics card.

But code would be helpful