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 ... 32 33 [34] 35 36 ... 85
496
Has anyone successfully used the EPM Etoolkit  to create an EPM based MLE in a VisualAge C++ v 3.0 IOC application?

Sample 2 from the etoolkit shows an E-MLE inside of an EFrame inside of an application window.  The E-MLE is the actual editor guts; the EFrame adds scroll bars, message line, title bar etc.  I lightly modified sample 2 from the etoolkit SDK, compiled with VAC 3.0 and it works - attached as epm_sample2.zip

But when I convert that into a "custom control" as a C++ class, to integrate with the user interface part of the IOC library, part of the E-MLE stops working.  It appears to be the part that sends messages, or receives messages related to editor commands.  What I THINK is happening is the dispatcher that the IOC uses to intercept and route window messages is somehow not sending the messages to the E-MLE window procedure.  Or rather some of the messages, because other messages clearly are getting through.

So has anyone converted a customized PM window/control into a IOC user interface object that can be inserted into various other IOC UI objects?

epm_sample2.zip is the lightly modified Sample 2 from the eToolkit sdk.   
testmain.zip contains my class EpmMle (descended from IControl) which is my attempt to integrate an EFrame/E-MLE into a custom control that can be used in IOC.  Run testmain.exe from testmain.zip and try issuing a command from the menu;  Command - Command Dlg and then type some EPM command, such as SAYERROR 'Hello'   You will need the VAC 3.0 runtime libraries to run testmain.exe

I also played around with it and created a very simple editor. What I vaguely remember is that if you want to invoke a editor built-in command, you need to use the "post" window message otherwise EPM will get unsynchronized/run into concurrency issues if it runs on more than one thread (which it will do if you invoke a command that takes a longer time to process).

497
Utilities / Re: Find missing files
« on: April 21, 2021, 09:02:23 am »
You will need a REXX script. Use the "dir" command with the filename sorting option and pipe the command output into RXQUEUE. Then, set a counter to 1 and then, going through all files, construct an expected filename from the counter value and compare to real filename. If no match, issue warning. Increase counter by one and go to next file.

498
Multimedia / Re: TiMidity++ error on WPS
« on: April 20, 2021, 12:47:10 pm »
You installed TimidityMCD as a test (when you helped me on improving USBAUDIO.SYS). Maybe you never properly deinstalled it.
TimidityMCD is broken and will lead to all sorts of WPS misbehaviour.

As you already found out, Timidity++ does not integrate into anything. It is just a standalone application.

499
Programming / Re: OS2MEDEF.H typedef - what is it?
« on: April 17, 2021, 07:30:55 pm »
FNMCI is a type just as ULONG would be.
It just happens to be a function type instead of a variable type.

500
Multimedia / Re: Updated Uniaud32 build
« on: April 16, 2021, 12:40:06 pm »
Nothing to do with your drivers.
He spoke about AN drivers too. (these have a not resolve problem and supposed to be HW - not virtual machine)

Again, this problem is not about HW. If it were, my USB drivers would also not work. There is a problem with one or more AN USB drivers. It's either about a stalled pipe not being cleared correctly or with data toggle not being set correctly (at least these cover around 90% of what can go wrong). And of course, in this case, the problem will show on real HW as well as in Virtualbox.

501
Multimedia / Re: Updated Uniaud32 build
« on: April 16, 2021, 12:29:57 pm »
If you switch to using OS/2 in a virtual machine, you can get rid of that problem anyway: use USB 2.x. The performance gain of USB 3.x is non existent anyways (with the OS/2 drivers at least). And for simple devices as keyboards, mice and even video/audio devices, USB 2.x will do the job just fine.
Using a virtual machine will also get rid of the problem of NVM, new network HW bla bla bla.

I get about 5x the performance using USB3 compared to USB2 on my USB3 drive, 20MB/s with USB2 and 110MB/s using a USB3.1 card and transferring an ISO (over 1GB).
I find OS/2 slow in a virtual machine, perhaps as it can't take advantage of all the cores and using Linux, while all hardware works fine, the experience is just lacking, even performance.
A while ago I tried compiling Firefox on Linux with -j5 (5 jobs, recommended on a 4 core machine), and an apt upgrade after making sure nothing that the compile was using was getting updated and then tried to watch a YouTube video in Firefox. The system came to a halt basically, with the mouse even barely moving and it took quite a while to get ALT-CTRL-F1 to switch to a terminal so I could kill stuff. Guess I've just been spoiled by OS/2 when it comes to using the desktop.

How often do you need to use USB in a virtual machine ? If you need to copy large amounts of data, then at least for me, shared folders are the option. Plus you can even set up a network between host and guest (I have not tried that).

But agreed, Virtualbox has 2 problems:
1) it only supports one core if you run OS/2 as a guest. Everything else just hangs the guest sooner or later.
2) it does not properly support USB isochronous transfers. That becomes immediately apparent if you try to play a sound file in an OS/2 guest (using a USB audio device). It will exhibit heavy dropouts. If you do the same on a native/"bare metal" installation, it works just fine. I have reported this as a bug in the Virtualbox bug tracker but I think they couldn't care less.




502
Multimedia / Re: Updated Uniaud32 build
« on: April 15, 2021, 09:35:05 pm »
Why would he if it works with my drivers ?
Seriously, it is not the HW, it is the USB drivers failing and there are many error conditions.
It surely can be fixed and I spent months chasing these problems, they mostly are due to USB devices not behaving the way you would expect.

