>> You do not need to "redeclare" the properties; all
>> you need to do is override the AssignDefaultValue()
>> method, like Francois said.
> In FTP client, there are two fields of type TWSocket. Whose 
> AssignDefaultValue
> should I override to stop them from clearing properties?

Defenitely not !


>> This method is virtual for precisely this reason.
> Actually I still can't understand for which reason this method was made
>
>> But, in general: yes, that's exactly what you should do.
> Sorry, but i dont' wish to do all that things just for disabling a single 
> strange method.

You should not disable a "strange method" unless you fully understand what 
it does and if it is not used elsewhere. You can of course disable it for 
your own applications or components but surely not for existing applications 
or components. If you do, you'llk probably break something because the 
applications or components are developped assuming the behaviour you 
consider "strange".

The only way to do that disabling for your applications only is to derive a 
new component form TWSocket and use that new component in your applications. 
Everything else will still use the original component and work as expected.


Clearly here, the "strange method" is not a bug. It is a feature. By design 
TWSocket reset some properties to default values. There is a good reason 
behind that design, even if that reason is no more really applicable today, 
that behaviour must be preserved because existing code may rely on it.

As a side note: When you think something must be changed in ICS components, 
then sublit your proposal here, explain why your change is needed, either 
adding a new feature or fixing an issue, and let's discuss it. If it is 
approved, then your change will be done in the component for everyone. One 
gold rule with ICS is "do not break existing code unless really really 
really needed".


--
[EMAIL PROTECTED]
The author of the freeware multi-tier middleware MidWare
The author of the freeware Internet Component Suite (ICS)
http://www.overbyte.be



-- 
To unsubscribe or change your settings for TWSocket mailing list
please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket
Visit our website at http://www.overbyte.be

Reply via email to