Allocating Memory to a shell function

nrasool
09-10-2003, 08:40 AM
Hi there

This is my first question on this forum. Welcome to everyone :)

In the standard version of VB 6,

When i running a shell command, and i'm point to an external program, it is crashing, because i have not allocated enough memory to run it.

Is there any one who can suggest, in how to set up memory for a shell function

I want to allocate 20mb of Memory to one process, then once the process is finished, to free up the 20mb of memory

Does anyone have any suggestions? I have tried searching on this forums for Allocate memory, or shell, and there is nothing about this.
Also checked the helpfile with VB, and got no joy.

Many thanks

OnErr0r
09-10-2003, 08:55 AM
The Shell Function just launches the application. The application itself is responsible for allocating it's own memory.

nrasool
09-10-2003, 09:11 AM
The Shell Function just launches the application. The application itself is responsible for allocating it's own memory.

Hi there

Thanks for the quick reply.

Can you think of any way i can get this to run, not by using the shell function, but another one, and then allocating memory to it, or is it that with all function, the application itself allocates the memory?

Kind Regards

blindwig
09-10-2003, 10:59 AM
Hi there

Thanks for the quick reply.

Can you think of any way i can get this to run, not by using the shell function, but another one, and then allocating memory to it, or is it that with all function, the application itself allocates the memory?

Kind Regards
Are you talking about running a DOS application that's having trouble with it's EMS/XMS memory settings? If so, then I'd say the best way is to come up with a .LNK or .PIF file to launch the application with the appropriate settings, then from your program you need to shell-launch that file instead of the .EXE file. If that's not waht you ment, then I'm not sure. As OnErr0r said, a windows app should be allocating it's own memory - if it's having problems, contact the software vendor/manufacturer.

EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum