Results 1 to 18 of 18

Thread: Not creating EXE

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Apr 2002
    Posts
    94

    Not creating EXE

    Hi Friends,

    I am trying to create an exe which is developed in using vb6,crystal report 8.5 and access. Now when I try to create EXE it copiles and then when it reaches to half of writing exe my system gets hang. its not creating exe. I am trying hard but couldn't find any solution. It is not showing any error also. but just without giving any message it shows like its creating and nevver ends. plz help me how to come out of this and to create an exe. Before that it was working fine. But then i did some changes and then tried, so its not working since 2 days.

    plz help me

  2. #2
    Shared Member
    Join Date
    May 2005
    Location
    Kashmir, India
    Posts
    2,277

    Re: Not creating EXE

    I would suggest waiting for sometime till you get a Message Box or something. Sometimes patience pays.
    Use [code] source code here[/code] tags when you post source code.

    My Articles

  3. #3

    Thread Starter
    Lively Member
    Join Date
    Apr 2002
    Posts
    94

    Re: Not creating EXE

    Thank Ali,

    I did the same thing but u know the size of exe file is now 25 MB which was just 2 MB before. And I've just added 5 forms and 3 reports in new version. So what should I do. Plz guide.

    damini

  4. #4
    I'm about to be a PowerPoster! kleinma's Avatar
    Join Date
    Nov 2001
    Location
    NJ - USA (Near NYC)
    Posts
    23,373

    Re: Not creating EXE

    what happens when you run the program in the IDE, but select Run with Full Compile instead of just Run?

  5. #5

    Thread Starter
    Lively Member
    Join Date
    Apr 2002
    Posts
    94

    Re: Not creating EXE

    Thanks kleinma for ur kind co-operation. U know i run my project with start with full compile instead of run. Then I m trying to create an exe. It takes lots of time to create and exe and once it is done its size is too big (25 MB). Previously it was only 2 MB but I added 5 forms and 3 reports and now its 25 MB. So plz help me how to reduce size of exe.

    Thanks in advance

  6. #6
    I'm about to be a PowerPoster! kleinma's Avatar
    Join Date
    Nov 2001
    Location
    NJ - USA (Near NYC)
    Posts
    23,373

    Re: Not creating EXE

    the reports themselves should not actually be part of the exe, they should be rpt files.. so I don't see how those would be adding to the EXE size... was there anything non standard on the 5 forms you added? like 3rd party controls or something else?

  7. #7

    Thread Starter
    Lively Member
    Join Date
    Apr 2002
    Posts
    94

    Re: Not creating EXE

    No. I've nt used any third party controls in that form. and reports i've used not as rpt but i've added crystal report in my project as a part of report. but then also it should not increase size this much.

    thanks for ur co-operation.

  8. #8
    I'm about to be a PowerPoster! kleinma's Avatar
    Join Date
    Nov 2001
    Location
    NJ - USA (Near NYC)
    Posts
    23,373

    Re: Not creating EXE

    I did not know you could add crystal reports to a VB6 project....

  9. #9

    Thread Starter
    Lively Member
    Join Date
    Apr 2002
    Posts
    94

    Re: Not creating EXE

    Ya you can add crystal report to vb. U can either add new and design there or u can add existing rpt file in vb. But I don't think only adding 3 files can increase this much size because before that i had more reports and i've just added more three in them. so it should not increase this much size. i don't know the reason.

  10. #10
    Banished Cander's Avatar
    Join Date
    Dec 2000
    Location
    Why do you care?
    Posts
    6,913

    Re: Not creating EXE

    Delete the exe, and try to compile again.
    Stack Overflow
    See the features of Visual Studio 2010 and C# 4.0: The 10-4 show on Channel9

  11. #11

    Thread Starter
    Lively Member
    Join Date
    Apr 2002
    Posts
    94

    Re: Not creating EXE

    I moved that old exe to another location and then compiled to create new exe. but same. no change.

    thx

  12. #12
    Banned randem's Avatar
    Join Date
    Oct 2002
    Location
    Maui, Hawaii
    Posts
    11,385

    Re: Not creating EXE

    You might have to upload your project for someone to take a look at it to see...

  13. #13

    Thread Starter
    Lively Member
    Join Date
    Apr 2002
    Posts
    94

    Re: Not creating EXE

    I can't upload my code. because its too big

  14. #14
    Shared Member
    Join Date
    May 2005
    Location
    Kashmir, India
    Posts
    2,277

    Re: Not creating EXE

    Quote Originally Posted by damini_dd
    I moved that old exe to another location and then compiled to create new exe. but same. no change.

    thx
    What changes have you done to the project?
    Have you added any new Forms/Resources?
    Use [code] source code here[/code] tags when you post source code.

    My Articles

  15. #15

    Thread Starter
    Lively Member
    Join Date
    Apr 2002
    Posts
    94

    Re: Not creating EXE

    Ya I just added 3 5 forms and 3 reports and one resouce file. but before that size of exe file was around 2 MB which is now 25 MB. And in these forms i've not used any third party control and reports are just part of vb project n not rpt file. There reports are created in Crystal report 8.5 and then added to vb project.
    Last edited by damini_dd; Apr 27th, 2006 at 09:02 AM.

  16. #16
    Ex-Super Mod RobDog888's Avatar
    Join Date
    Apr 2001
    Location
    LA, Calif. Raiders #1 AKA:Gangsta Yoda™
    Posts
    60,709

    Re: Not creating EXE

    Did you uncheck the report option in CR to "Save data with report"? Or are you using the report method - .DiscardSavedData?
    VB/Office Guru™ (AKA: Gangsta Yoda®)
    I dont answer coding questions via PM. Please post a thread in the appropriate forum.

    Microsoft MVP 2006-2011
    Office Development FAQ (C#, VB.NET, VB 6, VBA)
    Senior Jedi Software Engineer MCP (VB 6 & .NET), BSEE, CET
    If a post has helped you then Please Rate it!
    Reps & Rating PostsVS.NET on Vista Multiple .NET Framework Versions Office Primary Interop AssembliesVB/Office Guru™ Word SpellChecker™.NETVB/Office Guru™ Word SpellChecker™ VB6VB.NET Attributes Ex.Outlook Global Address ListAPI Viewer utility.NET API Viewer Utility
    System: Intel i7 6850K, Geforce GTX1060, Samsung M.2 1 TB & SATA 500 GB, 32 GBs DDR4 3300 Quad Channel RAM, 2 Viewsonic 24" LCDs, Windows 10, Office 2016, VS 2019, VB6 SP6

  17. #17
    Banned randem's Avatar
    Join Date
    Oct 2002
    Location
    Maui, Hawaii
    Posts
    11,385

    Re: Not creating EXE

    That my guess RobDogg888.

  18. #18
    Shared Member
    Join Date
    May 2005
    Location
    Kashmir, India
    Posts
    2,277

    Re: Not creating EXE

    Quote Originally Posted by damini_dd
    Ya I just added 3 5 forms and 3 reports and one resouce file. but before that size of exe file was around 2 MB which is now 25 MB. And in these forms i've not used any third party control and reports are just part of vb project n not rpt file. There reports are created in Crystal report 8.5 and then added to vb project.
    A troubleshooting option would be to remove the newly added forms/reports/resource file and compile the project. If it compiles well then add the items one by one and compile the project. If after adding a certain item, the compile does not happen or takes some time then that item is the culprit.

    I would guess it has got something to do with the resource file you are using. What is there in the resource file.
    Use [code] source code here[/code] tags when you post source code.

    My Articles

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