Alaska Software Inc. - Re: Not a valid Win32 application
Username: Password:
AuthorTopic: Re: Not a valid Win32 application
Chris Carmac Re: Not a valid Win32 application
on Wed, 30 May 2012 12:03:23 -0400
I was getting the error message "not a valid Win32 application" after 
compiling my program, so I searched the newsgroups and came across this 
thread.  After trying various things (pbuild /all, pbuild, deleting obj 
files, deleting .exe, rebooting, etc.) I created a new user account 
within Windows and tried compiling my application while logged into that 
account.  For some reason, that worked. Evidently the temporary file 
structures for the user account must have become corrupted. In 
hindsight, it probably would have been sufficient to clear the files in 
the %USERPROFILE%\AppData\Local\Temp folder for my original user 
account.  Pointing the "TEMP" and/or "TMP" environment variables to a 
different folder might have done the trick also.

I'm posting the information here in the event that someone else runs 
into a similar issue. I'm using Windows 7 Enterprise and Xbase++ version 
1.90.355.


On 8/11/2005 4:21 AM, Jan Groenestein wrote:
> Gentlemen,
>
> While developing my application PLAN.EXE (Xbase++ 1.9) it suddenly starts
> to give an error message at program startup : "C:\GB\PLAN.EXE is not a
> valid Win32 appicaton".
> It must be caused by the code of this specific program because it does not
> happen to other systems that we develop and that run on the same machine.
> It also happens if I run PLAN.EXE on other machines. Debugging is not
> possible because it simply does not start up. If I try to start via the
> debugger I get the message "Error loading c:\gb\plan.exe  OS system error :
> 0"
>
> What to do ? Any ideas, anyone ?
>
> Regards,
> Jan Groenestein
Paulo PinheiroRe: Not a valid Win32 application
on Wed, 30 May 2012 18:28:25 +0100
We have run into this problem too for a couple of times.
Solutions:
1- Add a new icon in the resource.arc file.
2- Change a bmp from 8 bits to 24 bits.

In both cases, apparently, by changing the resource space that the 
executable allocates made the problem go away.

Best Regards,
Paulo Pinheiro


"Chris Carmac"  escreveu na mensagem 
news:6329714d$3d27f020$3347d@news.alaska-software.com...

I was getting the error message "not a valid Win32 application" after
compiling my program, so I searched the newsgroups and came across this
thread.  After trying various things (pbuild /all, pbuild, deleting obj
files, deleting .exe, rebooting, etc.) I created a new user account
within Windows and tried compiling my application while logged into that
account.  For some reason, that worked. Evidently the temporary file
structures for the user account must have become corrupted. In
hindsight, it probably would have been sufficient to clear the files in
the %USERPROFILE%\AppData\Local\Temp folder for my original user
account.  Pointing the "TEMP" and/or "TMP" environment variables to a
different folder might have done the trick also.

I'm posting the information here in the event that someone else runs
into a similar issue. I'm using Windows 7 Enterprise and Xbase++ version
1.90.355.


On 8/11/2005 4:21 AM, Jan Groenestein wrote:
> Gentlemen,
>
> While developing my application PLAN.EXE (Xbase++ 1.9) it suddenly starts
> to give an error message at program startup : "C:\GB\PLAN.EXE is not a
> valid Win32 appicaton".
> It must be caused by the code of this specific program because it does not
> happen to other systems that we develop and that run on the same machine.
> It also happens if I run PLAN.EXE on other machines. Debugging is not
> possible because it simply does not start up. If I try to start via the
> debugger I get the message "Error loading c:\gb\plan.exe  OS system error 
> :
> 0"
>
> What to do ? Any ideas, anyone ?
>
> Regards,
> Jan Groenestein