Posted on 2009-04-22
Last Modified: 2013-12-17
My application has started crashing each time i run with a message saying :windows presentation Host stopped working... I have no clue why..

In the event viewer I could see
Faulting application PresentationHost.exe, version 3.0.6920.1453, time stamp 0x4858e3e0, faulting module ntdll.dll, version 6.0.6001.18000, time stamp 0x4791a7a6, exception code 0xc0000374, fault offset 0x000b015d, process id 0xd6c, application start time 0x01c9c38976f3ffb4.
Question by:Pavithra_S
    LVL 16

    Accepted Solution

    try installing dot net framework 3.5 sp1.

    then if you still get the same problem, the issue is with your code.
    surround your code with try catch and in the catch show the execption details in a message box.
    LVL 8

    Expert Comment

    On what scenerio, it get crashed? or it get crashed on startup only?

    Author Comment

    In my application i have different tabs,  only under one particluar tab when I click the add button it crashes. I used break points and it crashes at the executenonquery line. Where it makes a call to the said stored procedure on mysql.

    I am passing 23 parameters and i double checked the order and data types etc etc.. everything seems fine... i tried to send less data but that too didnt work.. so i am clueless now.

    LVL 8

    Expert Comment

    can you please put the line with call executenonquery? it will be better if u put code of that function here which calls  executenonquery.

    Author Comment

    i checked my code and found two places where I had messed up.. thanks for all ur help.

    OdbcParameter psdesc = new OdbcParameter();
                    psdesc.OdbcType = System.Data.Odbc.OdbcType.Text;
                    psdesc.Value = txtBox_SDesc.Text;
                    psdesc.Direction = System.Data.ParameterDirection.Input;

                    OdbcParameter pnotes = new OdbcParameter();
                    psdesc.OdbcType = System.Data.Odbc.OdbcType.Text;
                    psdesc.Value = txtBox_notes.Text;
                    psdesc.Direction = System.Data.ParameterDirection.Input; the psdesc had to be changed to pnotes...
    I am surprised it didnt throw any error and actually crashed because of this mistake, had been working on thsi for soo long and didnt notice this obvious error in code! sorry

    Thanks once again

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    How to run any project with ease

    Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
    - Combine task lists, docs, spreadsheets, and chat in one
    - View and edit from mobile/offline
    - Cut down on emails

    A theme is a collection of property settings that allow you to define the look of pages and controls, and then apply the look consistently across pages in an application. Themes can be made up of a set of elements: skins, style sheets, images, and o…
    A long time ago (May 2011), I have written an article showing you how to create a DLL using Visual Studio 2005 to be hosted in SQL Server 2005. That was valid at that time and it is still valid if you are still using these versions. You can still re…
    Shows how to create a shortcut to site-search Experts Exchange using Google in the Chrome browser. This eliminates the need to type out whenever you want to search the site. Launch the Search Engine Menu: In chrome, via you…
    How to create a custom search shortcut to site-search Experts Exchange using Google in the Firefox browser. This eliminates the need to type out whenever you want to search the site. Launch your Bookmark Menu: Press 'Ctrl +…

    761 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    11 Experts available now in Live!

    Get 1:1 Help Now