Click here to Skip to main content
15,886,788 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi,

I've written a web application that navigates through a list (via a series of web pages (ie the same web page is used to scroll to the next page) of document entries. During code execution, the first page is displayed correctly. However, through following the code on the second round of call, the debugging appears to jump to (almost) any part of the application, and returning back to where it should continue after one or two further instructions are completed. This repeats at any point in the code during execution.

During page refreshes, a session variable holds the contents of the list between calls, and reassigned to a local variable for further execution, nullified (to reclaim memory space), and recreated with the end results of the object for further processing (with the subsequent local variable being nullified as well). It's as though the object methods are reaching out beyond the allocated memory space.

The object is used to keep a counter on the list indexes and page counters of the list, ensuring for a given page counter, a set of list entries are returned.

Would this constitute a possible memory leak and what is the solution.

Is there more I can do to 'destroy' the object when no longer required.

Thanks in advance,

Cheers

Phil.



In Summary...

Step 1:

Page S calls Page R creates indexing object Obj I to display Page R (to list entries)
(Once completed Page R Creates session variable SessionI to retain Obj I and then destroy Obj I)

Step 2:
Page R calls next page Page R -> Obj I -> destroy SessionI -> Page R (to list entries)
(Once completed Page R Creates session variable SessionI to retain Obj I and then destroy Obj I)

Step 3...
Repeat step 2 incrementally through the list


Posted
Updated 10-Nov-10 17:04pm
v2

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900