If the constructor fails to validate the runtime license,
subsequent methods in this class will fail. If the product is
installed with an evaluation license, then the application will only
function on the development system and cannot be redistributed.
If the nMaxFiles parameter is INFINITE, memory will be
dynamically allocated on the process heap with no limit to the number
of files which can be queued. If there is a logic error which causes
the application to recursively add files to the queue, or repeatedly
queue the same file, this can result in virtual memory being exhausted
for the process. You can avoid this by specifying a reasonable
maximum queue size, which will cause the AddFile method to
fail if that limit is exceeded.
When called without any parameters, the constructor will create a
queue with no file limit, default options and a default timeout
period. The memory allocated for the queue will be released when the
class destructor is invoked.
The constructor calls the FtpInitialize function
to initialize the library, which dynamically loads other system libraries and
allocates thread local storage. If you are using this class within another
DLL, it is important that you do not create or destroy an instance of
the class from within the DllMain function
because it can result in deadlocks or access violation errors. You
should not declare static or global instances of this class within
another DLL if it is linked with the C runtime library (CRT) because
it will automatically call the constructors and destructors for static
and global C++ objects and has the same restrictions.