Recent

Author Topic: FreePascal doesn't run my programs (any)  (Read 3241 times)

Thaddy

  • Hero Member
  • *****
  • Posts: 15689
  • Censorship about opinions does not belong here.
Re: FreePascal doesn't run my programs (any)
« Reply #15 on: August 20, 2024, 12:36:48 pm »
error 5 is access denied. error 13 is a catch-all for all IO errors. Multiple errors can exist at once.
error 5 means that either the file is locked by another process or you have insufficient rights.
If I smell bad code it usually is bad code and that includes my own code.

fxeconomist

  • New Member
  • *
  • Posts: 48
Re: FreePascal doesn't run my programs (any)
« Reply #16 on: August 20, 2024, 04:59:28 pm »
OK, so the fp IDE gives an error when you try to run the program from within the IDE, but you can run the program from the commandline just fine.

What's the content of your %COMSPEC% environment variable?
Does it matter on which drive the the program resides?

Bart

Yay, COMSPEC... I remember this from the old days. There is no COMSPEC on the offline Windows partition indeed. But how did it get to not be in the first place ? Anyway, this should do the trick.

Bart

  • Hero Member
  • *****
  • Posts: 5361
    • Bart en Mariska's Webstek
Re: FreePascal doesn't run my programs (any)
« Reply #17 on: August 20, 2024, 10:19:13 pm »
There is no COMSPEC on the offline Windows partition indeed.

ComSpec (at least on Win10 it's camel-cased) is supposed to be a global setting, so it should not depend on which drive you are.

Bart

fxeconomist

  • New Member
  • *
  • Posts: 48
Re: FreePascal doesn't run my programs (any)
« Reply #18 on: August 21, 2024, 03:31:48 pm »
There is no COMSPEC on the offline Windows partition indeed.

ComSpec (at least on Win10 it's camel-cased) is supposed to be a global setting, so it should not depend on which drive you are.

Bart

That was my question as well. For the Windows Online partition, it's listed as the first varible in the environment variables list. On the Windows Offline partition, it's just missing. I'll put there when I get on it. But how did that happen?

Both are trimmed Win 11 win Tinier11 and kinda followed the same installation steps.

fxeconomist

  • New Member
  • *
  • Posts: 48
Re: FreePascal doesn't run my programs (any)
« Reply #19 on: August 21, 2024, 03:32:26 pm »
error 5 is access denied. error 13 is a catch-all for all IO errors. Multiple errors can exist at once.
error 5 means that either the file is locked by another process or you have insufficient rights.

Well this thing is still unsolvable to me.

https://www.youtube.com/watch?v=GuJZAjr1yUQ&feature=youtu.be

Thaddy

  • Hero Member
  • *****
  • Posts: 15689
  • Censorship about opinions does not belong here.
Re: FreePascal doesn't run my programs (any)
« Reply #20 on: August 21, 2024, 06:29:18 pm »
Then you have to provide - as usual - a minimal compilable example.
I have the hardware to simulate your infrastructure.
It is really a rights issue.
What are the disk formats and what are the operating systems on the different disks?
If I smell bad code it usually is bad code and that includes my own code.

fxeconomist

  • New Member
  • *
  • Posts: 48
Re: FreePascal doesn't run my programs (any)
« Reply #21 on: August 21, 2024, 07:19:22 pm »
Then you have to provide - as usual - a minimal compilable example.
I have the hardware to simulate your infrastructure.
It is really a rights issue.
What are the disk formats and what are the operating systems on the different disks?

Both are Win 11. Harddisks are NVME and SSD. All partitions are NTFS. I can give you the project in a zip file. There is nothing proprietary there.

Bart

  • Hero Member
  • *****
  • Posts: 5361
    • Bart en Mariska's Webstek
Re: FreePascal doesn't run my programs (any)
« Reply #22 on: August 21, 2024, 11:10:59 pm »
On the Windows Offline partition, it's just missing.

What is a Windows Offline partition?

Bart

ASBzone

  • Hero Member
  • *****
  • Posts: 713
  • Automation leads to relaxation...
    • Free Console Utilities for Windows (and a few for Linux) from BrainWaveCC
Re: FreePascal doesn't run my programs (any)
« Reply #23 on: August 22, 2024, 04:55:25 pm »
I was just about to ask the same thing (about the "offline" partition)


I suspect that there is something wrong with that underlying installation that is not being expressed.
-ASB: https://www.BrainWaveCC.com/

Lazarus v3.5.0.0 (2216170cde) / FPC v3.2.3-1387-g3795cadbc8
(Windows 64-bit install w/Win32 and Linux/Arm cross-compiles via FpcUpDeluxe on both instances)

My Systems: Windows 10/11 Pro x64 (Current)

fxeconomist

  • New Member
  • *
  • Posts: 48
Re: FreePascal doesn't run my programs (any)
« Reply #24 on: August 22, 2024, 06:40:58 pm »
I was just about to ask the same thing (about the "offline" partition)


I suspect that there is something wrong with that underlying installation that is not being expressed.

Now, that's how I called it and how I keep it.
About two years ago I started to become concerned with keeping my freedoms, and this included my digital freedoms.

At the time, I made a dual boot system with two Windowses - one offline and one online. However I broke my rules and I started to use the offline Windows for online tasks.

The next iteration at the beginning of this year was one large offline Windows host and internet thru VMWare VMs, such as Lubuntu for browsing tasks and Windows for online gaming.
This didn't work as well, as VMWare has trouble with graphics acceleration and sound on Windows machines.

I had to turn the internet on the Windows host, and even with browsing tasks delegated to Lubuntu VM, it still started to decay, just for simply being online, without any browsing activities.

I studied for two months what can be done with Linux, and the conclusion was that it was far too hard, needing too much work - including reformatting the large 3.9 TB partition - with results getting near to the limitations of a dual boot system.

Therefore I returned to the dual boot system with two Windowses - one for offline use and one for online use - but this time I can actually have online activities on the host via Lubuntu VM or Windows VM (if I want some downloads and not willing to reboot).

I managed to pack a Lubuntu 20.04 installation in 8 GB and it actually runs as a "qube". A batch file copies the VM to a Ramdisk and runs the VM from there. Should anything infect it, it has no effect - it is volatile. I took this as inspiration from Qube OS.
I can't do the same thing with the Windows VM. Even for my 64 GB system, it's too big of a nut.

The offline Windows one may need, time to time, to be online for a few seconds - say to add a new game to the Steam library - but basically it is to stay offline, and it feels really good how it works now.

Steam clients on both Windowses have been blocked from hosts, so that they cannot update themselves. Using the online Windows to update Steam games is actually really good. The Windows VM is bad at this task - internet thru passed thru dongles is like water thru a pipe with holes.

This is the best security arrangement I found. Notice that "security" in this context is not as much against online threats, but against policies moving us closer to the digital society. I am unwilling to get to the point to have an universal authenticator ("digital ID"), because the next step will be "on the right hand or the forehead". I want to be out by the time it happens.

Steam is basically my treasure. I have all my games there.  Ubisoft said that "gamers have to become comfortable not owning their games". EA games can't even start without being online. I will certainly not be forced into an online-only model of life. When I will be completely off the grid - if, God willing, I manage it - I want to continue enjoying my digital content.

So that offline Windows is the one missing the COMSPEC variable.
« Last Edit: August 22, 2024, 06:55:43 pm by fxeconomist »

 

TinyPortal © 2005-2018