Author Topic: XWP and folder file size listing  (Read 673 times)

Dariusz Piatkowski

  • Hero Member
  • *****
  • Thank You
  • -Given: 13
  • -Receive: 10
  • Posts: 601
    • View Profile
XWP and folder file size listing
« on: November 16, 2019, 04:03:50 pm »
Hi everyone!

Can anyone tell me why my XWP is showing such outrageously huge sizes in the Folder=>Xview mode?

It does look like this isn't just a single number, it appears to be a filesize first (which is correct), followed by another value and finally a 3rd value. I have no idea what those other values are though, guessing maybe the free disk space, or simply a max size that can be displayed in this field that's just set to 999,999,999 by default?

This appears to only happen until I actually open a given file...once opened and closed the view does show the correct filesize afterwards.

Roderick Klein

  • Sr. Member
  • ****
  • Thank You
  • -Given: 0
  • -Receive: 18
  • Posts: 316
    • View Profile
Re: XWP and folder file size listing
« Reply #1 on: November 16, 2019, 05:50:26 pm »
Uhuuu is thst xwp? That rather looks like the pmview file open container.
Or is it me?

Roderick

Dariusz Piatkowski

  • Hero Member
  • *****
  • Thank You
  • -Given: 13
  • -Receive: 10
  • Posts: 601
    • View Profile
Re: XWP and folder file size listing
« Reply #2 on: November 16, 2019, 06:17:42 pm »
Hey Roderick,

Uhuuu is thst xwp? That rather looks like the pmview file open container.
Or is it me?

Ahh...sorry, the image is somewhat missleading, I should have explained it actually. It is a screen capture of both the XView part of folder view as well as the underlying CLI interface. The purpose there was to show the pertinent file details in both environments.

So for example, looking at file editest.map, you can see that the XView shows "13,340,7.0,000,000,000,089", while the CLI shows '133407' for filesize.

In that example, it would appear that the XWP disiplay is offset/shifted by a space.

Now, at first I thought maybe the 'Workplace Shell => Status Bars' settings are impacting this. But having reviewed these I am fairly certain these settings apply to just the folder STATS BAR, so they would not be impacting individual object information, as visible in the XView display.

What I suppose is a tad stranger is the fact that following a re-boot this very same folder now shows all correct information...LOL, ugh???

Doug Bissett

  • Hero Member
  • *****
  • Thank You
  • -Given: 1
  • -Receive: 46
  • Posts: 1251
    • View Profile
Re: XWP and folder file size listing
« Reply #3 on: November 16, 2019, 07:53:53 pm »
That looks like an ancient problem , that was fixed many years ago (probably about the time that eCS appeared on the scene). I don't remember what fixed it, but it is just a formatting problem, as I recall.

What version of OS/2, and XWP, are you using?

Added: Look for duplicate DLLs, that shouldn't be there. I think it has something to do with the REXX support, and the problem may show, or not, depending on which DLL gets loaded first.
« Last Edit: November 16, 2019, 08:00:51 pm by Doug Bissett »

Gregg Young

  • Jr. Member
  • **
  • Thank You
  • -Given: 1
  • -Receive: 6
  • Posts: 54
    • View Profile
Re: XWP and folder file size listing
« Reply #4 on: November 16, 2019, 10:32:51 pm »
Hi

This is caused by an Open Watcom compiled dll being opened on WPS's first thread. It is because OW sets the FPU control word differently than VAC. Installing XWP 1.0.12 or higher should fix it.  If you look closely you will see the odd sizes are floating point numbers formatted as strings where the comma formatting expects an integer. 

Rich Walsh

  • Jr. Member
  • **
  • Thank You
  • -Given: 1
  • -Receive: 11
  • Posts: 98
  • ONU! (OS/2 is NOT Unix!)
    • View Profile
Re: XWP and folder file size listing
« Reply #5 on: November 16, 2019, 10:44:31 pm »
I was about to explain the cause but Gregg beat me to it, so I'll just add this: almost certainly, the culprit here is Doodle Screen Saver which you've been playing with lately. Did you have it installed previously?

FYI... my fix for this was to reset the FPU control word to what VAC expects every time a folder is about to be refreshed. This works most of the time but not always. I don't know why.

Dariusz Piatkowski

  • Hero Member
  • *****
  • Thank You
  • -Given: 13
  • -Receive: 10
  • Posts: 601
    • View Profile
Re: XWP and folder file size listing
« Reply #6 on: November 16, 2019, 11:09:35 pm »
Guys!

OK, a single general reply to the last series of posts from Doug, Gregg and Rich.

Doug,
I am running the latest publicly available XWP release, that being 1.0.13 Aug_04_2019 build.

Gregg,
Issue still occurs in XWP 1.0.13.

Rich,
Well, I've had Doodle Screen Saver installed for quite some time now. I have been seeing this issue for equally as long as well, only now I decided to post about it given that it is a cosmetic only type of a thing and I really didn't think it was a functional issue that needed prioritization otherwise. Regarding Doodle SS, until recently (last week or so) I was using a pretty old version of that utility. Now I am running the most recent one that Dave Yeo has published for the tester group (AN).

