Send comments on this topic. | Back to Introduction - All Topics | Help Version 16.5.9.25
Loading File Codecs

Some operating systems (like Windows 95) have a limit for the number of DLLs that can be loaded at a time and that limit can be quickly reached, especially if there are several other third party libraries loading DLLs, or if the programming environments themselves load many DLLs.  By default, LEADTOOLS loads several fixed codecs and several cached codecs.  The fixed codecs are FAX, CMP, TIF, JBG, LMB, BMP and PCX.

Use the following method to specify the file format codecs you want LEADTOOLS to load:

PreloadCodecs

The FastFileInfo allows you to determine if a file will be rejected if the signature does not match one of the known file format signatures. As a result the file format dlls will not be loaded or called unnecessarily.

Use the following method to specify the file format codecs LEADTOOLS should never load:

IgnoreCodecs

It is important to note that PreloadCodecs must be called prior to loading, saving or getting information on a file.  In addition, PreloadCodecs must be called before calling IgnoreCodecs for IgnoreCodecs to work properly.