Quote Originally Posted by labmany View Post
Secondly, when I place one or more control from the following list:

CommandButtonW
TextBoxW
SpinBox
OptionButtonW
FrameW
CheckBoxW

on a form, create the EXE along with a .manifest file, compile and run the 'Project1.exe' and close it on my Development machine all is OK.

I copied the 'Project1.exe' and 'Project1.exe.manifest' to a new fresh Windows 7 Ultimate SP1 32bit (virtual Machine) and ran it I got the following message:

"Project1 has stopped working...
check online...
close the program..."


If I add another/extra control other than any of the above list the error does not show anymore!


The attached example is running OK on my development machine but it gives:
Runtime error '0' on the Virtual/Fresh Windows on start up (Project1.exe)

Also with the attached example, I selected and deleted all controls Except CommandButtonW control, compiled and ran on the Fresh Windows and it gave:

Runtime error '50003'
Unexpected error
Thanks for your report and thus help improving the project.

I did a first test and could resolve the problem when removing all properties (not whole control) from the form1.frm (via Notepad) when there is a reference to "form1.frx".
After that the Project1.exe works fine.
So, the problem is then that something goes corrupt on form1.frx at a certain point. However, I was not yet able to isolate the cause and when it happens.