compiled exe gives me error "encountered a problem and need to close"
hi,
I had a pc which installed the application. after that, the program need modifications. after modifications, I compiled the exe named "project1.exe".
I copy the new compiled exe and paste it to the pc. when I double click and run the "project1.exe", it prompted out a windows error message box which shows "encountered a problem and need to close".
But when I run back the current exe at the pc, the exe works.
Any idea on this? Help urgently required
thanks
Re: compiled exe gives me error "encountered a problem and need to close"
Probably the app needs something on the other pc that isn't there, but does exist on your pc. Recommend building a setup.exe (i.e., VB's Package & Deployment Wizard, INNO, or other packagers) and install that on the other pc.
Re: compiled exe gives me error "encountered a problem and need to close"
Re: compiled exe gives me error "encountered a problem and need to close"
Quote:
Originally Posted by
LaVolpe
Probably the app needs something on the other pc that isn't there, but does exist on your pc. Recommend building a setup.exe (i.e., VB's Package & Deployment Wizard, INNO, or other packagers) and install that on the other pc.
I did run a new setup for the app. I used setup factory to create the setup.
Wondering why error still exists :confused:
Re: compiled exe gives me error "encountered a problem and need to close"
Are you using any 3rd party controls? How big is your project?
Re: compiled exe gives me error "encountered a problem and need to close"
Use the P&D Wizard and create a dependency list rather than a installation package. Is everything in that list included in your Setup Factory installation package?
Re: compiled exe gives me error "encountered a problem and need to close"
koolsid,
using a class control, project not big, compiled exe is about 2.3MB.
MartinLiss,
Alll dependency files inside the list were included inthe setup factory package.
Re: compiled exe gives me error "encountered a problem and need to close"
Can you zip it and upload your project files minus the exe? Let me try and compile/run it here. If there is an error it will point out immediately...
Re: compiled exe gives me error "encountered a problem and need to close"
Quote:
Originally Posted by
koolsid
Can you zip it and upload your project files minus the exe? Let me try and compile/run it here. If there is an error it will point out immediately...
I tried install visual basic in that particular pc, the program can runs with source code. but when I want to compile the exe, it shows error "automation error. the system cannot find the file specified" :confused:
Re: compiled exe gives me error "encountered a problem and need to close"
Quote:
Originally Posted by
ashly
I tried install visual basic in that particular pc, the program can runs with source code. but when I want to compile the exe, it shows error "automation error. the system cannot find the file specified" :confused:
Upload your zipped source code so someone can compile the program! Maybe there is an error with your code or pc.
Re: compiled exe gives me error "encountered a problem and need to close"
Quote:
Originally Posted by
Nightwalker83
Upload your zipped source code so someone can compile the program! Maybe there is an error with your code or pc.
I would like to do so, but due to confidential, I cannot upload the code.
I tried at my laptop & another pc A, both can compile the exe with no error.
But when at pc B, it happened the "automation error".
Please advice. Thanks :)
Re: compiled exe gives me error "encountered a problem and need to close"
Quote:
Originally Posted by
ashly
I would like to do so, but due to confidential, I cannot upload the code.
I tried at my laptop & another pc A, both can compile the exe with no error.
But when at pc B, it happened the "automation error".
Please advice. Thanks :)
Have you tried using the P&D Wizard like Martin Liss suggested?
Also, if you are concerned about confidentially you could up load it to a file host and just pm someone the link to the file. After the solution to the problem has been found it will be posted here and you can delete your program. No one else has to download you program apart from the person you send the link to.
Re: compiled exe gives me error "encountered a problem and need to close"
Quote:
Originally Posted by
Nightwalker83
Have you tried using the P&D Wizard like Martin Liss suggested?
Also, if you are concerned about confidentially you could up load it to a file host and just pm someone the link to the file. After the solution to the problem has been found it will be posted here and you can delete your program. No one else has to download you program apart from the person you send the link to.
Yup. I did used the P&D Wizard, the result still the same.
Re: compiled exe gives me error "encountered a problem and need to close"
Quote:
Originally Posted by
ashly
Yup. I did used the P&D Wizard, the result still the same.
You could try as I suggested above and pm me the link!
Re: compiled exe gives me error "encountered a problem and need to close"
Are you installing and running as Administrator ?
Are you using a manifest ?
Re: compiled exe gives me error "encountered a problem and need to close"
Quote:
Originally Posted by
isnoend07
Are you installing and running as Administrator ?
Are you using a manifest ?
Yes, running as administrator. Not using manifest.
Re: compiled exe gives me error "encountered a problem and need to close"
What computer did you create your program on, your laptop or another pc? Does the program work on the computer it was originally created on?
Re: compiled exe gives me error "encountered a problem and need to close"
I have read a couple different places that exe's created with Vista have problems when installed on XP. Could this be the case?