views:

117

answers:

1

I have got one weird issue. I am working on an asp .net mvc application. I have a refresh button that build some data and view models in the controller code, and returns the partial view back. Well this refresh does work good the very first time. But when i try to click my refresh button again, a javascript alert comes saying

"out of memory at line 56"

I checked my task manager to see on whats happening. I have a 3GB memory and when this error alert shows up the used memory is 1.41 GB. Its normal usage as it looks like. But I don't know why it shows the javascript error alert.

This problem happens in my local workstation where I am doing development of this application.

Any thoughts or comments to trouble shoot or solve this issue is appreciated. I ma using IE7.

+1  A: 

Any infinite loops in there? Javascript doesn't like those.

Another possibility - is there any Flash on the page? Apparently there have been issues related to that in the past where updating your version of Flash fixes the problem.

Jaxidian
Well. There are no flash contents. However there are loops but I dont get any issues in running them. But I have two JQGrids in my view that runs and dispalys the results.
SARAVAN
I have my fiddler tool turned on. When I hit the refresh button the second time it doesnot even hit the server(controller) code,it just pops up the javascript out of memory error alert error alert
SARAVAN
Hi,You said about infinite loops. That's correct. But I was trying to render a view in a DIV which is in the same view causing a recursive loop. I realised it only when you said infite loops and the Jquery to loop through html elements entered in to an infinite loop which caused the issue. Thanks for your comments.
SARAVAN
Glad you were able to find the problem. :-)
Jaxidian