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. The Lounge
  3. XP Problems

XP Problems

Scheduled Pinned Locked Moved The Lounge
comhelpquestion
14 Posts 9 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.
  • M Offline
    M Offline
    Mustafa Demirhan
    wrote on last edited by
    #1

    Hi CPians, Does a program running on Win 9x/ME/NT/2000 supposed to be run on WinXP too? If not, what are the incompatibilities? I have a problem with one of my programs. I dont see any reason for the failure, but it always crashes in XP. thank you for any helps in advance Mustafa Demirhan http://www.macroangel.com Sonork ID 100.9935:zoltrix

    A T J T N 6 Replies Last reply
    0
    • M Mustafa Demirhan

      Hi CPians, Does a program running on Win 9x/ME/NT/2000 supposed to be run on WinXP too? If not, what are the incompatibilities? I have a problem with one of my programs. I dont see any reason for the failure, but it always crashes in XP. thank you for any helps in advance Mustafa Demirhan http://www.macroangel.com Sonork ID 100.9935:zoltrix

      A Offline
      A Offline
      Anders Molin
      wrote on last edited by
      #2

      Mustafa Demirhan wrote: Does a program running on Win 9x/ME/NT/2000 supposed to be run on WinXP too Yes, 99% of windows programs runs on WinXP... Mustafa Demirhan wrote: I have a problem with one of my programs. I dont see any reason for the failure, but it always crashes in XP. That might be because the developers have used some kindf og hack or undocumented features that don't work with XP. - Anders Money talks, but all mine ever says is "Goodbye!"

      1 Reply Last reply
      0
      • M Mustafa Demirhan

        Hi CPians, Does a program running on Win 9x/ME/NT/2000 supposed to be run on WinXP too? If not, what are the incompatibilities? I have a problem with one of my programs. I dont see any reason for the failure, but it always crashes in XP. thank you for any helps in advance Mustafa Demirhan http://www.macroangel.com Sonork ID 100.9935:zoltrix

        T Offline
        T Offline
        Tomasz Sowinski
        wrote on last edited by
        #3

        Mustafa Demirhan wrote: I have a problem with one of my programs You have the problem with a program you've written? Or with the program created by someone else? Tomasz Sowinski -- http://www.shooltz.com

        1 Reply Last reply
        0
        • M Mustafa Demirhan

          Hi CPians, Does a program running on Win 9x/ME/NT/2000 supposed to be run on WinXP too? If not, what are the incompatibilities? I have a problem with one of my programs. I dont see any reason for the failure, but it always crashes in XP. thank you for any helps in advance Mustafa Demirhan http://www.macroangel.com Sonork ID 100.9935:zoltrix

          J Offline
          J Offline
          Jeremy Falcon
          wrote on last edited by
          #4

          Have you tried using the compatibility features with XP? XP will allow you to trick an application into believing it's on a different version of Windows -- that just might help. Check out the Compatibility tab on the EXE's property sheet. Jeremy L. Falcon "The One Who Said, 'The One Who Said...'"

          1 Reply Last reply
          0
          • M Mustafa Demirhan

            Hi CPians, Does a program running on Win 9x/ME/NT/2000 supposed to be run on WinXP too? If not, what are the incompatibilities? I have a problem with one of my programs. I dont see any reason for the failure, but it always crashes in XP. thank you for any helps in advance Mustafa Demirhan http://www.macroangel.com Sonork ID 100.9935:zoltrix

            T Offline
            T Offline
            Tom Archer
            wrote on last edited by
            #5

            Actually, its the reverse with some .NET code!! In other words, some .NET code will run on XP and not other operating systems. Cheers, Tom Archer Author, Inside C#

            N W 2 Replies Last reply
            0
            • T Tom Archer

              Actually, its the reverse with some .NET code!! In other words, some .NET code will run on XP and not other operating systems. Cheers, Tom Archer Author, Inside C#

              N Offline
              N Offline
              Nish Nishant
              wrote on last edited by
              #6

              Tom Archer wrote: Actually, its the reverse with some .NET code!! In other words, some .NET code will run on XP and not other operating systems. Oh! That's bad. .NET code is supposed to be portable across windows platforms. This sucks!!!! Nish It's seven o'clock On the dot I'm in my drop top Cruisin' the streets - Oh yeah I got a real pretty, pretty little thing that's waiting for me

              1 Reply Last reply
              0
              • T Tom Archer

                Actually, its the reverse with some .NET code!! In other words, some .NET code will run on XP and not other operating systems. Cheers, Tom Archer Author, Inside C#

                W Offline
                W Offline
                William De Pretre
                wrote on last edited by
                #7

                Do you have any examples ?

                T 1 Reply Last reply
                0
                • M Mustafa Demirhan

                  Hi CPians, Does a program running on Win 9x/ME/NT/2000 supposed to be run on WinXP too? If not, what are the incompatibilities? I have a problem with one of my programs. I dont see any reason for the failure, but it always crashes in XP. thank you for any helps in advance Mustafa Demirhan http://www.macroangel.com Sonork ID 100.9935:zoltrix

                  N Offline
                  N Offline
                  Nish Nishant
                  wrote on last edited by
                  #8

                  Mustafa Demirhan wrote: I have a problem with one of my programs. I dont see any reason for the failure, but it always crashes in XP. Mustafa The best thing to do would be to take an XP machine and install VC++ and debug the program on thatr machine. Nish It's seven o'clock On the dot I'm in my drop top Cruisin' the streets - Oh yeah I got a real pretty, pretty little thing that's waiting for me

                  M M 2 Replies Last reply
                  0
                  • N Nish Nishant

                    Mustafa Demirhan wrote: I have a problem with one of my programs. I dont see any reason for the failure, but it always crashes in XP. Mustafa The best thing to do would be to take an XP machine and install VC++ and debug the program on thatr machine. Nish It's seven o'clock On the dot I'm in my drop top Cruisin' the streets - Oh yeah I got a real pretty, pretty little thing that's waiting for me

                    M Offline
                    M Offline
                    MarkyMark
                    wrote on last edited by
                    #9

                    Or remote debug!

                    1 Reply Last reply
                    0
                    • M Mustafa Demirhan

                      Hi CPians, Does a program running on Win 9x/ME/NT/2000 supposed to be run on WinXP too? If not, what are the incompatibilities? I have a problem with one of my programs. I dont see any reason for the failure, but it always crashes in XP. thank you for any helps in advance Mustafa Demirhan http://www.macroangel.com Sonork ID 100.9935:zoltrix

                      J Offline
                      J Offline
                      JohnJ
                      wrote on last edited by
                      #10

                      Well if your program has to establish or monitor an internet connection using RAS/Dialup networking then that is a good place to start, if you use any third party code for this then check for an update. The code I used just didn't work with the final release of XP, but it was fine in the pre-release versions (thanks Microsoft:mad: ) & it caused me a great deal of grief X| Apart from that,I'd suggest you install a copy of Visual C++ on an XP machine & run your app in debug mode, that way you should rapidly find the cause. Have fun! JohnJ http://www.rainbow-innov.co.uk

                      M 1 Reply Last reply
                      0
                      • W William De Pretre

                        Do you have any examples ?

                        T Offline
                        T Offline
                        Tom Archer
                        wrote on last edited by
                        #11

                        One example of the top of my head is the Process.GetCurrentProcess method. This method truncates the process name to 15 characters. Here's an example where I've created a simple shared assembly and an app to use it:

                        STEP #1

                        Run the strong name utility:

                        sn –k InsideCSharp.key

                        STEP #2

                        Code the server as follows:

                        // SharedAssemblyServer.cs
                        // build with the following command line switches
                        // csc /t:module SharedAssemblyServer.cs
                        internal class SharedAssemblyServer
                        {
                        public static void Test()
                        {
                        System.Console.WriteLine("SharedAssemblyServer.Foo (SharedAssemblyServer.netmodule)");
                        }
                        }

                        Step #3

                        Now code the client as follows:

                        // SharedAssemblyClient.cs
                        // build with the following command line switches
                        // csc /addmodule:SharedAssemblyServer.netmodule SharedAssemblyClient.cs
                        using System;
                        using System.Diagnostics;
                        using System.Reflection;

                        [assembly:AssemblyKeyFile("InsideCSharp.key")]

                        class SharedAssemblyClientApp
                        {
                        public static void Main()
                        {
                        Assembly DLLAssembly =
                        Assembly.GetAssembly(typeof(SharedAssemblyServer));
                        Console.WriteLine("Module1Server.dll Assembly Information");
                        Console.WriteLine("\t" + DLLAssembly);

                            Process p = Process.GetCurrentProcess();
                            string AssemblyName = p.ProcessName  + ".exe";
                            Assembly ThisAssembly = Assembly.LoadFrom(AssemblyName);
                            Console.WriteLine("Module1Client.dll Assembly Information");
                            Console.WriteLine("\\t" + ThisAssembly);
                        
                        Console.WriteLine("Calling SharedAssemblyClient.Test...");
                        SharedAssemblyServer.Test();
                        }
                        

                        }

                        Run the App

                        If you run this application, you'll see that a System.IO.FileNotFoundException will be raised because under Windows 2000 the process name is being truncated to 15 characters (from SharedAssemblyClient to SharedAssemblyC).

                        You can test this compiling the application as SharedAssemblyC and you will find that it works. Additionally, if you try this same code on XP, it also works with the orginal name. Cheers, Tom Archer Author, Inside C#

                        N 1 Reply Last reply
                        0
                        • T Tom Archer

                          One example of the top of my head is the Process.GetCurrentProcess method. This method truncates the process name to 15 characters. Here's an example where I've created a simple shared assembly and an app to use it:

                          STEP #1

                          Run the strong name utility:

                          sn –k InsideCSharp.key

                          STEP #2

                          Code the server as follows:

                          // SharedAssemblyServer.cs
                          // build with the following command line switches
                          // csc /t:module SharedAssemblyServer.cs
                          internal class SharedAssemblyServer
                          {
                          public static void Test()
                          {
                          System.Console.WriteLine("SharedAssemblyServer.Foo (SharedAssemblyServer.netmodule)");
                          }
                          }

                          Step #3

                          Now code the client as follows:

                          // SharedAssemblyClient.cs
                          // build with the following command line switches
                          // csc /addmodule:SharedAssemblyServer.netmodule SharedAssemblyClient.cs
                          using System;
                          using System.Diagnostics;
                          using System.Reflection;

                          [assembly:AssemblyKeyFile("InsideCSharp.key")]

                          class SharedAssemblyClientApp
                          {
                          public static void Main()
                          {
                          Assembly DLLAssembly =
                          Assembly.GetAssembly(typeof(SharedAssemblyServer));
                          Console.WriteLine("Module1Server.dll Assembly Information");
                          Console.WriteLine("\t" + DLLAssembly);

                              Process p = Process.GetCurrentProcess();
                              string AssemblyName = p.ProcessName  + ".exe";
                              Assembly ThisAssembly = Assembly.LoadFrom(AssemblyName);
                              Console.WriteLine("Module1Client.dll Assembly Information");
                              Console.WriteLine("\\t" + ThisAssembly);
                          
                          Console.WriteLine("Calling SharedAssemblyClient.Test...");
                          SharedAssemblyServer.Test();
                          }
                          

                          }

                          Run the App

                          If you run this application, you'll see that a System.IO.FileNotFoundException will be raised because under Windows 2000 the process name is being truncated to 15 characters (from SharedAssemblyClient to SharedAssemblyC).

                          You can test this compiling the application as SharedAssemblyC and you will find that it works. Additionally, if you try this same code on XP, it also works with the orginal name. Cheers, Tom Archer Author, Inside C#

                          N Offline
                          N Offline
                          Nish Nishant
                          wrote on last edited by
                          #12

                          This seems okay to me. It was obviously a win2K bug that was fixed in XP. But generally I expect a .NET app to run on any windows OS without problems. And if it does not, this is all partially meaningless. Nish It's seven o'clock On the dot I'm in my drop top Cruisin' the streets - Oh yeah I got a real pretty, pretty little thing that's waiting for me

                          1 Reply Last reply
                          0
                          • N Nish Nishant

                            Mustafa Demirhan wrote: I have a problem with one of my programs. I dont see any reason for the failure, but it always crashes in XP. Mustafa The best thing to do would be to take an XP machine and install VC++ and debug the program on thatr machine. Nish It's seven o'clock On the dot I'm in my drop top Cruisin' the streets - Oh yeah I got a real pretty, pretty little thing that's waiting for me

                            M Offline
                            M Offline
                            Mustafa Demirhan
                            wrote on last edited by
                            #13

                            This is exactly what I will do. I hate this. XP is supposed to be backward compatible, but it is noooot :(( Mustafa Demirhan http://www.macroangel.com Sonork ID 100.9935:zoltrix

                            1 Reply Last reply
                            0
                            • J JohnJ

                              Well if your program has to establish or monitor an internet connection using RAS/Dialup networking then that is a good place to start, if you use any third party code for this then check for an update. The code I used just didn't work with the final release of XP, but it was fine in the pre-release versions (thanks Microsoft:mad: ) & it caused me a great deal of grief X| Apart from that,I'd suggest you install a copy of Visual C++ on an XP machine & run your app in debug mode, that way you should rapidly find the cause. Have fun! JohnJ http://www.rainbow-innov.co.uk

                              M Offline
                              M Offline
                              Mustafa Demirhan
                              wrote on last edited by
                              #14

                              JohnJ wrote: Well if your program has to establish or monitor an internet connection using RAS/Dialup networking then that is a good place to start, Yes it uses RAS. Thanks for your helps. I hope this solves the problem... Mustafa Demirhan http://www.macroangel.com Sonork ID 100.9935:zoltrix

                              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