dcsimg
Results 1 to 14 of 14
  1. #1

    Thread Starter
    New Member
    Join Date
    Aug 2006
    Posts
    6

    Resolved [RESOLVED] runtime error 7 out of memory

    hello all
    I'm new here and having a problem with my vb6 code .
    i have 2 forms in the project one of them containing msflexgrid .
    the project works fine in my computer , but in my second computer i'm getting runtime error 7 out of memory when the program loads the form with the msflexgrid ,
    when i'm remove the flexgrid from the form it works with no errors .
    any idea what can i do to solve it ?
    thanks

  2. #2
    PowerPoster RhinoBull's Avatar
    Join Date
    Mar 2004
    Location
    New Amsterdam
    Posts
    24,135

    Re: runtime error 7 out of memory

    Quote Originally Posted by kennyw
    ... but in my second computer i'm getting runtime error 7 out of memory when the program loads the form with the msflexgrid...
    Does that happen at runtime or in design? If first then is there chance to see what you do when form loads?

  3. #3

  4. #4

  5. #5

    Thread Starter
    New Member
    Join Date
    Aug 2006
    Posts
    6

    Re: runtime error 7 out of memory

    Quote Originally Posted by RhinoBull
    Does that happen at runtime or in design? If first then is there chance to see what you do when form loads?
    it's happen in run time only - when the program loads the form with the grid ( the other form running fine ) ,
    when i'm removing the grid it's running fine and the form loads .
    when the form loads i'm just initialize some variables .

  6. #6

    Thread Starter
    New Member
    Join Date
    Aug 2006
    Posts
    6

    Re: runtime error 7 out of memory

    Quote Originally Posted by MartinLiss
    Are you actually installing the program on your friend's computer or did you merely copy forms, etc.?

    i'm running the exe of the project ,
    both computers has windows xp but only my computer has visual studio installed .

  7. #7
    PowerPoster
    Join Date
    Feb 2006
    Location
    East of NYC, USA
    Posts
    5,692

    Re: runtime error 7 out of memory

    You can't do that with VB - you must make an installation package and install the program on the other computer.
    The most difficult part of developing a program is understanding the problem.
    The second most difficult part is deciding how you're going to solve the problem.
    Actually writing the program (translating your solution into some computer language) is the easiest part.

    Please indent your code and use [HIGHLIGHT="VB"] [/HIGHLIGHT] tags around it to make it easier to read.

    Please Help Us To Save Ana

  8. #8

  9. #9

    Thread Starter
    New Member
    Join Date
    Aug 2006
    Posts
    6

    Re: runtime error 7 out of memory

    Quote Originally Posted by MartinLiss
    I've moved this to here because 99% of the time you need to create a set of setup files and install them on the other computer. To do that you can use the P&D Wizard that comes with VB, Inno, or any of several other programs.
    can you please give me links how to create setup with vb ?
    thanks

  10. #10
    Smitten by reality Harsh Gupta's Avatar
    Join Date
    Feb 2005
    Location
    Los Angeles, Univ. of Southern California
    Posts
    2,938

    Re: runtime error 7 out of memory

    to use the Package & Deployment wizard, comes with Visual Studio, goto;

    Add-Ins Menu->Add-In manager.

    double click the Package & Deployment Wizard. It will show Loaded on its right...

    umm, this will take long time. Please check the Distributing your Application page on MSDN. Explained using VB 6 as reference.

    to use Inno Setup compiler, download the Inno Setup and a script writers from the Third party files. most of the script writers are free. it also includes a step-by-step instruction manual on how to use Inno.

    there also NSIS Install system by Nullsoft. it is another hassle-free packaging system.

    post back if you face any problem.
    Show Appreciation. Rate Posts.

  11. #11
    Smitten by reality Harsh Gupta's Avatar
    Join Date
    Feb 2005
    Location
    Los Angeles, Univ. of Southern California
    Posts
    2,938

    Re: runtime error 7 out of memory

    found this on MSDN - Runtime Error 7
    Show Appreciation. Rate Posts.

  12. #12

    Thread Starter
    New Member
    Join Date
    Aug 2006
    Posts
    6

    Re: runtime error 7 out of memory

    Quote Originally Posted by Harsh Gupta
    to use the Package & Deployment wizard, comes with Visual Studio, goto;

    Add-Ins Menu->Add-In manager.

    double click the Package & Deployment Wizard. It will show Loaded on its right...

    umm, this will take long time. Please check the Distributing your Application page on MSDN. Explained using VB 6 as reference.

    to use Inno Setup compiler, download the Inno Setup and a script writers from the Third party files. most of the script writers are free. it also includes a step-by-step instruction manual on how to use Inno.

    there also NSIS Install system by Nullsoft. it is another hassle-free packaging system.

    post back if you face any problem.
    thanks
    the Package & Deployment Wizard worked fine , and my my program running fine now .

  13. #13

  14. #14

    Thread Starter
    New Member
    Join Date
    Aug 2006
    Posts
    6

    Re: runtime error 7 out of memory

    Quote Originally Posted by MartinLiss
    Now that we've helped you, you can help us by pulling down the Thread Tools menu and clicking the Mark Thread Resolved button which will let everyone know that you have your answer.

Posting Permissions

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



Featured


Click Here to Expand Forum to Full Width


×
We have made updates to our Privacy Policy to reflect the implementation of the General Data Protection Regulation.