Op 2010-07-07 03:32, Martin het geskryf:
> 
> And in the 2nd case, mem leaks are no worry => the app is going to be 
> closed, mem will be freed by the OS.  
>[...snip...]
>
> The whole memory management could be corrupted. Trying to free 
> memory could just cause more and more exceptions.


That is exactly what I was trying to explain to Andrew. If freeing an
instance is what caused the exception, no amount of try..except or
try..finally blocks will help you - you still can't free the instance, so
better notify the user to try and save, then quit the app and start again.


Regards,
  - Graeme -

-- 
fpGUI Toolkit - a cross-platform GUI toolkit using Free Pascal
http://opensoft.homeip.net/fpgui/

_______________________________________________
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Reply via email to