Error: attempt to read protected memory

  • Thread starter Thread starter Osvaldo Luis Aveni
  • Start date Start date
O

Osvaldo Luis Aveni

Guest
Hi, I'm using SaveFileDialog and it works fine when I call it for first time. But when I invoke the next time I always have an error message.

This is in spanish:

System.AccessViolationException: 'Intento de leer o escribir en la memoria protegida. A menudo, esto indica que hay otra memoria dañada.'

The translation would be:

Attempt to read or write the protected memory. This could indicate, there is a damage memory.

I'm not so experienced programmer. Can you help me urgently???

Thanks a lot

SaveFileDialog1.Filter = "Archivos de Excel (*.xlsx)|*.xlsx"
SaveFileDialog1.FileName = "Hola"
Dim GrabarAchivo As New Boolean


GrabarAchivo = (SaveFileDialog1.ShowDialog() = DialogResult.OK)



If GrabarAchivo Then

Continue reading...
 
Back
Top