Navigation:  Programming Cookbook > Database Connectivity > Cleaning up >

Bypassing finalization

Previous pageReturn to chapter overviewNext page

Sometimes, you might find that relying on the automatic finalization mechanism is not sufficient for your application. If you need to be sure exactly when the external resources are released then you can explicitly ask for this to happen by sending the appropriate object a #close message. Try the previous test again to see what happens when you explicitly close the results set.

rs := c query: 'select * from Orders'. "Evaluate it"

rs close.


The following #close methods are available: