-
Hi.
I can't figure out what makes this app stop responding.
Simply scrolls thru a list of jpegs in a string array and loads them into an image control.
It always stops in the same place and does not give an error of any kind. The app merely stops responding.
I would think a bad or incomplete jpeg, but that usually gives error number 481.
Any ideas? (code below)
For x = 0 To intCount
frmBannerFinder.Refresh
Text2.Text = x
Image1.Picture = LoadPicture(strFile(x))
Text3.Text = strFile(x)
Next x
Thanks
Wengang
-
the error is "Invalid picture"
so the file you are loading is somehow not in an acceptable picture format - I get a few like those - it could be an old type of jpg compression that VB doesn't decode
-
well, the problem is i dont get any error message, just the application stops responding
also, i cant find the bad jpg in a folder of 4000 jpgs because (I assume) it is when this file is "next up" that the error occurs so there is no way to print the name in a msgbox or textbox.
ANy thoughts?