8192K free memory is needed
John Rickman (71) 645 posts |
The following works in a TaskWindow and creates documentation for the abc/py module in html format.
I want to issue the command from a python program.
The !Run file for python38 already has a wimp slot of 8M |
Stuart Swales (8827) 1349 posts |
It’s going to be run in the current application’s address space, so if that had 8M, after the C runtime has temporarily shunted everything out of the way to run the sub-program, there will be somewhat less than 8M available in this slot for the sub-program to run. |
John Rickman (71) 645 posts |
It seems there is a catch-22. |
Steve Pampling (1551) 8154 posts |
Where?
|
Stuart Swales (8827) 1349 posts |
Is there a quick Python-y way to do https://www.riscosopen.org/wiki/documentation/show/Wimp_StartTask instead? That should run the new task to completion in its own freely-sizable slot before returning. |
Paolo Fabio Zaino (28) 1853 posts |
yes, import swi and then call Wimp_StartTask as we used to do in BBC BASIC (except Python syntax to call SWI is sligthely different) |
John Rickman (71) 645 posts |
@Steve It looks as if your Python is older than mine.
|
John Rickman (71) 645 posts |
Thanks Stuart and Paulo for putting me on track.
Here is the combined output from the two taskwindows.
|