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. Visual Basic
  4. Windows XP can't start my application

Windows XP can't start my application

Scheduled Pinned Locked Moved Visual Basic
csharpgraphicshelpdotnet
12 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.
  • O Offline
    O Offline
    O G I
    wrote on last edited by
    #1

    Hi I'm currently developing graphics manipulation program with GDI+ under Visual Studio 2010 Ultimate RC - the language is Visual Basic. I'm writing the program on my laptop and I test it on my desktop PC, my desktop PC is: OS: Windows Xp SP2 .NET Framework 3.5 SP1 CPU: 1.8GHz P4 Northwood RAM 1GB My Laptop is: TravelMate 5720G OS: Windows 7 Ultimate .NET Framework 4 The application I'm developing uses GDI+ for all graphics manipulations. My project framework is .NET 3.5 SP1. The compiled executable used to work fine on my old desktop PC, but today I tried to start it and windows XP gave me the following error: '(myprogram)has encountered a problem and needs to close. Send Error Report/Don't send' The program I'm developing is for educational purposes in educational centre near my town and there teachers have only two PC with windows vista and others run on XP, so its very important for me to get my app working on XP. Thank you in advance.

    L C 2 Replies Last reply
    0
    • O O G I

      Hi I'm currently developing graphics manipulation program with GDI+ under Visual Studio 2010 Ultimate RC - the language is Visual Basic. I'm writing the program on my laptop and I test it on my desktop PC, my desktop PC is: OS: Windows Xp SP2 .NET Framework 3.5 SP1 CPU: 1.8GHz P4 Northwood RAM 1GB My Laptop is: TravelMate 5720G OS: Windows 7 Ultimate .NET Framework 4 The application I'm developing uses GDI+ for all graphics manipulations. My project framework is .NET 3.5 SP1. The compiled executable used to work fine on my old desktop PC, but today I tried to start it and windows XP gave me the following error: '(myprogram)has encountered a problem and needs to close. Send Error Report/Don't send' The program I'm developing is for educational purposes in educational centre near my town and there teachers have only two PC with windows vista and others run on XP, so its very important for me to get my app working on XP. Thank you in advance.

      L Offline
      L Offline
      Luc Pattyn
      wrote on last edited by
      #2

      O.G.I. wrote:

      (myprogram)has encountered a problem and needs to close

      that basically tells me you did not meticulously provide error handling in your app. You need to add some try-catch constructs, where an exception when caught also gets displayed, say using MessageBox.Show(exception.ToString()) The first place to insert such try-catch construct is in your very first code (so it covers everything that gets executed on the main thread from there), so go search for file program.vb :)

      Luc Pattyn [Forum Guidelines] [Why QA sucks] [My Articles]


      I only read formatted code with indentation, so please use PRE tags for code snippets.


      I'm not participating in frackin' Q&A, so if you want my opinion, ask away in a real forum (or on my profile page).


      1 Reply Last reply
      0
      • O O G I

        Hi I'm currently developing graphics manipulation program with GDI+ under Visual Studio 2010 Ultimate RC - the language is Visual Basic. I'm writing the program on my laptop and I test it on my desktop PC, my desktop PC is: OS: Windows Xp SP2 .NET Framework 3.5 SP1 CPU: 1.8GHz P4 Northwood RAM 1GB My Laptop is: TravelMate 5720G OS: Windows 7 Ultimate .NET Framework 4 The application I'm developing uses GDI+ for all graphics manipulations. My project framework is .NET 3.5 SP1. The compiled executable used to work fine on my old desktop PC, but today I tried to start it and windows XP gave me the following error: '(myprogram)has encountered a problem and needs to close. Send Error Report/Don't send' The program I'm developing is for educational purposes in educational centre near my town and there teachers have only two PC with windows vista and others run on XP, so its very important for me to get my app working on XP. Thank you in advance.

        C Offline
        C Offline
        Chris C B
        wrote on last edited by
        #3

        Are you trying to run a 'release' compile? If so, uninstall and install a 'debug' compile - you should get a more meaningful error message concerning an unhandled error.

        O 1 Reply Last reply
        0
        • C Chris C B

          Are you trying to run a 'release' compile? If so, uninstall and install a 'debug' compile - you should get a more meaningful error message concerning an unhandled error.

          O Offline
          O Offline
          O G I
          wrote on last edited by
          #4

          No, it is not from 'Release' directory its from 'Debug' and there is no problem with exceptions, because if the problem were exception, then the error message window would look like this: http://www.comlinktechnologies.com/error.JPG[^] but the error window i get looks like this one: http://1.bp.blogspot.com/_YxqJFnCxl14/Se8CsD4nmEI/AAAAAAAAAIY/pVsP55EUl3c/s400/excel.bmp[^]

          L C 2 Replies Last reply
          0
          • O O G I

            No, it is not from 'Release' directory its from 'Debug' and there is no problem with exceptions, because if the problem were exception, then the error message window would look like this: http://www.comlinktechnologies.com/error.JPG[^] but the error window i get looks like this one: http://1.bp.blogspot.com/_YxqJFnCxl14/Se8CsD4nmEI/AAAAAAAAAIY/pVsP55EUl3c/s400/excel.bmp[^]

            L Offline
            L Offline
            Luc Pattyn
            wrote on last edited by
            #5

            is that Excel screenshot just an example of the kind of dialog, or is it actually Excel having a problem? you do know Office automation is tricky, and particular to each and every version of Office? you cannot assume a solution that automates Office 2003 to also work on Office 2007 or 2010, they are not compatible. please try and provide more detailed and more accurate information, so somebody can provide specific help. :)

            Luc Pattyn [Forum Guidelines] [Why QA sucks] [My Articles]


            I only read formatted code with indentation, so please use PRE tags for code snippets.


            I'm not participating in frackin' Q&A, so if you want my opinion, ask away in a real forum (or on my profile page).


            1 Reply Last reply
            0
            • O O G I

              No, it is not from 'Release' directory its from 'Debug' and there is no problem with exceptions, because if the problem were exception, then the error message window would look like this: http://www.comlinktechnologies.com/error.JPG[^] but the error window i get looks like this one: http://1.bp.blogspot.com/_YxqJFnCxl14/Se8CsD4nmEI/AAAAAAAAAIY/pVsP55EUl3c/s400/excel.bmp[^]

              C Offline
              C Offline
              Chris C B
              wrote on last edited by
              #6

              O.G.I. wrote:

              but the error window i get looks like this one: http://1.bp.blogspot.com/\_YxqJFnCxl14/Se8CsD4nmEI/AAAAAAAAAIY/pVsP55EUl3c/s400/excel.bmp\[^\]

              In which case, I presume the application is crashing immediately on starting. Is this the case?

              O 1 Reply Last reply
              0
              • C Chris C B

                O.G.I. wrote:

                but the error window i get looks like this one: http://1.bp.blogspot.com/\_YxqJFnCxl14/Se8CsD4nmEI/AAAAAAAAAIY/pVsP55EUl3c/s400/excel.bmp\[^\]

                In which case, I presume the application is crashing immediately on starting. Is this the case?

                O Offline
                O Offline
                O G I
                wrote on last edited by
                #7

                The screenshot I provided are just example of the kind of error dialog I get. And yes the application crashes right on the startup.

                C 1 Reply Last reply
                0
                • O O G I

                  The screenshot I provided are just example of the kind of error dialog I get. And yes the application crashes right on the startup.

                  C Offline
                  C Offline
                  Chris C B
                  wrote on last edited by
                  #8

                  O.G.I. wrote:

                  And yes the application crashes right on the startup.

                  In that case, I suggest you follow Luc Pattyn's original suggestion of using a try/catch block, and provide the error message so people can have a look at it.

                  O 1 Reply Last reply
                  0
                  • C Chris C B

                    O.G.I. wrote:

                    And yes the application crashes right on the startup.

                    In that case, I suggest you follow Luc Pattyn's original suggestion of using a try/catch block, and provide the error message so people can have a look at it.

                    O Offline
                    O Offline
                    O G I
                    wrote on last edited by
                    #9

                    This is all code that resides inside Form_Load event: imgMain.AllowDrop = True 'picture box control strDefDir = My.Computer.FileSystem.CurrentDirectory Me.SetStyle(ControlStyles.DoubleBuffer, True) Me.SetStyle(ControlStyles.UserPaint, True) Me.SetStyle(ControlStyles.AllPaintingInWmPaint, True) Me.UpdateStyles() penRegionPen = New Pen(Brushes.Black, intCropPenSize) penMyPen = New Pen(Brushes.Lime, intCropPenSize) penMyPen.DashStyle = DashStyle.Solid penMyPen.Width = 1 I've put this iside 'Try.. End Try' statement but the problem still exist and it gives me this error window(this time i put the original error window, sorry for showing it so late, I didn't thought that the problem might be so serious): http://www.mediafire.com/imageview.php?quickkey=jmddjtvzzjm[^] And this error is occuring only on my Win XP machine, on my Win 7 laptop there is no problems at all. This is all references that my project uses: Microsoft.VisualBasic.PowerPacks.VS System System.Core System.Data System.Data.DataSetExtensions System.Deployment System.Drawing System.Windows.Forms System.Xml System.Xml.Linq Tommorow I'm going to test my applications on other XP machines, I hope that the problem is in my PC and not in the application...

                    L 1 Reply Last reply
                    0
                    • O O G I

                      This is all code that resides inside Form_Load event: imgMain.AllowDrop = True 'picture box control strDefDir = My.Computer.FileSystem.CurrentDirectory Me.SetStyle(ControlStyles.DoubleBuffer, True) Me.SetStyle(ControlStyles.UserPaint, True) Me.SetStyle(ControlStyles.AllPaintingInWmPaint, True) Me.UpdateStyles() penRegionPen = New Pen(Brushes.Black, intCropPenSize) penMyPen = New Pen(Brushes.Lime, intCropPenSize) penMyPen.DashStyle = DashStyle.Solid penMyPen.Width = 1 I've put this iside 'Try.. End Try' statement but the problem still exist and it gives me this error window(this time i put the original error window, sorry for showing it so late, I didn't thought that the problem might be so serious): http://www.mediafire.com/imageview.php?quickkey=jmddjtvzzjm[^] And this error is occuring only on my Win XP machine, on my Win 7 laptop there is no problems at all. This is all references that my project uses: Microsoft.VisualBasic.PowerPacks.VS System System.Core System.Data System.Data.DataSetExtensions System.Deployment System.Drawing System.Windows.Forms System.Xml System.Xml.Linq Tommorow I'm going to test my applications on other XP machines, I hope that the problem is in my PC and not in the application...

                      L Offline
                      L Offline
                      Luc Pattyn
                      wrote on last edited by
                      #10

                      Look for your program.vb file and give that one a try-catch, as I said earlier. It will catch many more potential problems as a safety net, not as a remedy, and probably tell you what your current problem is. :)

                      Luc Pattyn [Forum Guidelines] [Why QA sucks] [My Articles]


                      I only read formatted code with indentation, so please use PRE tags for code snippets.


                      I'm not participating in frackin' Q&A, so if you want my opinion, ask away in a real forum (or on my profile page).


                      O 1 Reply Last reply
                      0
                      • L Luc Pattyn

                        Look for your program.vb file and give that one a try-catch, as I said earlier. It will catch many more potential problems as a safety net, not as a remedy, and probably tell you what your current problem is. :)

                        Luc Pattyn [Forum Guidelines] [Why QA sucks] [My Articles]


                        I only read formatted code with indentation, so please use PRE tags for code snippets.


                        I'm not participating in frackin' Q&A, so if you want my opinion, ask away in a real forum (or on my profile page).


                        O Offline
                        O Offline
                        O G I
                        wrote on last edited by
                        #11

                        Oh gosh I finally solved the problem it is in this reference: Microsoft.VisualBasic.PowerPacks.VS I was using print to file option of the PrintForm dialog in Visual basic power packs when I remove that reference everything start working fine again and now I'll made it before the deadline, thank you for all advices :) :) :)

                        L 1 Reply Last reply
                        0
                        • O O G I

                          Oh gosh I finally solved the problem it is in this reference: Microsoft.VisualBasic.PowerPacks.VS I was using print to file option of the PrintForm dialog in Visual basic power packs when I remove that reference everything start working fine again and now I'll made it before the deadline, thank you for all advices :) :) :)

                          L Offline
                          L Offline
                          Luc Pattyn
                          wrote on last edited by
                          #12

                          Still, the issue is your program should have told you what was the problem, by testing return values on system calls that don't throw exceptions, and reporting exceptions when they occur, and not by dying silently. :)

                          Luc Pattyn [Forum Guidelines] [Why QA sucks] [My Articles]


                          I only read formatted code with indentation, so please use PRE tags for code snippets.


                          I'm not participating in frackin' Q&A, so if you want my opinion, ask away in a real forum (or on my profile page).


                          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