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. Mobile Development
  3. Mobile
  4. Terrible Stack Overflow Exception error....

Terrible Stack Overflow Exception error....

Scheduled Pinned Locked Moved Mobile
questiondatabasegraphicsdata-structureshelp
1 Posts 1 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
    SKP24
    wrote on last edited by
    #1

    Hi All, how are you doing there? Must be fine. I am getting a terrible stack over flow exception error in my PDA application. And I simply can't under stand why this is happening? Currently I am working on a project where the user has to inspect a vehicle for different failures. The flow is like this. There is a form named Select Inspection where the user selects the vehicle id and clicks on Inspection. Then It will go to the next screen where the user presses start inspection. After clicking on that the next form will display a list of categories such as cab test, brake test, emission test etc and all these values comes from the database and buttons are created according to the category. When the user clicks on a particular category different question will come on the screen under that category. It will also come from the database and the buttons are created at runtime. Then when the user clicks on a particular question in the next screen he has to pass or fail the question. Whatever button the user clicks, it then again comes back to the questions form and a tick or cross mark is displayed according to pass or fail. After answering all the question the user has to click on pass button at the bottom of the question screen. Then it will go back to the category screen and an associated image will be displayed on the right side of the category. All these buttons and pictures are created at run time. All these are working well for 7 question ...But when I click on the 8th question it is showing the stack over flow exception. I am here also giving mu code snippet. Start Inspection Form... private void button1_Click(object sender, EventArgs e) { CatgoryQuestion cc = new CatgoryQuestion(); cc.ShowDialog(); this.Close(); } Category Form using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Text; using System.Windows.Forms; using System.Data.SqlServerCe; namespace AIS_Start { public partial class CatgoryQuestion : Form { public CatgoryQuestion() { InitializeComponent(); } private const string LOCALDATABASE = "\\My Documents\\AISNEW.sdf"; private const string CONNECTIONSTRING = "data source=" + LOCALDATABASE;//connection string for local database private SqlCeConnection ceConn = null; Button btn; int a, b, c, d, i, f, g; PictureBo

    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