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. General Programming
  3. C#
  4. C# dataset.select and stack overflow

C# dataset.select and stack overflow

Scheduled Pinned Locked Moved C#
csharphelpdata-structures
6 Posts 4 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.
  • S Offline
    S Offline
    Saamir
    wrote on last edited by
    #1

    Hi guys, Please HELLLLLLPPPPPPP! I have been working on this for 3 days now and I was able to bring it down to stack overflow error in my dataset.Select statement. I have a windows service that gathers data in a dataset and then based on different configurations runs the dataset.select statement. This works and worked fine with .NET 1.1 but after migrating to .NET 2.0, I am getting the stack overflow error when too many dataset entries are generated. Please help!

    Sameer

    C R 2 Replies Last reply
    0
    • S Saamir

      Hi guys, Please HELLLLLLPPPPPPP! I have been working on this for 3 days now and I was able to bring it down to stack overflow error in my dataset.Select statement. I have a windows service that gathers data in a dataset and then based on different configurations runs the dataset.select statement. This works and worked fine with .NET 1.1 but after migrating to .NET 2.0, I am getting the stack overflow error when too many dataset entries are generated. Please help!

      Sameer

      C Offline
      C Offline
      Christian Graus
      wrote on last edited by
      #2

      What is the code, and what is the stack trace ?

      Christian Graus - Microsoft MVP - C++ "also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )

      S 1 Reply Last reply
      0
      • S Saamir

        Hi guys, Please HELLLLLLPPPPPPP! I have been working on this for 3 days now and I was able to bring it down to stack overflow error in my dataset.Select statement. I have a windows service that gathers data in a dataset and then based on different configurations runs the dataset.select statement. This works and worked fine with .NET 1.1 but after migrating to .NET 2.0, I am getting the stack overflow error when too many dataset entries are generated. Please help!

        Sameer

        R Offline
        R Offline
        Ravenet
        wrote on last edited by
        #3

        HI Saamir first one If you can try post error description or any error stack trace another one check in .net 2.0 framework dataset.select() params are correct. thanks

        Cheers,Earn and Enjoy RRave MCTS,MCPD http://ravesoft.blogspot.com

        S 1 Reply Last reply
        0
        • R Ravenet

          HI Saamir first one If you can try post error description or any error stack trace another one check in .net 2.0 framework dataset.select() params are correct. thanks

          Cheers,Earn and Enjoy RRave MCTS,MCPD http://ravesoft.blogspot.com

          S Offline
          S Offline
          Saamir
          wrote on last edited by
          #4

          Hi there, thank you for your response. It's my windows service that is throwing the exception and when I close the exception my service shuts down. The exception is displayed is JIT debugger. It says an Unhandled exception ('') occured in the windowsservice.exe The statement I believe that is causing this is DataRow[] arrSelectedRow = null; string sSelecct = tbCondition.Rows[i]["Condition"].ToString(); string sSortBy = tbCondition.Rows[i]["SortBy"].ToString(); arrSelectedRow = dsData.Tables[SSShare.GetAlerts.g_sTABLEData].Select(sSelecct, sSortBy); //IF I comment this line out no errors Please help

          Sameer

          M 1 Reply Last reply
          0
          • C Christian Graus

            What is the code, and what is the stack trace ?

            Christian Graus - Microsoft MVP - C++ "also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )

            S Offline
            S Offline
            Saamir
            wrote on last edited by
            #5

            Hi Christian, thank you for your response. It's my windows service that is throwing the exception and when I close the exception my service shuts down. The exception is displayed is JIT debugger. It says an Unhandled exception ('') occured in the windowsservice.exe The statement I believe that is causing this is DataRow[] arrSelectedRow = null; string sSelecct = tbCondition.Rows[i]["Condition"].ToString(); string sSortBy = tbCondition.Rows[i]["SortBy"].ToString(); arrSelectedRow = dsData.Tables[SSShare.GetAlerts.g_sTABLEData].Select(sSelecct, sSortBy); //IF I comment this line out no errors Please help

            Sameer

            1 Reply Last reply
            0
            • S Saamir

              Hi there, thank you for your response. It's my windows service that is throwing the exception and when I close the exception my service shuts down. The exception is displayed is JIT debugger. It says an Unhandled exception ('') occured in the windowsservice.exe The statement I believe that is causing this is DataRow[] arrSelectedRow = null; string sSelecct = tbCondition.Rows[i]["Condition"].ToString(); string sSortBy = tbCondition.Rows[i]["SortBy"].ToString(); arrSelectedRow = dsData.Tables[SSShare.GetAlerts.g_sTABLEData].Select(sSelecct, sSortBy); //IF I comment this line out no errors Please help

              Sameer

              M Offline
              M Offline
              Mark Falto
              wrote on last edited by
              #6

              Sameer... I am using .net 1.1 datasets and our produciton application is having the EXACT same issue. Stack overflow seemly triggered by a select on a large dataset table. I don't know a strict solution yet. I may have to re-arch my appliation to eliminate this process.

              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