English
C ++ Forum

bow or not bow this is The question...

 

Michael
Dell
with following Source be I überfragt what lying, anyway runs in Profan ex v7.6 During low Profan2Cpp fehlerwerte supply (any versions) according to Compiler are The Error values even different. or Have I there Maybe NEN Error drin?
CompileMarkSeparation
!Proc GetFreeMem  Gibt Freien RAM Speicher zurück (- (2-4Mb))
Def GlobMemStat(1) !"KERNEL32.DLL","GlobalMemoryStatus"
Declare MemStat#,ret&
Dim MemStat#,32
Long MemStat#,0 = 32
GlobMemStat(MemStat#)
ret& = Long(MemStat#,29)
Case (ret& > (8 * $0100000)): ret& = (ret& - $0200000)
ret& = (ret& - $0200000)
Dispose MemStat#
Return ret&

EndProc

Print Str$(Int(GetFreeMem() / (1024 * 1024)))
WaitInput
End

309 kB
Kurzbeschreibung: __Demos__
Hochgeladen:12/11/06
Downloadcounter57
Download
 
Salu Michael...

Hab zwar krumme Fieß awer dofir e' ecklich Gsicht! 
12/11/06  
 




Sebastian
König
Hello Michael,

very strange - with supply the code even in the XProfan 10-Interpreter one other Result as The Profan 7.6-Exe from whom archive... I login me again, once I something found out have.

MfG

Sebastian
 
Windows XP, XProfan/Profan² 4.5 bis 11
Profan2Cpp-Homepage:  [...] 
Alte Profan²-Seite:  [...] 
12/11/06  
 




Sebastian
König
two items are me noticed:

1. gives GetMemoryStatus() since XProfan 8.0 and with Profan2Cpp a Error Code back - that itself then more or less casually values yield, is clear...

2. ought to the worth on Offset 28 read go, but if the API-appeal already not functions, is the first secondary.

what I unfortunately not yet find out could is, Why the API-appeal fails...

EDIT: I see straight: Diese function does hardship return a value. - the power The thing yet opaque. with Profan 7.6 is the Return Value 0, with later versions then something, the very to one Error Code looks...
 
Windows XP, XProfan/Profan² 4.5 bis 11
Profan2Cpp-Homepage:  [...] 
Alte Profan²-Seite:  [...] 
12/11/06  
 




Sebastian
König
OK, i think, I have a Statement:

what You query, is the Attribut dwAvailVirtual from the structure. moreover standing as Description in the Documentation: [quote:146fd6843f=MSDN]Indicates the number of bytes of unreserved and uncommitted memory in the user fashion portion of the virtual address space of the calling process.[/quote:146fd6843f]
the declared well, Why The values so different are - it comes integrally on the Process on, means too hereon, How and with which The Exe-File prepares watts and whom status itself the program to that Time the Call befindet.

I suspect time, you are sooner on dwAvailPhys interested, the would then Offset 12 by me are so The values then in all mutants in welt the Fluctuation circa some MB identical...

Related to the Return Value is presumably chance.
 
Windows XP, XProfan/Profan² 4.5 bis 11
Profan2Cpp-Homepage:  [...] 
Alte Profan²-Seite:  [...] 
12/11/06  
 




Michael
Dell
functions best, many Thanks!!!
 
Salu Michael...

Hab zwar krumme Fieß awer dofir e' ecklich Gsicht! 
12/11/06  
 



Hello your both...

only to Info:
Committed = virtueller memory, the one real memory allocated watts
Reserved = as occupied markierter virtueller memory, the but keinem real memory allocated watts
Free = suitor virtueller memory, the realem memory allocated go can

only committed Memory can really read go, there in allenanderen Make quite no memory there's, whom one really read can. attempts one on memory access, the not committed is, there The known Access violation (Messagebox and the Proggi becomes of OS gekillt).

declared Global memory status supply, if it around the virtual memory goes, no really useful values. wants one values over the virtual memory another processes experienced, ought to one on The Native API sheer.

Greeting

Andreas
 
12/15/06  
 



Answer


Topictitle, max. 100 characters.
 

Systemprofile:

no Systemprofil laid out. [anlegen]

XProfan:

 Posting  Font  Smilies  ▼ 

Please register circa a Posting To verfassen.
 

Topic-Options

2.714 Views

Untitledvor 0 min.

Themeninformationen



Admins  |  AGB  |  Applications  |  Authors  |  Chat  |  Privacy Policy  |  Download  |  Entrance  |  Help  |  Merchantportal  |  Imprint  |  Mart  |  Interfaces  |  SDK  |  Services  |  Games  |  Search  |  Support

One proposition all XProfan, The there's!


My XProfan
Private Messages
Own Storage Forum
Topics-Remember-List
Own Posts
Own Topics
Clipboard
Log off
 Deutsch English Français Español Italia
Translations

Privacy Policy


we use Cookies only as Session-Cookies because of the technical necessity and with us there no Cookies of Drittanbietern.

If you here on our Website click or navigate, stimmst You ours registration of Information in our Cookies on XProfan.Net To.

further Information To our Cookies and moreover, How You The control above keep, find You in ours nachfolgenden Datenschutzerklärung.


all rightDatenschutzerklärung
i want none Cookie