The memory could not be "read" [ Urgent!!! ]
-
Hi!,... I try to retrive data from Oracle and i got this massage
The instruction at "0x4a5d61f6" referenced memory at "0x00000002".The memory could not be "read".
this source code the provider is MSDAORAmDT=Me.RetriveData(strSql) 'myDs.Tables("Table1") DataGrid1.DataSource = mdt DataGrid1.DataBind() ----------------------------------------------------- Private Sub CreateDataCommand() Me.mConnection=nothing Me.mDataCommand=nothing Me.mDataAdapter=nothing Me.mConnection = New OleDbConnection(Me.GetConnectionString) Me.mDataCommand = New OleDbCommand Me.mDataCommand.Connection = Me.mConnection Me.mDataAdapter = New OleDbDataAdapter End Sub Public Function RetriveData(ByVal pStrSQL As String) As DataTable Dim mDataTable As DataTable mDataTable=nothing mDataTable=new DataTable CreateDataCommand() Me.mDataCommand.CommandText = pStrSQL Me.mDataAdapter.SelectCommand = Me.mDataCommand Me.mDataAdapter.Fill(mDataTable) Me.mDataAdapter.SelectCommand.Connection.Close() Return mDataTable End Function
-
Hi!,... I try to retrive data from Oracle and i got this massage
The instruction at "0x4a5d61f6" referenced memory at "0x00000002".The memory could not be "read".
this source code the provider is MSDAORAmDT=Me.RetriveData(strSql) 'myDs.Tables("Table1") DataGrid1.DataSource = mdt DataGrid1.DataBind() ----------------------------------------------------- Private Sub CreateDataCommand() Me.mConnection=nothing Me.mDataCommand=nothing Me.mDataAdapter=nothing Me.mConnection = New OleDbConnection(Me.GetConnectionString) Me.mDataCommand = New OleDbCommand Me.mDataCommand.Connection = Me.mConnection Me.mDataAdapter = New OleDbDataAdapter End Sub Public Function RetriveData(ByVal pStrSQL As String) As DataTable Dim mDataTable As DataTable mDataTable=nothing mDataTable=new DataTable CreateDataCommand() Me.mDataCommand.CommandText = pStrSQL Me.mDataAdapter.SelectCommand = Me.mDataCommand Me.mDataAdapter.Fill(mDataTable) Me.mDataAdapter.SelectCommand.Connection.Close() Return mDataTable End Function
It looks like some bit of native code is broken.
"On two occasions, I have been asked [by members of Parliament], 'Pray, Mr. Babbage, if you put into the machine wrong figures, will the right answers come out?' I am not able to rightly apprehend the kind of confusion of ideas that could provoke such a question." --Charles Babbage (1791-1871) My: Website | Blog
-
Hi!,... I try to retrive data from Oracle and i got this massage
The instruction at "0x4a5d61f6" referenced memory at "0x00000002".The memory could not be "read".
this source code the provider is MSDAORAmDT=Me.RetriveData(strSql) 'myDs.Tables("Table1") DataGrid1.DataSource = mdt DataGrid1.DataBind() ----------------------------------------------------- Private Sub CreateDataCommand() Me.mConnection=nothing Me.mDataCommand=nothing Me.mDataAdapter=nothing Me.mConnection = New OleDbConnection(Me.GetConnectionString) Me.mDataCommand = New OleDbCommand Me.mDataCommand.Connection = Me.mConnection Me.mDataAdapter = New OleDbDataAdapter End Sub Public Function RetriveData(ByVal pStrSQL As String) As DataTable Dim mDataTable As DataTable mDataTable=nothing mDataTable=new DataTable CreateDataCommand() Me.mDataCommand.CommandText = pStrSQL Me.mDataAdapter.SelectCommand = Me.mDataCommand Me.mDataAdapter.Fill(mDataTable) Me.mDataAdapter.SelectCommand.Connection.Close() Return mDataTable End Function
Check if your Oracle database is up and running, and you don't get the same error when you log on to it normally. I used to get silly errors like this when the log allocated space ran out. TMF