Hallo there,
Ich habe eine alte Applikation (Visual Studio 6, VB), die DDBACDT2.dll (v. 3.0.0.1) benutzt um eine AZVFile zu erstellen, und es funktioniert perfekt.
Meine Aufgabe ist diese Applikation unter .Net 3.5 zu entwickeln. Alles In Ordnung, ich habe die letzte Version von DataDesign DDBAC Komponenten (v. 4.3.66) auf meinem Rechner installiert, und mein Class entwickelt.
DataDesign DDBAC DTAUS Komponent (DDBACDT2.dll) version 4.3.66
Entwicklungs Umgebung: Microsoft Visual Studio 2008, C#, Asp.Net
Betrieb System: Windows 7 oder Windows Server 2003
using System;
using System.IO;
using System.Collections;
using System.Collections.Generic;
using System.Data;
using System.Data.OracleClient;
using System.Diagnostics;
namespace Test.Banking
{
public class MyBankingBL
{
public BMyBankingBL ()
{
}
public void Transfer_foreign_payments()
{
try
{
DDBACDT2.BACDTAZVFile bacdtAZVFile = new DDBACDT2.BACDTAZVFileClass();
bacdtAZVFile.FirstBankCode = “”;
bacdtAZVFile.MyNumber = “”;
bacdtAZVFile.MyAddress = “”;
bacdtAZVFile.CreationDate = DateTime.Now;
bacdtAZVFile.ExecutionDate = DateTime.Now;
bacdtAZVFile.DailySerialNumber = 1;
bacdtAZVFile.ForwardingToAuthority = false;
DDBACDT2.BACDTAZVRecord bacdtAZVRecord = bacdtAZVFile.RecordAdd(-1);
//u.s.w.
}
catch (Exception ex)
{
throw new Exception(ex.Message);
}
}
}
}
Jedes Mal, dass ich die Methode „DDBACDT2.BACDTAZVRecord bacdtAZVRecord = bacdtAZVFile.RecordAdd(-1);” benutze, bekomme ich System Exception. „Attempted to read or write protected memory. This is often an indication that other memory is corrupt“;
Hat jemand eine Idee?
Dankeschön im Voraus
athinaev
Ich habe eine alte Applikation (Visual Studio 6, VB), die DDBACDT2.dll (v. 3.0.0.1) benutzt um eine AZVFile zu erstellen, und es funktioniert perfekt.
Meine Aufgabe ist diese Applikation unter .Net 3.5 zu entwickeln. Alles In Ordnung, ich habe die letzte Version von DataDesign DDBAC Komponenten (v. 4.3.66) auf meinem Rechner installiert, und mein Class entwickelt.
DataDesign DDBAC DTAUS Komponent (DDBACDT2.dll) version 4.3.66
Entwicklungs Umgebung: Microsoft Visual Studio 2008, C#, Asp.Net
Betrieb System: Windows 7 oder Windows Server 2003
using System;
using System.IO;
using System.Collections;
using System.Collections.Generic;
using System.Data;
using System.Data.OracleClient;
using System.Diagnostics;
namespace Test.Banking
{
public class MyBankingBL
{
public BMyBankingBL ()
{
}
public void Transfer_foreign_payments()
{
try
{
DDBACDT2.BACDTAZVFile bacdtAZVFile = new DDBACDT2.BACDTAZVFileClass();
bacdtAZVFile.FirstBankCode = “”;
bacdtAZVFile.MyNumber = “”;
bacdtAZVFile.MyAddress = “”;
bacdtAZVFile.CreationDate = DateTime.Now;
bacdtAZVFile.ExecutionDate = DateTime.Now;
bacdtAZVFile.DailySerialNumber = 1;
bacdtAZVFile.ForwardingToAuthority = false;
DDBACDT2.BACDTAZVRecord bacdtAZVRecord = bacdtAZVFile.RecordAdd(-1);
//u.s.w.
}
catch (Exception ex)
{
throw new Exception(ex.Message);
}
}
}
}
Jedes Mal, dass ich die Methode „DDBACDT2.BACDTAZVRecord bacdtAZVRecord = bacdtAZVFile.RecordAdd(-1);” benutze, bekomme ich System Exception. „Attempted to read or write protected memory. This is often an indication that other memory is corrupt“;
Hat jemand eine Idee?
Dankeschön im Voraus
athinaev