It is completely absurd that people are complaining about Windows reliability but accept about any odd workaround for OS/2.

If you switch to using OS/2 in a virtual machine, you can get rid of that problem anyway: use USB 2.x. The performance gain of USB 3.x is non existent anyways (with the OS/2 drivers at least). And for simple devices as keyboards, mice and even video/audio devices, USB 2.x will do the job just fine.
Using a virtual machine will also get rid of the problem of NVM, new network HW bla bla bla.

503
Hardware / Re: Virtualbox, eCS and USB 12.08
« on: April 12, 2021, 11:00:39 am »
It's a comforting thought that I am not the only one.
And since it happens also on real HW, I can be sure that someone will file a bug :-)

504
Hardware / Virtualbox, eCS and USB 12.08
« on: April 11, 2021, 10:04:26 pm »
I am using eCS under Virtualbox (currently version 6.1.16).
I just tried to install USB 12.08, as a first test, I only enabled USB 2.0 (OHCI and EHCI) under Virtualbox.
However, when I restart the system, the desktop will hang. I attempted to repair the desktop and also tried to restart multiple times but the result is always the same. I reverted back to my own USB driver set and the desktop will properly populate. I had commented out any drivers that might cause a problem.

Anyone have any experience with USB 12.08 under Virtualbox ? Only with ArcaOS or also with eCS ?

505
1) what version of Virtualbox are you using ? I am using 6.1.16 on a Win64 host. I cannot use 6.1.18 for a completely different reason: it breaks DHCP support in the guest in conjunction with E1000 as MAC driver selection (which I have already reported and which will be fixed in the next VBox release). I am asking, because there is always a chance of some regression sneaking into versions. It would be helpful to start from a common base ...

2) the monitor I picked in the OS/2 guest is "Vesa 17 inch, VESA standard". I doubt that it would make a difference considering that "Vesa 17 inch" is a config/standard that is about 25 years old.

3) what "display type" have you selected in the VBox configuration ? Should be "VBoxVGA" which is the default. The documentation explicitely says to not change that.

4) 1920*1080 * 4 = about 8 MB should be enough for screen aperture (my resolution as an example). I set it to 16 MB.

5) I am not sure in how far VBox has to use real mode BIOS or emulate real mode BIOS services to support custom screen resolutions. As with Panorama, this might cause limitations in what can be offered as a custom resolution. Do you have a native installation of OS/2 on that very same machine and can test with Panorama what it would support ? Is your desired screen resolution supported in the host as well (in my case, I picked the max resolution that Win64 can do on this computer) ?


EDIT: I can confirm for 2) that selection of monitor is completely irrelevant.

506
I seem to vaguely remember that you need to customize VirtualBox to know about that resolution. Search the VirtualBox documentation for the "vboxmanage.exe" utility. You can also call it from a commandline and it will give you a trillion options.

Found it, look here:
https://ourcodeworld.com/articles/read/1298/how-to-run-a-virtual-machine-in-virtualbox-with-a-custom-resolution-3840x2160

and/or here:
https://winaero.com/set-exact-display-resolution-in-virtualbox-virtual-machine/

507
Applications / Re: OS/4 (technical details only)
« on: April 06, 2021, 03:09:24 am »
You have 2 physical cores with 2 logical processors (hyper threads) each. And if hyper threading is not enabled, I'd expect you only see 2 "processors" in OS/2.
This is all IBM marketing bullshit confusion. Works as intended.
Or would Windows show 8 logical processors? If yes, then you would in fact have 4 physical cores.

It's an I7, until recently they had 4 real cores and another 4 logical if HT is turned on. Intel marketing BS, not IBM. For quite a while it was pretty consistent, I3=2 core, I5=4 core, I7= 4+4 core with HT. More other features with the higher numbers too. Lately it has become more confusing with Intel competing  with AMD on number of cores.

Sorry, meant to say Intel marketing BS. But if Windows shows 8 logical processors, then yes, it's 4 real cores.

One of the problems with ACPI.PSD and /CPUMASK is, that the core numbering is not necessarily consistent/logical (I don't know why this is so).
Therefore, if you think that /CPUMASK=0x55 will skip one hyper thread per core, then this is not guaranteed. It's trial and error. And therefore, the only reliable solution is to turn off Hyperthreading via BIOS (which not all BIOSES support).

508
I am running Virtualbox at 1920x1080 with 16 M colors.
No stuttering at all.
Make sure you have no Panorama leftovers.
Only the pure gengradd.
I am running eCS 2.2 beta. Don't know if that makes a difference.

One tip, in config.sys try:
SET C1=GENGRADD,SBFILTER

"SBFILTER" will enable shadow buffering which might speed up things (just like with Panorama).

509
Applications / Re: OS/4 (technical details only)
« on: April 05, 2021, 09:24:32 pm »
You have 2 physical cores with 2 logical processors (hyper threads) each. And if hyper threading is not enabled, I'd expect you only see 2 "processors" in OS/2.
This is all IBM marketing bullshit confusion. Works as intended.
Or would Windows show 8 logical processors? If yes, then you would in fact have 4 physical cores.

510
Applications / Re: Problems with lsusb and usb.ids
« on: April 05, 2021, 08:18:48 am »
Speaking for Paul, I can see from the exec that it is looking for the environment variable.

Pages: 1 ... 32 33 [34] 35 36 ... 85