i despair How can I switch from memory to disc when compiling. the compilation works and there is no error message, but i don't get any save to disc.
Are you using "Lazarus IDE"?
"Lazarus IDE" will save to a temporary directory, if you compile or run.
Normally, this is C:\Users\YOUR_USER_NAME\AppData\Local\Temp\
And some files in C:\Users\YOUR_USER_NAME\AppData\Local\Temp\lib
The executable C:\Users\YOUR_USER_NAME\AppData\Local\Temp\project1.exe
You should save your project first.
You should save to a new, empty folder.
Use menu "Project" > "Save Project as"
After you have saved the project => The executable (project_name.exe) will be in that folder. The folder in which you saved the project.