I'm using the sample code supplied with ImageMan.Net and am getting intermittent troubles when loading certain kinds of garbage images.
In the LoadPagesWithAttributes, the line in question is this one:
imImg = imDecoder.Load(progress)
Sometimes this will hang indefinitely, while others it will only pause for ten seconds to a couple minutes. For normal pictures, it takes a fraction of a second.
Is there anyway to impose some sort of time limit on this method, so I can kill it if takes longer than x seconds?