[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
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?
Re: runtime error 7 out of memory
Are you actually installing the program on your friend's computer or did you merely copy forms, etc.?
Re: runtime error 7 out of memory
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 .
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.?
:wave:
i'm running the exe of the project ,
both computers has windows xp but only my computer has visual studio installed .
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.
Re: runtime error 7 out of memory
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.
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
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.
Re: runtime error 7 out of memory
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 .
:thumb:
Re: runtime error 7 out of memory
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.
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.
:thumb: