Page 1 of 1 1
Topic Options
#203579 - 2011-11-10 04:14 PM Memorysize() not working
BillBarnard Offline
Starting to like KiXtart

Registered: 2007-03-14
Posts: 141
Loc: Leighton Buzzard, Bedfordshire...
I have just installed an extra 2GB of RAM in my PC (Win XP SP1, x86), making it 4GB, and have setup a new Windows 7 Enterprise SP1 x64 machine, and find that the Memorysize() function does not return the correct values on both machines.
The 32-bit XP returns 2047 for Total Physical RAM
The 64-bit Win 7 returns 4095 for Total Physical RAM.

Anyone else have similar problems?

Using the Memory() UDF written by Glenn Barnes, this returns 3548 Megabytes on the 32-bit machine, which is correct, but then it returns only 519 megabytes of RAM on the 64-bit machine.

The sysinternals PSINFO tool also wrongly returns 518 MB on the 64-bit machine.

Tried it on Kixtart 4.53, 4.61 & 4.62

TIA,

Bill
_________________________
Bill

Top
#203580 - 2011-11-10 04:38 PM Re: Memorysize() not working [Re: BillBarnard]
Allen Administrator Offline
KiX Supporter
*****

Registered: 2003-04-19
Posts: 4563
Loc: USA
Try GetMemoryInfo() - http://www.kixtart.org/forums/ubbthreads.php?ubb=showflat&Number=201815#Post201815

The memorysize in kix has been known "defective" for quite some time.

Top
#203582 - 2011-11-10 05:42 PM Re: Memorysize() not working [Re: Allen]
BillBarnard Offline
Starting to like KiXtart

Registered: 2007-03-14
Posts: 141
Loc: Leighton Buzzard, Bedfordshire...
Thanks Allen, I'll give it a whirl.

It was nice to get an email today from Kixtart.org wishing me a Happy Birthday. I'll not be slowing down at 60 quite yet.
_________________________
Bill

Top
#203583 - 2011-11-10 05:45 PM Re: Memorysize() not working [Re: BillBarnard]
BillBarnard Offline
Starting to like KiXtart

Registered: 2007-03-14
Posts: 141
Loc: Leighton Buzzard, Bedfordshire...
Sorry to Glenn Barnas for mis-spelling his name above.
Perhaps old age is getting to me.
_________________________
Bill

Top
#203584 - 2011-11-10 05:56 PM Re: Memorysize() not working [Re: BillBarnard]
BillBarnard Offline
Starting to like KiXtart

Registered: 2007-03-14
Posts: 141
Loc: Leighton Buzzard, Bedfordshire...
Hi Allen,

This works a treat.
Although the routine only returns 8 items, not 9 as suggested in the Parameters section.
The first one should be "Description" which is not returned.

Thanks,

Bill
_________________________
Bill

Top
#203585 - 2011-11-10 06:06 PM Re: Memorysize() not working [Re: BillBarnard]
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
hbd Bill \:\)
_________________________
!

download KiXnet

Top
#203588 - 2011-11-10 08:33 PM Re: Memorysize() not working [Re: BillBarnard]
Allen Administrator Offline
KiX Supporter
*****

Registered: 2003-04-19
Posts: 4563
Loc: USA
It returns 8 values when not supplying a value to look up, and you are correct, description is not returned. However, if you specify "Description" as the value you want, it returns a value.

GetMemoryInfo() = an array values
GetMemoryInfo("Description") = only returns a description

Top
#203590 - 2011-11-10 08:50 PM Re: Memorysize() not working [Re: Allen]
NTDOC Administrator Offline
Administrator
*****

Registered: 2000-07-28
Posts: 11629
Loc: CA
Wow, long time since I've seen you post Bill.

Glad to see you're still around. \:D

Top
#203698 - 2011-11-14 06:02 PM Re: Memorysize() not working [Re: NTDOC]
BillBarnard Offline
Starting to like KiXtart

Registered: 2007-03-14
Posts: 141
Loc: Leighton Buzzard, Bedfordshire...
I've been busy planning my semi-retirement.
I'm 60 now and going part-time in January.
I'll still be keeping a close eye on this forum.
Lots of interesting things.

Cheers,

Bill
_________________________
Bill

Top
#203699 - 2011-11-14 06:03 PM Re: Memorysize() not working [Re: BillBarnard]
BillBarnard Offline
Starting to like KiXtart

Registered: 2007-03-14
Posts: 141
Loc: Leighton Buzzard, Bedfordshire...
Thanks Allen for the extra info.
_________________________
Bill

Top
#203700 - 2011-11-14 06:10 PM Re: Memorysize() not working [Re: BillBarnard]
BillBarnard Offline
Starting to like KiXtart

Registered: 2007-03-14
Posts: 141
Loc: Leighton Buzzard, Bedfordshire...
Thanks Lonkero
_________________________
Bill

Top
Page 1 of 1 1


Moderator:  Jochen, Allen, Radimus, Glenn Barnas, ShaneEP, Ruud van Velsen, Arend_, Mart 
Hop to:
Shout Box

Who's Online
0 registered and 525 anonymous users online.
Newest Members
batdk82, StuTheCoder, M_Moore, BeeEm, min_seow
17885 Registered Users

Generated in 0.158 seconds in which 0.124 seconds were spent on a total of 13 queries. Zlib compression enabled.

Search the board with:
superb Board Search
or try with google:
Google
Web kixtart.org