Prima di imgFotoAquisto.Image=Nothing aggiungi la riga imgFotoAquisto.Dispose().
Amaro C++, il gusto pieno dell'undefined behavior.
Regole del Forum