السلام عليكم اساتذتي الاجلاء
صممت برنامج للارشفة وعند تنفيذ البرنامج لارفاق المرفقات التي هي صور تضر لي الرسالة ماذا تعني
Attempted to read or write protected memory. This is often an indication that other memory is corrupt.
وهذا الكود الذي تضهر رسالة الخطا
Dim OFile As New OpenFileDialog
OFile.Dispose()
OFile.Title = "حدد مسار الصورة"
OFile.Multiselect = True
OFile.Filter = " All Image Format And pdf (*.jpg,*.bmp,*.pdf)|*.jpg;*.bmp;*.jpeg;*.pdf|JPG Compressed Image(*.jpg)|*.jpg;*.jpeg|All bmp Format (*.bmp)|*.bmp|All pdf Format (*.pdf)|*.pdf"
OFile.FilterIndex = 1
OFile.FileName = ""
If (OFile.ShowDialog = DialogResult.OK) Then
Dim str As String
For Each str In OFile.FileNames
Dim info As New FileInfo(str)
Me.TxtTxtFilePath.Text = str
Dim values As String() = New String() {"0", str, info.Name, "حذف", "0"}
Me.DgFilePath.Rows.Add(values)
Next
End If
MdlDataGrid.SetSerailNumber(Me.DgFilePath, 0)
TxtTxtFilePath.Text = ""