LINQPad not releasing memory
I get frequent out of memory exceptions. Those are my fault as to big queries are run and I can fix them. However I realized that if the script exits with an out of memory exception, LINQPad does not free up this memory. Only if I close the tab the memory gets released. I think this is a bug, once a script was executed it should be removed from memory and all ressources released.
Comments
In the next build, I'll make LINQPad do this automatically when it encounters an OutOfMemoryException.
Is it possible to recycle the app domain (Shift+Control+F5) from code?
I've written a loop whose contents attempt to construct a query using start / end date parameters. Since I want format the results twice, I used Util.Cache to preserve them. However, despite setting Util.NewProcess to true, each iteration of the loop, despite attempting build a new query with the loop with new date values, the query continues to return the cached results.
Is this a misunderstanding on my part (quite possible)? A bug with Util.NewProcess?