Re: Simple code doesn't work on two systems
- From: "Sourcerer" <enlork@xxxxxxxxxxxxxx>
- Date: Wed, 24 Jan 2007 21:31:24 +0100
"Ben Voigt" <rbv@xxxxxxxxxxxxx> wrote in message news:%23JnLAbxOHHA.3944@xxxxxxxxxxxxxxxxxxxxxxx
"Sourcerer" <enlork@xxxxxxxxxxxxxx> wrote in message news:eoo3g0$33k$1@xxxxxxxxxxxxxxxxx"Ben Voigt" <rbv@xxxxxxxxxxxxx> wrote in message news:OkdLUVmOHHA.3552@xxxxxxxxxxxxxxxxxxxxxxx
"Sourcerer" <enlork@xxxxxxxxxxxxxx> wrote in message news:eolo79$t6a$1@xxxxxxxxxxxxxxxxxI wrote this very simple code in .NET VC++. I compiled it on my system, and tried to run it on my friend's computer (he doesn't have the compiler). We both have Windows XP Professional. I have .NET framework 2.0, and he had 1.0 and it didn't work; then he installed 2.0 and it still didn't work; so he tried with 2.1 and it didn't work, then 3.0 and nothing still worked. I have Intel Centrino Mobile (laptop computer), and he has Intel Pentium 4 (desktop computer). His system reported an error that it cannot execute the program because of invalid configuration. Why doesn't it work?
Did you do a release compile? The debug compile in C++ requires debug libraries that are only present when the compiler is installed.
Do you mean by going to Build->Compile in the menu (or pressing Ctrl+F7)? I did that, but it doesn't work.
I mean select "Release" as the current build configuration. After you compile, what directory does the .exe appear in? If it's a Debug directory, then it won't run on any computer without the compiler installed. Note that the directory name isn't what counts, it's just a good indicator under the default project options.
The build configuration appears on the "Standard" toolbar in Visual Studio 2005.
OK, that solved the problem with the error. The program now runs, but is terminated by Windows. Windows reports being low on Virtual Memory.
Now I know for a fact that my roommate has his Virtual Memory size set to zero. However, what I don't understand is why the program won't run, given that he has 1.7GB of RAM free most of the time (idle Windows only use about 300MB). Why won't Windows use physical memory, but instead insist on using virtual memory for this program? Other programs run just fine on his computer.
--
"It is easy in the world to live after the world's opinion; it easy in solitude to live after our own; but the great man is he who in the midst of the crowd keeps with perfect sweetness the independence of solitude."
Ralph Waldo Emerson, Self-reliance 1841
http://pinpoint.wordpress.com/
.
- Follow-Ups:
- Re: Simple code doesn't work on two systems
- From: Willy Denoyette [MVP]
- Re: Simple code doesn't work on two systems
- References:
- Simple code doesn't work on two systems
- From: Sourcerer
- Re: Simple code doesn't work on two systems
- From: Ben Voigt
- Re: Simple code doesn't work on two systems
- From: Sourcerer
- Re: Simple code doesn't work on two systems
- From: Ben Voigt
- Simple code doesn't work on two systems
- Prev by Date: attn: vilma - truly loveable dvd video - iv - (1/1)
- Next by Date: Re: Simple code doesn't work on two systems
- Previous by thread: Re: Simple code doesn't work on two systems
- Next by thread: Re: Simple code doesn't work on two systems
- Index(es):
Relevant Pages
|