go32v2 development

From Free Pascal wiki
Jump to: navigation, search

This page is about development wrt the GO32V2 port.

Compiling under XP

use

  make <arguments> RUNBATCH="c:\windows\system32\cmd.exe /c"

this avoids some lfn command.com issues.

If there are errors with removing the so called "pack dir", hunt for $(DELTREE) statements that don't have a - (to ignore errors) in front of them. A work around can be to use a batchfile that pauzes before rm-rfing:

  ping -n 2 localhost > nul
  rm -rf %1 %2 %3

And pass it using DELTREE=c:\path\to\abovebatchfile.bat

Memory issues under Vista

It seems that Vista standardly allocates only 1MB extended memory to the dosbox. I found the below bit, but wasn't able to get more than 15MB free. (probably 16MB total)

You can change these settings by running explorer as Administrator or you can also change it from Safe Mode. To run explorer as Administrator, open up a new elevated command window by right clicking cmd.exe -> Run as administrator, then open Task Manager and End Process on explorer, then from the elevated command prompt type explorer.exe (DO NOT EXIT TASK MANGER). Explorer is now running elevated, navigate to C:\WINDOWS\System32\command.com and right click -> properties, proceed to change the setting in the memory tab. After you are completed to return explorer to a standard user process context goto task manager and end the explorer process, then goto File->New Task(Run...) and type explorer.exe, explorer is now running in a standard user process.

http://www.trnicely.net/misc/vista.html