Results 1 to 3 of 3

Thread: also about jpegs

  1. #1

    Thread Starter
    Frenzied Member wengang's Avatar
    Join Date
    Mar 2000
    Location
    Beijing, China
    Posts
    1,604
    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
    Wen Gang, Programmer
    VB6, QB, HTML, ASP, VBScript, Visual C++, Java

  2. #2
    Lively Member
    Join Date
    Aug 2000
    Posts
    125
    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

  3. #3

    Thread Starter
    Frenzied Member wengang's Avatar
    Join Date
    Mar 2000
    Location
    Beijing, China
    Posts
    1,604
    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?
    Wen Gang, Programmer
    VB6, QB, HTML, ASP, VBScript, Visual C++, Java

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width