Visual Basic has stopped working while generating exe
CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 12 of 12

Thread: Visual Basic has stopped working while generating exe

  1. #1
    Join Date
    Jul 2017
    Posts
    2

    Visual Basic has stopped working while generating exe

    My project is running fine, but while i am trying to generate exe file, it compiles and while it's writing exe, I gets the same error and shuting the IDE. Please help...

  2. #2
    2kaud's Avatar
    2kaud is online now Super Moderator Power Poster
    Join Date
    Dec 2012
    Location
    England
    Posts
    5,837

    Re: Visual Basic has stopped working while generating exe

    I gets the same error
    What is the error?
    All advice is offered in good faith only. All my code is tested (unless stated explicitly otherwise) with the latest version of Microsoft Visual Studio (using the supported features of the latest standard) and is offered as examples only - not as production quality. I cannot offer advice regarding any other c/c++ compiler/IDE or incompatibilities with VS. You are ultimately responsible for the effects of your programs and the integrity of the machines they run on. Anything I post, code snippets, advice, etc is licensed as Public Domain https://creativecommons.org/publicdomain/zero/1.0/ and can be used without reference or acknowledgement. Also note that I only provide advice and guidance via the forums - and not via private messages!

    C++17 Compiler: Microsoft VS2017 (15.4.4)

  3. #3
    Join Date
    Jul 2017
    Posts
    2

    Re: Visual Basic has stopped working while generating exe

    Visual Basic has stopped working

  4. #4
    2kaud's Avatar
    2kaud is online now Super Moderator Power Poster
    Join Date
    Dec 2012
    Location
    England
    Posts
    5,837

    Re: Visual Basic has stopped working while generating exe

    Quote Originally Posted by srikantmohanty View Post
    Visual Basic has stopped working
    Is there is there no error message shown?
    All advice is offered in good faith only. All my code is tested (unless stated explicitly otherwise) with the latest version of Microsoft Visual Studio (using the supported features of the latest standard) and is offered as examples only - not as production quality. I cannot offer advice regarding any other c/c++ compiler/IDE or incompatibilities with VS. You are ultimately responsible for the effects of your programs and the integrity of the machines they run on. Anything I post, code snippets, advice, etc is licensed as Public Domain https://creativecommons.org/publicdomain/zero/1.0/ and can be used without reference or acknowledgement. Also note that I only provide advice and guidance via the forums - and not via private messages!

    C++17 Compiler: Microsoft VS2017 (15.4.4)

  5. #5
    DataMiser is offline Super Moderator Power Poster
    Join Date
    Jul 2008
    Location
    WV
    Posts
    5,246

    Re: Visual Basic has stopped working while generating exe

    I've never had that happen in the years I have been using VB.
    I would suspect that either there is a problem with your install or a problem with the hardware on the PC in question.
    Always use [code][/code] tags when posting code.

  6. #6
    Join Date
    Mar 2017
    Posts
    6

    Re: Visual Basic has stopped working while generating exe

    Hi There,

    I would like to know how to convert files of vb6 to exe file , but at the same I have call an input file in it?

    for example, my results cannot display when i convert vb6 to exe file because , i call data using input file from txt.

    thanks

  7. #7
    DataMiser is offline Super Moderator Power Poster
    Join Date
    Jul 2008
    Location
    WV
    Posts
    5,246

    Re: Visual Basic has stopped working while generating exe

    Quote Originally Posted by misaghah007 View Post
    Hi There,

    I would like to know how to convert files of vb6 to exe file , but at the same I have call an input file in it?

    for example, my results cannot display when i convert vb6 to exe file because , i call data using input file from txt.

    thanks
    By convert I assume you mean compile.
    Not sure what you are referring to related to input file.
    An Exe can easily read data from a file so if it is not working then you are doing something wrong.
    Keep in mind that you must distribute data files in addition to the exe if you want it to read those files. Can't read what is not there.
    Always use [code][/code] tags when posting code.

  8. #8
    Join Date
    Mar 2017
    Posts
    6

    Re: Visual Basic has stopped working while generating exe

    Quote Originally Posted by DataMiser View Post
    By convert I assume you mean compile.
    Not sure what you are referring to related to input file.
    An Exe can easily read data from a file so if it is not working then you are doing something wrong.
    Keep in mind that you must distribute data files in addition to the exe if you want it to read those files. Can't read what is not there.

    I have attach the screen shot after I saved my vb files in exe and trying to run it using other laptop.

  9. #9
    Join Date
    Mar 2017
    Posts
    6

    Re: Visual Basic has stopped working while generating exe

    Name:  WhatsApp Image 2017-07-12 at 12.17.25.jpg
Views: 44
Size:  33.3 KB

  10. #10
    DataMiser is offline Super Moderator Power Poster
    Join Date
    Jul 2008
    Location
    WV
    Posts
    5,246

    Re: Visual Basic has stopped working while generating exe

    That message is telling you that the folder you are looking for does not exist.
    Most likely you have hard coded a path and filename and that path and file are not on the computer you are trying to run the program on.
    Always use [code][/code] tags when posting code.

  11. #11
    Join Date
    Mar 2017
    Posts
    6

    Re: Visual Basic has stopped working while generating exe

    Quote Originally Posted by DataMiser View Post
    That message is telling you that the folder you are looking for does not exist.
    Most likely you have hard coded a path and filename and that path and file are not on the computer you are trying to run the program on.
    Ok. noted. in that way, How am I going to save that file in exe ?

  12. #12
    Join Date
    Nov 2016
    Posts
    14

    Re: Visual Basic has stopped working while generating exe

    Your error does not happem when you generate the ,exe - The error is happening when you RUN the .exe.

    Look at the Form_Load event of the form you are displaying - it is probably somewhere in there that a path is being set - which does not exist.

    If you upload your project, there may be a way to help you.

    In the mean time, it is always frustrating when you first start learning a new programming language - hang in there - it always gets easier !

Posting Permissions

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


Windows Mobile Development Center


Click Here to Expand Forum to Full Width

This a Codeguru.com survey!


On-Demand Webinars (sponsored)