Last post Nov 23, 2006 05:16 AM by RemarkLima
Nov 08, 2006 12:50 PM|RemarkLima|LINK
I've been writing a small web gallery application, basically for some of gf's pictures to show ot her friends and family... Anyway, I thought I'd be nice for them to get the pictures full quality.
Anyway, the application resizes the full size images into thumbnails and then into larger preview pictures with an option to open them full size. All the images have caching set so only need to load up once per browser so the server isn't getting hit too
badly. Now when I run it locally it can be a bit heavy resizing all the images but never falls over. But now it's on some shared hosting I keep getting "System.OutOfMemoryException: Out of memory". This is on the aspx page, not even on the image.aspx (which
output's the resized image).
Is there anyway I can check for memory leaks or something like that? I've been a tight as I know, calling everything to dispose when finished... Anything else I can try???
As always, much appreciated!
Nov 08, 2006 04:02 PM|gsuttie2002|LINK
Check out the memory profiling from Ants profiler -
http://www.red-gate.com -the 14 day trial should show you where the problem lies.
Nov 13, 2006 09:39 AM|Jigar|LINK
You might find this helpful
Creating ASP.NET Photo Album using FileSystem as Data
Nov 23, 2006 05:16 AM|RemarkLima|LINK
Gregor, many thanks for that! Really works well, I think I've found it. It seems it was a string that was growing madly! It's bizzare tho', can't see why a string object is that much of a problem!
And thanks for the link, my app pretty much does that, uses the TreeView control to make the directory structure visible, then generates the thumbnails and bigger images on the fly (then cached in the browser), with an option for seeing them full size.
It's mostly for my gf's pictures, and so her family can see them and get them hi-res to print out IYSWIM...
Thanks again for the help!