>>Better to use 'Using ..... End Using' - that way Dispose() will be called even if an exception is thrown inside the block :
>>
https://msdn.microsoft.com/en-us/library/htd05whh(v=vs.120).aspx>
>That applies in certain situations. In this case, oImage has a reference from another method. So, I cannot broadcast a Using syntax across methods.
Can''t see what you mean. In the code listed both disposables are instantiated in the method:
Dim loGraphics As System.Drawing.Graphics = Nothing
Dim loImage As System.Drawing.Bitmap = Nothing
>But, inside a method, yes, I have it at several locations and it works great.
>
>Thanks