_spawnlp returns E2BIG
Posted on 1998-06-17
I am writing a DOS program using MSVC 1.52, large memory model. The DOS program is running under W95.
I make a call, similar to:-
retval = _spawnlp(_P_WAIT, "notepad", "notepad", NULL);
retval returns -1
errno equals 7 (E2BIG)
This is likely because there is not enough memory to spawn the new process. If this *is* the problem, how do I free up memory in a DOS program to allow the _spawnlp to run.
This program has worked in the past on a different machine, I don't know what is different this time.