Community
Showing results for 
Search instead for 
Do you mean 
Reply

AccessViolationException was unhandled - Attempted to read or write protected memory.

New Member
Posts: 4
Country: United States

AccessViolationException was unhandled - Attempted to read or write protected memory.

Hi..

I'm trying to run the following query  - Get the following error  from my .net code... I can login and open the connection but can't run the query.

Any ideas?  Help.........  PLEASE,.... THANKS 

SELECT * FROM vrp_contact -

 

 

Here's my code.....

 

 if (ActFwk.IsLoggedOn)

{

System.Data.OleDb.OleDbConnection cnn = new System.Data.OleDb.OleDbConnection(ActFwk.CurrentACTOLEDB.ToString());

 

 

System.Data.OleDb.OleDbDataAdapter DA = new System.Data.OleDb.OleDbDataAdapter("SELECT * FROM vrp_contact", cnn);

DataSet ds = new DataSet();DA.FillSchema(ds, SchemaType.Source);       // ERROR HERE !!!!!!!!!!!!!!!!

DA.Fill(ds);

ds.WriteXml("c:\\ACTDb\\CONTACTS.XML");ds.WriteXmlSchema(

"c:\\ACTDb\\CONTACTS.xsd");

}