Jump to content
nemifoy5261

Issue in TIcsFtpMulti component

Recommended Posts

Recently, while viewing the code of the TIcsFtpMulti component (ICS V9.0), I discovered that the IntUpOne function of this component could potentially throw an "Invalid pointer operation" error.

When the "Zipping" Conditional is defined and the component's "Zipped" property is set to True, the component will compress files before uploading.

If, under certain circumstances, the relevant code within the IntUpOne function, specifically the FtpCheckFile call, does not execute or executes incorrectly, leading to the failure to set LocalStream to nil, then the code within the outermost finally block of the IntUpOne function that releases LocalStream and MyArchiveStream will throw an "Invalid pointer operation" error.

Share this post


Link to post

Thanks, I'll attempt to reproduce those conditions to see if I can reproduce the error, then fix it, for the next release.

 

Zipping did get changed recently to support the native component, and I don't use zipping myself much nowadays.

 

Angus

 

Edited by Angus Robertson

Share this post


Link to post

First of all, thanks for your reply.

 

In fact, this exception is catched and won't cause other problems.

I just feel that the code implementation here isn't quite "graceful" and this issue might become a "bomb" buried in the code in the future.

Share this post


Link to post

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×