私は基本的にオブジェクトを収集し、そのオブジェクトのプロパティを使用してテキストボックスに入力し、ラジオボタン、コンボボックスアイテム、および日付ピッカーの日付を選択するメソッドにそれを渡します...
3 回または 4 回ごとにこのエラーが発生し、すべての値を再入力します。
AccessViolationException : 保護されたメモリを読み書きしようとしました。これは多くの場合、他のメモリが破損していることを示しています。
何か案は?
Protected Sub PopulateForms(ByVal a As OMGService.OmgApp)
Me.txtAppTitle.Text = a.Title
Me.txtAppVersion.Text = a.Version
Me.txtLicenseCount.Text = a.LicenseCount.ToString()
Me.txtAppLocation.Text = a.AppLocation
Me.txtDocLocation.Text = a.DocLocation
Me.txtKey.Text = a.Key
Me.txtAppNotes.Text = a.AppNotes
Me.cBoxAppLicType.SelectedItem = Me.cBoxAppLicType.Items.Item(a.LicenseType)
Me.radio64.IsChecked = a.IsX64
Me.radio86.IsChecked = IIf(Me.radio64.IsChecked, False, True)
Me.appInfoCreatedMsg.Text = String.Format("App Info Created: {0}", a.RecordCreated.ToString())
Me.appInfoModifiedMsg.Text = String.Format("App Info Modified: {0}", a.LastModified.ToString())
Me.txtOldPo.Text = a.OldCastlePO
Me.txtAltTicket.Text = a.AltirisTicketNum
Me.txtVendorName.Text = a.VendorName
Me.txtRepName.Text = a.VendorRepName
Me.txtRepPhone.Text = a.VendorRepPhone
Me.txtVendorOrderNum.Text = a.VendorOrderNumber
Me.txtTermsCond.Text = a.TermsConditions
Me.DateOfPurchasePicker.SelectedDate = a.DateOfPurchase
Me.OrderInfoCreatedMsg.Text = String.Format("Order Info Created: {0}", a.OrderRecordCreated)
Me.OrderInfoModifiedMsg.Text = String.Format("Order Info Created: {0}", a.LastModified)
Me.txtHiddenAppID.Text = a.AppID.ToString()
Me.txtHiddenOrderId.Text = a.OrderID.ToString()
End Sub