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. Application Crashed!

Application Crashed!

Scheduled Pinned Locked Moved C#
performancehelp
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.
  • A Offline
    A Offline
    ASysSolvers
    wrote on last edited by
    #1

    I am getting this kind of error,in my application i cant get it debugging. it is happening in running. Can U please tell me the reason here i have exception log. -------- Attempted to read or write protected memory. This is often an indication that other memory is corrupt. :: System.Windows.Forms :: at System.Windows.Forms.UnsafeNativeMethods.PeekMessage(MSG& msg, HandleRef hwnd, Int32 msgMin, Int32 msgMax, Int32 remove) at System.Windows.Forms.Application.ComponentManager.System.Windows.Forms.UnsafeNativeMethods.IMsoComponentManager.FPushMessageLoop(Int32 dwComponentID, Int32 reason, Int32 pvLoopData) at System.Windows.Forms.Application.ThreadContext.RunMessageLoopInner(Int32 reason, ApplicationContext context) at System.Windows.Forms.Application.ThreadContext.RunMessageLoop(Int32 reason, ApplicationContext context) at System.Windows.Forms.Application.Run(Form mainForm) at ItvC.Program.Main() in C:\ItvCNew180508\ItvC\Program.cs:line 29

    C H T 3 Replies Last reply
    0
    • A ASysSolvers

      I am getting this kind of error,in my application i cant get it debugging. it is happening in running. Can U please tell me the reason here i have exception log. -------- Attempted to read or write protected memory. This is often an indication that other memory is corrupt. :: System.Windows.Forms :: at System.Windows.Forms.UnsafeNativeMethods.PeekMessage(MSG& msg, HandleRef hwnd, Int32 msgMin, Int32 msgMax, Int32 remove) at System.Windows.Forms.Application.ComponentManager.System.Windows.Forms.UnsafeNativeMethods.IMsoComponentManager.FPushMessageLoop(Int32 dwComponentID, Int32 reason, Int32 pvLoopData) at System.Windows.Forms.Application.ThreadContext.RunMessageLoopInner(Int32 reason, ApplicationContext context) at System.Windows.Forms.Application.ThreadContext.RunMessageLoop(Int32 reason, ApplicationContext context) at System.Windows.Forms.Application.Run(Form mainForm) at ItvC.Program.Main() in C:\ItvCNew180508\ItvC\Program.cs:line 29

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

      Do you do anything with unmanaged components in your code ?

      Christian Graus Please read this if you don't understand the answer I've given you "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 )

      A 1 Reply Last reply
      0
      • A ASysSolvers

        I am getting this kind of error,in my application i cant get it debugging. it is happening in running. Can U please tell me the reason here i have exception log. -------- Attempted to read or write protected memory. This is often an indication that other memory is corrupt. :: System.Windows.Forms :: at System.Windows.Forms.UnsafeNativeMethods.PeekMessage(MSG& msg, HandleRef hwnd, Int32 msgMin, Int32 msgMax, Int32 remove) at System.Windows.Forms.Application.ComponentManager.System.Windows.Forms.UnsafeNativeMethods.IMsoComponentManager.FPushMessageLoop(Int32 dwComponentID, Int32 reason, Int32 pvLoopData) at System.Windows.Forms.Application.ThreadContext.RunMessageLoopInner(Int32 reason, ApplicationContext context) at System.Windows.Forms.Application.ThreadContext.RunMessageLoop(Int32 reason, ApplicationContext context) at System.Windows.Forms.Application.Run(Form mainForm) at ItvC.Program.Main() in C:\ItvCNew180508\ItvC\Program.cs:line 29

        H Offline
        H Offline
        Harvey Saayman
        wrote on last edited by
        #3

        are you using any 3rd party SDK's or .Net wrappers?

        Harvey Saayman - South Africa Junior Developer .Net, C#, SQL

        you.suck = (you.passion != Programming)

        1 Reply Last reply
        0
        • C Christian Graus

          Do you do anything with unmanaged components in your code ?

          Christian Graus Please read this if you don't understand the answer I've given you "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 )

          A Offline
          A Offline
          ASysSolvers
          wrote on last edited by
          #4

          yes i haved used ocx,dll and activeX controls in my application. Any good practice in Assembly.cs file also??

          C 1 Reply Last reply
          0
          • A ASysSolvers

            yes i haved used ocx,dll and activeX controls in my application. Any good practice in Assembly.cs file also??

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

            One of those is what's crashing, so you need to look at your code that calls these.

            Christian Graus Please read this if you don't understand the answer I've given you "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 )

            1 Reply Last reply
            0
            • A ASysSolvers

              I am getting this kind of error,in my application i cant get it debugging. it is happening in running. Can U please tell me the reason here i have exception log. -------- Attempted to read or write protected memory. This is often an indication that other memory is corrupt. :: System.Windows.Forms :: at System.Windows.Forms.UnsafeNativeMethods.PeekMessage(MSG& msg, HandleRef hwnd, Int32 msgMin, Int32 msgMax, Int32 remove) at System.Windows.Forms.Application.ComponentManager.System.Windows.Forms.UnsafeNativeMethods.IMsoComponentManager.FPushMessageLoop(Int32 dwComponentID, Int32 reason, Int32 pvLoopData) at System.Windows.Forms.Application.ThreadContext.RunMessageLoopInner(Int32 reason, ApplicationContext context) at System.Windows.Forms.Application.ThreadContext.RunMessageLoop(Int32 reason, ApplicationContext context) at System.Windows.Forms.Application.Run(Form mainForm) at ItvC.Program.Main() in C:\ItvCNew180508\ItvC\Program.cs:line 29

              T Offline
              T Offline
              Thomas Stockwell
              wrote on last edited by
              #6

              If your application is crashing and you want to solve the problem no matter what, I would suggest you throw messageboxes all over the beginning of your code. When a messagebox does not show when it is suppose to then that is where the problem is occuring. I am almost positive that most programmers would consider this a messy solution and would only use it as a last resort, it should be able to assist you.

              Regards, Thomas Stockwell Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning. Visit my homepage Oracle Studios Discounted or Free Software for Students: DreamSpark - downloads.channel8.msdn.com MSDN Academic Alliance - www.msdnaa.com

              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