mersenneforum.org  

Go Back   mersenneforum.org > Great Internet Mersenne Prime Search > Software

Reply
 
Thread Tools
Old 2008-12-06, 16:49   #1
Phantomas
 
Phantomas's Avatar
 
Oct 2008
Germany, Hamburg

10000012 Posts
Default Version 25.8 and Win98 SE

I noticed that the actual Version from the FTP server (Zip-date 5.12.08) isn't running under Windows 98 (SE). A message-Box appears saying that it need's Kernel32.dll:GlobalMemoryStatus.ex.

25.7 just did fine....
Phantomas is offline   Reply With Quote
Old 2008-12-06, 20:35   #2
Prime95
P90 years forever!
 
Prime95's Avatar
 
Aug 2002
Yeehaw, FL

7,537 Posts
Default

I'll try dynamically linking to that procedure
Prime95 is offline   Reply With Quote
Old 2008-12-07, 19:15   #3
ixfd64
Bemusing Prompter
 
ixfd64's Avatar
 
"Danny"
Dec 2002
California

5·479 Posts
Default

Whoa, version 25.8 is out already?
ixfd64 is offline   Reply With Quote
Old 2008-12-07, 21:19   #4
Mini-Geek
Account Deleted
 
Mini-Geek's Avatar
 
"Tim Sorbera"
Aug 2006
San Antonio, TX USA

17×251 Posts
Default

Quote:
Originally Posted by ixfd64 View Post
Whoa, version 25.8 is out already?
Not really, just a preview version.
Mini-Geek is online now   Reply With Quote
Old 2008-12-08, 17:29   #5
g0ods
 
g0ods's Avatar
 
Mar 2005
Malton, England

1816 Posts
Question

Quote:
Originally Posted by Mini-Geek View Post
Not really, just a preview version.
Is it likely to be released before the holidays? As over the holidays I will be visiting a couple of relatives whom I have 'borged' and would like to update to the latest but also stable version.

M.
g0ods is offline   Reply With Quote
Old 2008-12-08, 20:30   #6
Phantomas
 
Phantomas's Avatar
 
Oct 2008
Germany, Hamburg

4116 Posts
Default

Quote:
Originally Posted by Prime95 View Post
I'll try dynamically linking to that procedure
Hmm, do you try it against the error, or is the error because you used dynamically linking?
Phantomas is offline   Reply With Quote
Old 2008-12-08, 20:39   #7
Prime95
P90 years forever!
 
Prime95's Avatar
 
Aug 2002
Yeehaw, FL

7,537 Posts
Default

Quote:
Originally Posted by Phantomas View Post
Hmm, do you try it against the error, or is the error because you used dynamically linking?
It was not dynamically linked. Build 3 it will be.
Prime95 is offline   Reply With Quote
Old 2008-12-08, 20:55   #8
Phantomas
 
Phantomas's Avatar
 
Oct 2008
Germany, Hamburg

5·13 Posts
Default

great to hear, so i don't have to throw the old engine out of the race

Last fiddled with by Phantomas on 2008-12-08 at 20:56
Phantomas is offline   Reply With Quote
Old 2008-12-09, 01:32   #9
g0ods
 
g0ods's Avatar
 
Mar 2005
Malton, England

23·3 Posts
Default Windows 95B

Quote:
Originally Posted by Prime95 View Post
I'll try dynamically linking to that procedure
A different but related result here? The attached is what I get if I try to run V25.7 under Win95B, (and no I am not that sad, I booted the Win95 machine to get out a CD-ROM I had left in the CD drive about 12 months ago. So I thought what the heck give it a whirl!)
Attached Thumbnails
Click image for larger version

Name:	Prime95_95.gif
Views:	86
Size:	9.1 KB
ID:	2998  
g0ods is offline   Reply With Quote
Old 2008-12-09, 02:36   #10
Prime95
P90 years forever!
 
Prime95's Avatar
 
Aug 2002
Yeehaw, FL

7,537 Posts
Default

Version 25 may well not run on Win95. I've no plans to fix any Win95 bugs.
Prime95 is offline   Reply With Quote
Old 2008-12-13, 15:18   #11
Phantomas
 
Phantomas's Avatar
 
Oct 2008
Germany, Hamburg

5×13 Posts
Default

Quote:
Originally Posted by Prime95 View Post
I'll try dynamically linking to that procedure
Hmmpf, Version 25.8b3 shows the same error message "Prime95.exe is linked to missing export-kernel32.dll:GlobalMemoryStatusEx".

