Exception Safe Programming
Saaa
empty at needmail.com
Sun Feb 25 13:07:19 PST 2007
> Saaa wrote:
>> Yes the dir is 'pictures', but the program runs perfectly with that last
>> line commented out. ?
>> I'd expect it to say:
>> Error: Not enough images found(<12)
>>
>
> Without seeing more of your program I can't tell what's going on. You're
> right that it should be throwing the "not enough images found" exception,
> at least based on the snippet you posted. Are you catching the "not
> enough images found" exception anywhere?
That is the whole code.. I've stripped it bare. Only a main calling that
function:
void main()
{
char[][] files;
getPictureList("pictures",files);
}
More information about the Digitalmars-d-learn
mailing list