[phpBB Debug] PHP Warning: in file [ROOT]/phpbb/db/driver/mysqli.php on line 264: mysqli_fetch_assoc(): Couldn't fetch mysqli_result
[phpBB Debug] PHP Warning: in file [ROOT]/phpbb/db/driver/mysqli.php on line 326: mysqli_free_result(): Couldn't fetch mysqli_result
Pete's QBASIC Site Discuss QBasic, Freebasic, QB64 and more 2021-02-23T01:03:40-05:00 http://www.petesqbsite.com/phpBB3/app.php/feed/topic/14855 2021-02-23T01:03:40-05:00 2021-02-23T01:03:40-05:00 http://www.petesqbsite.com/phpBB3/viewtopic.php?p=39065#p39065 <![CDATA[Re: Qbasic SHELL command and environment limit]]>
You can bump that size up in the config.sys at the expense of losing some conventional RAM by adding something like this:

Code:

SHELL=C:\COMMAND.COM /e:2049 /p
I haven't tried in DOSBox but it worked for me on my 486 with DOS 5.0 when I ran out of environment space for batch variables.

Statistics: Posted by Erik — Tue Feb 23, 2021 1:03 am


]]>
2021-01-23T17:07:58-05:00 2021-01-23T17:07:58-05:00 http://www.petesqbsite.com/phpBB3/viewtopic.php?p=39044#p39044 <![CDATA[Qbasic SHELL command and environment limit]]>
What my web server does is creates a batch file, populates it with a bunch of SET commands to pass the names and values of HTTP headers and the same with the query string Some values are as long as 100 characters (especially the user agent string coming from a web browser).

Then after that it executes a simple program. Right now that simple program is a compiled standalone QuickBasic program which prints a standard message.

After that, the batch file is supposed to exit and return to QuickBasic.

I find things work if I don't set too many values in the DOS environment.

But is there a way to set more?

I mean I know of the FRE command to learn about free storage for things, but is there a way I can associate the results of that command with how much environment space I can use up in DOS?

I don't want to set variables via files and have the program open them because that causes the slowdown in user script processing.

So is there a way I can calculate the free environment space I have for storing values with the DOS set command? I don't want my batch file to cause QuickBasic to crash partway through.

For reference, this is the latest batch file that was generated from my webserver:

Code:

@echo offset Host= 192.168.7.2set User-Agent= Mozilla/5.0 (X11; Linux i686; rv:43.0) Gecko/20100101 Firefox/43.0 SeaMonkey/2.40set Accept= text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8set Accept-Language= en-US,en;q=0.5set Accept-Encoding= gzip, deflateset Referer= http://192.168.7.2/set Connection= keep-alive=0set Cache-Control= max-age=0\HTDOCS\\MINI.EXE > serverpr.out
and serverpr.out is the file that contains the screen output after mini.exe was executed.

Statistics: Posted by mikefromca — Sat Jan 23, 2021 5:07 pm


]]>