Results 1 to 18 of 18

Thread: compiled exe gives me error "encountered a problem and need to close"

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Feb 2007
    Posts
    187

    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

  2. #2
    VB-aholic & Lovin' It LaVolpe's Avatar
    Join Date
    Oct 2007
    Location
    Beside Waldo
    Posts
    19,541

    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.
    Insomnia is just a byproduct of, "It can't be done"

    Classics Enthusiast? Here's my 1969 Mustang Mach I Fastback. Her sister '67 Coupe has been adopted

    Newbie? Novice? Bored? Spend a few minutes browsing the FAQ section of the forum.
    Read the HitchHiker's Guide to Getting Help on the Forums.
    Here is the list of TAGs you can use to format your posts
    Here are VB6 Help Files online


    {Alpha Image Control} {Memory Leak FAQ} {Unicode Open/Save Dialog} {Resource Image Viewer/Extractor}
    {VB and DPI Tutorial} {Manifest Creator} {UserControl Button Template} {stdPicture Render Usage}

  3. #3

  4. #4

    Thread Starter
    Addicted Member
    Join Date
    Feb 2007
    Posts
    187

    Re: compiled exe gives me error "encountered a problem and need to close"

    Quote Originally Posted by LaVolpe View Post
    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

  5. #5
    Discovering Life Siddharth Rout's Avatar
    Join Date
    Feb 2005
    Location
    Mumbai, India
    Posts
    12,001

    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?
    A good exercise for the Heart is to bend down and help another up...
    Please Mark your Thread "Resolved", if the query is solved


    MyGear:
    ★ CPU ★ Ryzen 5 5800X
    ★ GPU ★ NVIDIA GeForce RTX 3080 TI Founder Edition
    ★ RAM ★ G. Skill Trident Z RGB 32GB 3600MHz
    ★ MB ★ ASUS TUF GAMING X570 (WI-FI) ATX Gaming
    ★ Storage ★ SSD SB-ROCKET-1TB + SEAGATE 2TB Barracuda IHD
    ★ Cooling ★ NOCTUA NH-D15 CHROMAX BLACK 140mm + 10 of Noctua NF-F12 PWM
    ★ PSU ★ ANTEC HCG-1000-EXTREME 1000 Watt 80 Plus Gold Fully Modular PSU
    ★ Case ★ LIAN LI PC-O11 DYNAMIC XL ROG (BLACK) (G99.O11DXL-X)
    ★ Monitor ★ LG Ultragear 27" 240Hz Gaming Monitor
    ★ Keyboard ★ TVS Electronics Gold Keyboard
    ★ Mouse ★ Logitech G502 Hero

  6. #6
    Former Admin/Moderator MartinLiss's Avatar
    Join Date
    Sep 1999
    Location
    San Jose, CA
    Posts
    33,431

    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?

  7. #7

    Thread Starter
    Addicted Member
    Join Date
    Feb 2007
    Posts
    187

    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.

  8. #8
    Discovering Life Siddharth Rout's Avatar
    Join Date
    Feb 2005
    Location
    Mumbai, India
    Posts
    12,001

    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...
    A good exercise for the Heart is to bend down and help another up...
    Please Mark your Thread "Resolved", if the query is solved


    MyGear:
    ★ CPU ★ Ryzen 5 5800X
    ★ GPU ★ NVIDIA GeForce RTX 3080 TI Founder Edition
    ★ RAM ★ G. Skill Trident Z RGB 32GB 3600MHz
    ★ MB ★ ASUS TUF GAMING X570 (WI-FI) ATX Gaming
    ★ Storage ★ SSD SB-ROCKET-1TB + SEAGATE 2TB Barracuda IHD
    ★ Cooling ★ NOCTUA NH-D15 CHROMAX BLACK 140mm + 10 of Noctua NF-F12 PWM
    ★ PSU ★ ANTEC HCG-1000-EXTREME 1000 Watt 80 Plus Gold Fully Modular PSU
    ★ Case ★ LIAN LI PC-O11 DYNAMIC XL ROG (BLACK) (G99.O11DXL-X)
    ★ Monitor ★ LG Ultragear 27" 240Hz Gaming Monitor
    ★ Keyboard ★ TVS Electronics Gold Keyboard
    ★ Mouse ★ Logitech G502 Hero

  9. #9

    Thread Starter
    Addicted Member
    Join Date
    Feb 2007
    Posts
    187

    Re: compiled exe gives me error "encountered a problem and need to close"

    Quote Originally Posted by koolsid View Post
    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"

  10. #10
    PowerPoster Nightwalker83's Avatar
    Join Date
    Dec 2001
    Location
    Adelaide, Australia
    Posts
    13,344

    Re: compiled exe gives me error "encountered a problem and need to close"

    Quote Originally Posted by ashly View Post
    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"
    Upload your zipped source code so someone can compile the program! Maybe there is an error with your code or pc.
    when you quote a post could you please do it via the "Reply With Quote" button or if it multiple post click the "''+" button then "Reply With Quote" button.
    If this thread is finished with please mark it "Resolved" by selecting "Mark thread resolved" from the "Thread tools" drop-down menu.
    https://get.cryptobrowser.site/30/4111672

  11. #11

    Thread Starter
    Addicted Member
    Join Date
    Feb 2007
    Posts
    187

    Re: compiled exe gives me error "encountered a problem and need to close"

    Quote Originally Posted by Nightwalker83 View Post
    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

  12. #12
    PowerPoster Nightwalker83's Avatar
    Join Date
    Dec 2001
    Location
    Adelaide, Australia
    Posts
    13,344

    Re: compiled exe gives me error "encountered a problem and need to close"

    Quote Originally Posted by ashly View Post
    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.
    when you quote a post could you please do it via the "Reply With Quote" button or if it multiple post click the "''+" button then "Reply With Quote" button.
    If this thread is finished with please mark it "Resolved" by selecting "Mark thread resolved" from the "Thread tools" drop-down menu.
    https://get.cryptobrowser.site/30/4111672

  13. #13

    Thread Starter
    Addicted Member
    Join Date
    Feb 2007
    Posts
    187

    Re: compiled exe gives me error "encountered a problem and need to close"

    Quote Originally Posted by Nightwalker83 View Post
    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.

  14. #14
    PowerPoster Nightwalker83's Avatar
    Join Date
    Dec 2001
    Location
    Adelaide, Australia
    Posts
    13,344

    Re: compiled exe gives me error "encountered a problem and need to close"

    Quote Originally Posted by ashly View Post
    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!
    when you quote a post could you please do it via the "Reply With Quote" button or if it multiple post click the "''+" button then "Reply With Quote" button.
    If this thread is finished with please mark it "Resolved" by selecting "Mark thread resolved" from the "Thread tools" drop-down menu.
    https://get.cryptobrowser.site/30/4111672

  15. #15
    PowerPoster isnoend07's Avatar
    Join Date
    Feb 2007
    Posts
    3,237

    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 ?
    Waiting for a full featured smart phone with out marrying a provider
    Go Android
    Go raiders

  16. #16

    Thread Starter
    Addicted Member
    Join Date
    Feb 2007
    Posts
    187

    Re: compiled exe gives me error "encountered a problem and need to close"

    Quote Originally Posted by isnoend07 View Post
    Are you installing and running as Administrator ?
    Are you using a manifest ?
    Yes, running as administrator. Not using manifest.

  17. #17
    PowerPoster Nightwalker83's Avatar
    Join Date
    Dec 2001
    Location
    Adelaide, Australia
    Posts
    13,344

    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?
    when you quote a post could you please do it via the "Reply With Quote" button or if it multiple post click the "''+" button then "Reply With Quote" button.
    If this thread is finished with please mark it "Resolved" by selecting "Mark thread resolved" from the "Thread tools" drop-down menu.
    https://get.cryptobrowser.site/30/4111672

  18. #18
    PowerPoster isnoend07's Avatar
    Join Date
    Feb 2007
    Posts
    3,237

    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?
    Waiting for a full featured smart phone with out marrying a provider
    Go Android
    Go raiders

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width