Board index » delphi » When to free an object ???
Del Murray
![]() Delphi Developer |
When to free an object ???2003-08-19 09:07:57 PM delphi118 Using D5 Ent. ... I have seen many messages here that indicate that if an object is instantiated in a action in an ISAPI that I should not free the object because the webbroker will do it for me when I exit the action and the webbroker (send the html to the client). How do it know ??? I think I should do it myself before I exit the procedure. If I do , will that mess up anything .. Does it even matter ??? If I am going to use an object over and over, doesn't it make sense to create in in the webmodule "oncreate" event and then free it in the "destroy" event. Then just use it when required in various actions ? |