Solved

What is JPEG error #52

Posted on 2000-04-06
6
1,398 Views
Last Modified: 2010-04-04

Does anyone have a list of these jpeg error numbers?  What is this? (Attempting to read and save jpegs).
0
Comment
Question by:jexd99
  • 3
  • 2
6 Comments
 

Author Comment

by:jexd99
ID: 2691896
D3 / Win98
0
 
LVL 27

Accepted Solution

by:
kretzschmar earned 50 total points
ID: 2692308
hi jexd99,

from borland

--- paste begin
Interpreting Cryptic Jpeg Error Number's
By Corbin Dunn

If you have used the TJpegImage class you may be familiar with the "JPEG error #xx" error that comes up on occasion. You may want to know exactly what went wrong, and how to get more information based on that number.

Luckily, the TJpegImage pascal source is included on the Delphi CD. Looking at the source, you will notice that it is a wrapper around some C code. There is one particular file called "jerror.h" which contains an enumeration of error strings. Based on the offset in this enum, you can find out what a given error number means.

For ease of use, I converted the "jerror.h" file to pascal in the unit JpegErrors.pas. To use this unit, simply reference the string array cJpegErrors, passing a given error number to find the error string, such as:

      Label1.Caption := cJpegErrors[StrToInt(Edit1.Text)]
Note that the JpegErrors.pas unit was based on the Jpeg source that comes with Delphi 5. If the order of the error messages in "jerror.h" ever changes, the JpegErrors.pas will not by in sync with it and has to be updated.
--- paste end

get the jpeg_error.pas file and sample:

http://community.borland.com/article/images/20433/jpeg_errors.zip

hope this helps

meikl
0
 
LVL 27

Expert Comment

by:kretzschmar
ID: 2692318
specially #52

cstrJERR_NO_SOI = 'Not a JPEG file: starts with 0x%02x 0x%02x';
0
Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

 
LVL 3

Expert Comment

by:bryan7
ID: 2694290
listenning
0
 

Author Comment

by:jexd99
ID: 2706475
Go ahead and answer this and I'll grade you.

   
0
 

Author Comment

by:jexd99
ID: 2706476
Ignore that last message I left :)
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Delphi 2010 Export to pdf 2 285
how do i create updater to My Activex application? 3 79
LAN or WAN ? 11 81
control image tags in a string ? 12 110
Creating an auto free TStringList The TStringList is a basic and frequently used object in Delphi. On many occasions, you may want to create a temporary list, process some items in the list and be done with the list. In such cases, you have to…
Hello everybody This Article will show you how to validate number with TEdit control, What's the TEdit control? TEdit is a standard Windows edit control on a form, it allows to user to write, read and copy/paste single line of text. Usua…
Internet Business Fax to Email Made Easy - With  eFax Corporate (http://www.enterprise.efax.com), you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, f…
Video by: Mark
This lesson goes over how to construct ordered and unordered lists and how to create hyperlinks.

911 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

22 Experts available now in Live!

Get 1:1 Help Now