Tools/Capture Output

General questions about using TextPad

Moderators: AmigoJack, bbadmin, helios, Bob Hansen, MudGuard

Post Reply
Wolfgang Hollerweger

Tools/Capture Output

Post by Wolfgang Hollerweger »

Hi everybody

I've a problem with
menu "Configure"/"Preferences"/"Tools"/checkbox "Capture Output"

In Win98 (German version -> I'm not sure about the exact terminology in English :-)) I'm calling a MyBat.bat file where I set the path and some environment variables.

Explorer/MyBat.bat/Properties/Tab "Memory":
drop down list (field on right top) "original environmental memory"(german: "Ursprünglicher Umgebungsspeicher") was changed from "automatic" to 4096, all other "automatic"; checkbox "protected" not checked

Starting MyBat.bat
- from Explorer -> no problem
- from Tools menu with "Capture Output" unchecked -> no problem
- from Tools menu with "Capture Output" checked -> error message
"No memory left in environmental range" (german: "Kein Speicherplatz mehr im Umgebungsbereich")

I also observed that with "Capture Output" checked the path includes the directory where Textpad is installed (and the Microsoft Office directory probably because the Office shortcut bar was active) ???

I do not understand why there is a difference when calling the Batch file with/without "Capture Output"

Wolfgang
Andreas

Re: Tools/Capture Output

Post by Andreas »

When called with capture output, it is probably started as a sub-process of Textpad, while when called without capture output it is started as an independent process.

Put a sleep 10 command in your batch file (just for testing), then call with/without capture, and notice the difference: with capture, you get an hourglass cursor while the batch is running, without you don't...

Ok, so much for the reason of the different behaviour.

How to fix your problem (environment memory)?
I do not really know...
Use a batch file to start textpad
(just one line,
call "c:\programme\Textpad 4\Textpad.exe"
)
and assign that batchfile the memory as you did for MyBat.bat...
Post Reply