Hi all,
i'm somewhat in a pinch at the moment with one of my recent creations...
The general idea was to create a small, simple tool to convert files from one format to another. More specifically, large image files such as BMP to JPG.
After writing this, I took it for a test run with 30 files. Everything worked OK it seems. I decided to test it with 300 files. At first, it was working ( sure it took some time, but it worked ) but after a while i got an exception from VS2005.
I did some research and this seemed to be an option which could be disabled in VS which I did. On next run, I didn't get the exception but the application crashed around 80% images processed.
How am i handling this : ( I will refrain from posting entire code )
Recursive scan of folder ( user input ), store paths of files into ArrayList, use these paths as input for the converter function.
Is there a better/more performant/safer/... to handle this, because this way obviously is not working for large amounts of files.
Many thanks in advance.
i'm somewhat in a pinch at the moment with one of my recent creations...
The general idea was to create a small, simple tool to convert files from one format to another. More specifically, large image files such as BMP to JPG.
After writing this, I took it for a test run with 30 files. Everything worked OK it seems. I decided to test it with 300 files. At first, it was working ( sure it took some time, but it worked ) but after a while i got an exception from VS2005.
VB.NET:
ContextSwitchDeadLock
The CLR was unable to switch COM...
I did some research and this seemed to be an option which could be disabled in VS which I did. On next run, I didn't get the exception but the application crashed around 80% images processed.
How am i handling this : ( I will refrain from posting entire code )
Recursive scan of folder ( user input ), store paths of files into ArrayList, use these paths as input for the converter function.
Is there a better/more performant/safer/... to handle this, because this way obviously is not working for large amounts of files.
Many thanks in advance.