Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Web Development
  3. ASP.NET
  4. The memory could not be "read" [ Urgent!!! ]

The memory could not be "read" [ Urgent!!! ]

Scheduled Pinned Locked Moved ASP.NET
oracleperformance
3 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • T Offline
    T Offline
    TooLeeDiN
    wrote on last edited by
    #1

    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 MSDAORA mDT=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

    C T 2 Replies Last reply
    0
    • T TooLeeDiN

      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 MSDAORA mDT=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

      C Offline
      C Offline
      Colin Angus Mackay
      wrote on last edited by
      #2

      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

      1 Reply Last reply
      0
      • T TooLeeDiN

        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 MSDAORA mDT=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

        T Offline
        T Offline
        TheManFran
        wrote on last edited by
        #3

        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

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups