Forum Discussion

chikki's avatar
chikki
Contributor
15 years ago

How to destroy an object after use.

Hi,

I have defined an object and used it, now i want to destroy my object/memory.

how to do it in groovy.

in vbscripts we use

dim obj1 //declaration
set obj1= nothing will destroy the object.

I am a new bie and using Soap UI from past 3 months.



 

1 Reply

  • SmartBear_Suppo's avatar
    SmartBear_Suppo
    SmartBear Alumni (Retired)
    Hi,

    groovy uses garbage collecting, so you just need to set your object to null and it will be garbage collected.


    obj1= null

    regards
    Nebojsa
    eviware.com