Chuck Conway

In The craft

Gallery Error

November 4, 2003 · 1 minute read

In an earlier post I wrote about the gallery I created for the Nvidia interview, since then I’ve had problems.

It seems when I view a thumbnail in the gallery the picture is locked even after the web browser has been closed. I quickly realized this as a serious issue, if the image is locked after the web browser is closed it means the image is in memory. One image may not be a problem but a 100 hundred of them are. After some research I stumbled onto “dispose()” this calls the garbage collector to immediately destroy the information contained within the memory address in question. Problem solved.

For the VB.NET programmer who searches the net looking for examples of code and can only find the solution in C#, your savior has arrived! Convert C#  VB tool add on for VS.NET is a lifesaver. I’ve had it installed for a couple of days and it’s been invaluable. It can be found at http://www.kamalpatel.net/