As I googled Win98/95 only did support "GlobalMemoryStatus" that returns a structure
Code:
typedef struct _MEMORYSTATUS { 
  DWORD dwLength; 
  DWORD dwMemoryLoad; 
  DWORD dwTotalPhys; 
  DWORD dwAvailPhys; 
  DWORD dwTotalPageFile; 
  DWORD dwAvailPageFile; 
  DWORD dwTotalVirtual; 
  DWORD dwAvailVirtual; 
} MEMORYSTATUS, *LPMEMORYSTATUS; 
dwLengthSpecifies the size, in bytes, of the MEMORYSTATUS structure. Set this member to sizeof(MEMORYSTATUS) when passing it to the GlobalMemoryStatus function.
dwMemoryLoadSpecifies a number between zero and 100 that gives a general idea of current memory use, in which zero indicates no memory use and 100 indicates full memory use.
dwTotalPhysIndicates the total number of bytes of physical memory.
dwAvailPhysIndicates the number of bytes of physical memory available.
dwTotalPageFileIndicates the total number of bytes that can be stored in the paging file. This number does not represent the physical size of the paging file on disk.
dwAvailPageFileIndicates the number of bytes available in the paging file.
dwTotalVirtualIndicates the total number of bytes that can be described in the user mode portion of the virtual address space of the calling process.
dwAvailVirtualIndicates the number of bytes of unreserved and uncommitted memory in the user mode portion of the virtual address space of the calling process.
NT/2000/XP & Vista also supports "GlobalMemoryStatusEx" that returns

Code:
typedef struct _MEMORYSTATUSEX {
  DWORD dwLength;
  DWORD dwMemoryLoad;
  DWORDLONG ullTotalPhys;
  DWORDLONG ullAvailPhys;
  DWORDLONG ullTotalPageFile;
  DWORDLONG ullAvailPageFile;
  DWORDLONG ullTotalVirtual;
  DWORDLONG ullAvailVirtual;
  DWORDLONG ullAvailExtendedVirtual;
} MEMORYSTATUSEX, 
 *LPMEMORYSTATUSEX;
 Members

 dwLengthThe size of the  structure, in bytes. You must set this member before calling   GlobalMemoryStatusEx.
 dwMemoryLoadA number between 0 and 100 that specifies the approximate percentage of physical memory that is in use (0 indicates no memory use and 100 indicates full memory use).
 ullTotalPhysThe amount of actual physical memory, in bytes.
 ullAvailPhysThe amount of physical memory currently available, in bytes. This is the amount of physical memory that can be immediately reused without having to write its contents to disk first. It is the sum of the size of the standby, free, and zero lists.
 ullTotalPageFileThe current committed memory limit for the system or the current process, whichever is smaller, in bytes. To get the system-wide committed memory limit, call GetPerformanceInfo. 
 ullAvailPageFileThe maximum amount of memory the current process can commit, in bytes. This value is equal to or smaller than the system-wide available commit value. To calculate the system-wide available commit value, call GetPerformanceInfo and subtract the value of CommitTotal from the value of CommitLimit.
 ullTotalVirtualThe size of the user-mode portion of the virtual address space of the calling process, in bytes. This value depends on the type of process, the type of processor, and the configuration of the operating system. For example, this value is approximately 2 GB for most 32-bit processes on an x86 processor and approximately 3 GB for 32-bit processes that are large address aware running on a system with 4-gigabyte tuning enabled.
 ullAvailVirtualThe amount of unreserved and uncommitted memory currently in the user-mode portion of the virtual address space of the calling process, in bytes.
 ullAvailExtendedVirtualReserved. This value is always 0.
so the type changed to dwordlong, and an extra info AvailExtendedVirtual that isn't supported now.

Would id be possible to use the older form on w98/w95 systems? Yes I know, it will lead to ugly code.....

Last fiddled with by Phantomas on 2008-12-13 at 15:21
Phantomas is offline   Reply With Quote
Reply

Thread Tools


Similar Threads
Thread Thread Starter Forum Replies Last Post
LLR Version 3.8.5 is available! Jean Penné Software 11 2011-02-20 18:22
LLR Version 3.8.0 is now available! Jean Penné Software 22 2010-04-28 07:45
Which version for P-III's? richs Software 41 2009-01-07 14:40
LLR - new version Cruelty Riesel Prime Search 8 2006-05-16 15:00
Which LLR version to use... Cruelty Riesel Prime Search 1 2005-11-10 15:17

All times are UTC. The time now is 13:59.


Mon Aug 2 13:59:07 UTC 2021 up 10 days, 8:28, 0 users, load averages: 3.81, 3.21, 2.58

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2021, Jelsoft Enterprises Ltd.

This forum has received and complied with 0 (zero) government requests for information.

Permission is granted to copy, distribute and/or modify this document under the terms of the GNU Free Documentation License, Version 1.2 or any later version published by the Free Software Foundation.
A copy of the license is included in the FAQ.