Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - Lars

Pages: [1] 2 3 ... 75
1
Programming / Re: Compiling a PM sample with GCC (2023)
« on: May 31, 2023, 07:40:38 pm »
Try to force a localization of en_US (I suppose your LANG env var is set to something that wipfc does not understand):

wipfc -l en_US ....

2
Programming / Re: Compiling a PM sample with GCC (2023)
« on: May 29, 2023, 09:11:27 am »
The warning about RC is perfectly ok. It is being assigned a value, removing it will obviously lead to an error. But the assignment does not result in any consequences, hence the warning.
However, I often also do that in order to ease source code debugging and if an error would be very unlikely. It's easier to look at a variable then to look at registers (a function always places its result in EAX).

3
Programming / Re: Qt6 Application Testing
« on: May 26, 2023, 10:46:38 am »
Can you enable the libc log and see what happens under the hoods ? It's either that Chromium tries to close file handles that have never been opened (judging from some Linux groups, quite a few apps are doing that or the libraries that they use and then, EBADF should indeed be ignored for good as you cannot make the distinction between good or bad) or the log will give a clue if the fd is completely out of bounds (indicating a programming error somewhere).

4
Programming / Re: Qt6 Application Testing
« on: May 26, 2023, 07:22:49 am »
Why did you comment out the check? I think you should add OS2 to the IFDEF clause preceding the check (I would assume that our close resembles the UNIX/LINUX close).

5
Programming / Re: Compiling a PM sample with GCC (2023)
« on: May 23, 2023, 08:05:49 pm »
Hi

I'm trying this sample:
https://github.com/OS2World/DEV-SAMPLES-C-PM-Chain

Hi Martin,

this is a perfect example where it sometimes makes sense to rewrite the whole thing. This thing was full of bugs (which had nothing to do with being a 16-bit application ...).
Find attached, it should now work.

Lars

6
I read it all and I am gladly proven wrong.

But best I can tell you are stating that your basic files modify the mmos2 files
Dll files in memory ? Is that correct ,?

You see best I can tell an os/2 dos vdm  can in no way
Modify os2 kernel memory.  Its protect mode operating system.
The memory is locked between os/2 vdm and the os/2 program.section.

I am really curious how Lars explained thuis to you..

Hi Roderick,

I cannot remember having explained anything to Roberto.
At least I hope, I didn't...

Lars

7
Programming / Re: Rexx cumulative values
« on: May 15, 2023, 12:50:14 pm »
Assuming strict ordering of field TEKSTFELT:

Code: [Select]
ok = VRMethod( "QRY_2", "MoveFirst" )
identifier = ''
sum = 0
do while( ok = 1 )
    call VRMethod "QRY_2", "RowData", "data."
    if data.1 <> identifier then do
       identifier = data.1
       sum = data.2
   end
   else do
       sum = sum + data.2
   end
   data.3 = sum
   say data.1 ',' data.2 ',' data.3
   ok = VRMethod( "QRY_2", "MoveNext" )
end

8
Hardware / Re: [Solved] Iomega ZIP 100 IDE
« on: May 15, 2023, 08:30:31 am »
Has anyone of you ever tried to access the drive with DFSEE?
DFSEE will be able to access the drive even if the OS does not assign a drive letter.
I am led to believe that you need to add LVM info to the volume(s) as LVM did not exist 20 some years ago.
Once that is done, the drive (or rather, the volumes) should show up with drive letter(s).
A brutal way to start from scratch is to have DFSEE wipe the first 63 sectors (or more) with zeros but of course that will lead to complete loss of data on that ZIP disk.

9
Hardware / Re: ArcaOS on a HP EliteBook 840 G3?
« on: May 14, 2023, 11:59:21 am »
Power on the computer, immediately and repeatedly press and release the ESC key until System menu shows up, if System menu shows up, press F10.

10
Hardware / Re: [Solved] Iomega ZIP 100 IDE
« on: May 14, 2023, 09:25:39 am »
If the ZIP disk shows up in minilvm (and that seems to be the case) and if a disk is actually inserted, you should be able to create a volume on it. Once that is done, you can leave minilvm and do LVM /rediscoverprm and it should give you a drive letter (maybe only on next boot, can't remember). You should then be able to format the volume.
At least that is how it worked with my parallel port attached ZIP served by PPAOS2.ADD.

11
Applications / Re: LVM.EXE cannot execute
« on: May 14, 2023, 09:17:19 am »
Ok, then it's the error in USBMSD.ADD. Will be fixed in the next release.

12
Hardware / Re: [Solved] Iomega ZIP 100 IDE
« on: May 14, 2023, 01:27:44 am »
If it is connected to IDE, it is served by DANIS506.ADD and it should show under LVM. But the 96 MB entries are typically dummy entries, stemming from USBMSD.ADD.
If a ZIP disk is inserted already on boot, it should even be locked in the drive. I forgot what to expect if it is inserted after boot.

13
Games / Re: DOS VDM - USB and Game port Gamepad support
« on: May 13, 2023, 05:51:15 pm »
I had thought of contacting him to get him back on board with USB but I haven't done so.

It might be possible that he is doing fine but personal reasons holding him back from again getting engaged with OS/2. If he didn't answer you, it might be better to leave him alone.

14
Applications / Re: LVM.EXE cannot execute
« on: May 13, 2023, 05:37:32 pm »
Hi Neil,

by now I have identified the problem: for me, the problem was in USBMSD.ADD.
Very early in the system start process, OS2DASD.DMD and OS2CDROM.DMD call into USBMSD.ADD in order to find out what units it knows about. At that point in time, USBMSD.ADD knows of no unit because it has not even reset the HC controllers and started the device enumeration (at least with my driver set).
That's also the reason why you need the /REMOVABLES switch: it reserves units so that if USB MSD devices eventually show up, these can be assigned to one of these reserved unit slots.

And here comes the difference:
LVM.EXE expects that an error was reported to OS2DASD.DMD and OS2CDROM.DMD that no unit is yet ready. But Minilvm.EXE and LVMGUI can happily live with a NO_ERROR return.

So: how is your ZIP disk connected to your system ? Via IDE, USB or even via the parallel interface that required the proprietary PPAOS2.ADD driver ?

If it is via IDE (and therefore managed by DANIS506.ADD) I would think that you need to experiment with the various DANIS506.ADD switches so that DANIS506.ADD will return an error on that initial request for units.
If it is via USB, then I can say that the latest available code from IBM (that all existing USB drivers of today are based upon) was not doing the right thing.

15
Hardware / Re: Problem usbdrv248 - 10.248
« on: May 13, 2023, 03:52:35 pm »
Then the answer can only be: move away from OS/2.
It is no longer of practical use anyway (you can exchange data with Windows, but why do you then need OS/2 in the first place? Obviously, then you are also using Windows...).
If you see it as a hobby, then how much fun is it to wait for fixes that are never going to happen?

Pages: [1] 2 3 ... 75