I can concur regarding the following though: when this issue is exhibited, I can open such a file, close it, and immediately refresh the folder at which point in time the formatting is corrected for all folder items. So the fix you spoke of does in fact appear to work, but perhaps as an after-effect.

roberto

  • Sr. Member
  • ****
  • Thank You
  • -Given: 16
  • -Receive: 10
  • Posts: 472
    • View Profile
Re: XWP and folder file size listing
« Reply #7 on: November 18, 2019, 03:32:40 pm »
I wanted to ask, how do you make the command com show you in an extra long window?
Once I needed it, I used the epm.exe command com for it.But I would like to know the other option, thanks in advance.

Dave Yeo

  • Hero Member
  • *****
  • Thank You
  • -Given: 11
  • -Receive: 149
  • Posts: 2168
    • View Profile
Re: XWP and folder file size listing
« Reply #8 on: November 18, 2019, 04:29:18 pm »
Use the mode command, something like
Code: [Select]
mode co80,100
will give you a hundred lines. The max that works is perhaps 103

Rick C. Hodgin

  • Newbie
  • *
  • Thank You
  • -Given: 1
  • -Receive: 1
  • Posts: 34
    • View Profile
Re: XWP and folder file size listing
« Reply #9 on: November 18, 2019, 05:26:18 pm »
Use the mode command, something like
Code: [Select]
mode co80,100
will give you a hundred lines. The max that works is perhaps 103

Code: [Select]
mode 132,60
Instead of "co80" you can use a number to change the columns to a wider width as well.  I typically use 132,60 windows as this was the maximum native text-based resolution I could use on the old 3dfx V3 2000 graphics cards.  An excellent screen size for console needs.

Dariusz Piatkowski

  • Hero Member
  • *****
  • Thank You
  • -Given: 13
  • -Receive: 10
  • Posts: 601
    • View Profile
Re: XWP and folder file size listing
« Reply #10 on: November 18, 2019, 06:27:40 pm »
roberto, everyone...
I wanted to ask, how do you make the command com show you in an extra long window?...

I actually use something a tad different from what everyone has described so far, although that base OS/2 functionality absolutely works.

In my case I use a little utility called 'sizer', here is a quick help screen:

Code: [Select]
[G:\]sizer

 VIO session sizer   v 0.0.2

 Usage: sizer [-p <filename>] [-aim] [other options]

-p   program_filename   Program to be executed
-a   arguments          Arguments passed to the program (keys, filenames, etc)
-w   dimensions         Set window dimensions as 'columns,rows'
-o   origin             Set window corner position (left, bottom) as 'x,y'
-c                      Place to the center of screen (if -o not used)
-t   title_string       Set title as...
-f   font_size          Set "System VIO" font size as 'width,height'
-i   icon_filename      Set icon
-min                    Start minimized
-max                    Start maximized
-aim                    Aim mode (window corner position as title)
-vd  desktop_number     Place on the virtual desktop numbered as 'x,y'
                        (relative screen shift from the current '0,0' desktop)
-pl  priority,level     Set priority 'i'dle, 'r'egular, 't'ime-critical or
                        'f'oreground server and level 0...31 as 'p,l'

Attention! Using of -i option will cause program take up additional RAM

Now that in turn allows me to create the following program object for VIO sessions (see attachment).

So as you can tell I still execute cmd.exe from there, but I pass it the col & row counts, the positioning on the screen (if I want it to be in a specific location, maybe PRIMARY vs SECONDARY display, etc.).

All in all, this was a pretty nice utility to deploy.
« Last Edit: November 19, 2019, 04:43:21 am by Dariusz Piatkowski »

David Graser

  • Hero Member
  • *****
  • Thank You
  • -Given: 0
  • -Receive: 61
  • Posts: 515
    • View Profile
Re: XWP and folder file size listing
« Reply #11 on: November 18, 2019, 10:34:38 pm »
Where can one find the sizer utility?

Rich Walsh

  • Jr. Member
  • **
  • Thank You
  • -Given: 1
  • -Receive: 11
  • Posts: 98
  • ONU! (OS/2 is NOT Unix!)
    • View Profile
Re: XWP and folder file size listing
« Reply #12 on: November 19, 2019, 03:34:53 am »
If all you're interested in is a larger command line window, add this to the "Parameters" field of whatever object you use to start 'cmd.exe':
/k mode 104,43

For the command line window that XWP adds to folder menus, I use this to increase the size and change the current directory:
/k mode 104,43 & cd %*

Another way to open a command line in the desired directory is to drop a file or folder on this object.

Ben

  • Full Member
  • ***
  • Thank You
  • -Given: 0
  • -Receive: 3
  • Posts: 209
  • Know Thyself
    • View Profile
Re: XWP and folder file size listing
« Reply #13 on: November 19, 2019, 04:16:42 pm »
If all you're interested in is a larger command line window, add this to the "Parameters" field of whatever object you use to start 'cmd.exe':
/k mode 104,43

For the command line window that XWP adds to folder menus, I use this to increase the size and change the current directory:
/k mode 104,43 & cd %*

Another way to open a command line in the desired directory is to drop a file or folder on this object.

Neat!

Thanks for that
Rich!