'The elementary use of the Dispose() method.
Dim gdpictureOCR As New GdPictureOCR()
'You can do your stuff with gdpictureOCR here.
gdpictureOCR.Dispose()
'The very good practice is to use the keyword "using".
Using gdpictureOCR As New GdPictureOCR()
'You can do your stuff with gdpictureOCR here.
'You do not need to call the Dispose() method, it is called automatically inside the "using" statement.
End Using
//The elementary use of the Dispose() method.
GdPictureOCR gdpictureOCR = new GdPictureOCR();
//You can do your stuff with gdpictureOCR here.
gdpictureOCR.Dispose();
//The very good practice is to use the keyword "using".
using (GdPictureOCR gdpictureOCR = new GdPictureOCR())
{
//You can do your stuff with gdpictureOCR here.
//You do not need to call the Dispose() method, it is called automatically inside the "using" statement.
}