Re: C# app works perfectly on XP but not on 2003 server

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance



there are any number of reasons why it might not work on another machine. Are you sure it's a problem with windows 2003 though? Have you tried it on other XP boxes to make sure?

when you say you put a debug code in, what exactly do you mean? a messagebox? a debug writeline out? Does the program work if you don't put any debug statements in at all?

-Allen
http://allenanderson.blogspot.com/
http://www.glacialcomponents.com

On Thu, 25 Aug 2005 06:35:04 -0700, OfurGørn <ofurgorn@xxxxxxxxxxxxx> wrote:

>Hi everybody - here is an easy one (hopefully)
>
>I have a funny error, that is driving me nuts !!! I have a application that
>I have written on a Windows XP SP2 machine, and tuned to near-perfection -
>then I copied the program to the target system, a Windows 2003 standard
>server, the program works fine for 5-10 minutes, and then comes up with an
>exception. The problem is, that whenever I put any debug code in the code
>that generates the exception, the exception does not come again, but another
>exception comes. I have so far received exceptions like:
> - System.IO.IOException: Transfer complete.
> - System.NullReferenceException
>
>I am having a hard time fixing this, as I am running an Release version on
>the remote server, and have no debug information. I suspect that there is
>something basic I have forgotten in making my code work for Windows 2003
>Server.
>
>hoping the solution is quick and simple !
>
>________________________
>Gunnar Gudmundsson

.



Relevant Pages

  • Re: C# app works perfectly on XP but not on 2003 server
    ... My program uses Windows Sockets ... > when you say you put a debug code in, ... that whenever I put any debug code in the code ... >>that generates the exception, the exception does not come again, but another ...
    (microsoft.public.dotnet.framework.windowsforms)
  • Re: C# app works perfectly on XP but not on 2003 server
    ... In production/release mode on Windows 2003 production server where you have many things going on, the GC is probably doing it's job more efficiently and getting rid of objects that you closed/disposed or set to nothing. ... I have a application that I have written on a Windows XP SP2 machine, and tuned to near-perfection - then I copied the program to the target system, a Windows 2003 standard server, the program works fine for 5-10 minutes, and then comes up with an exception. ... The problem is, that whenever I put any debug code in the code that generates the exception, the exception does not come again, but another exception comes. ...
    (microsoft.public.dotnet.framework.windowsforms)
  • Re: C# app works perfectly on XP but not on 2003 server
    ... My program uses Windows Sockets ... >> when you say you put a debug code in, ... that whenever I put any debug code in the code ... >>>that generates the exception, the exception does not come again, but another ...
    (microsoft.public.dotnet.framework.windowsforms)
  • Re: The Big Mac Hoax. (aka OS X is a dog)
    ... The "debug code is in the betas and will be removed on RTM" is an urban myth. ... Of course, performance can and will no doubt be improved between now and RTM, but it won't be because "the debug code has been removed". ... Then you are saying that when they release the beta for testing that the debug code is already been removed. ... There has never been a "Windows Beta" that had debug code in it. ...
    (comp.sys.mac.advocacy)
  • C# app works perfectly on XP but not on 2003 server
    ... I have written on a Windows XP SP2 machine, ... that whenever I put any debug code in the code ... that generates the exception, the exception does not come again, but another ... the remote server, ...
    (microsoft.public.dotnet.framework.windowsforms)