How to have the memory size

Everything else that doesn't fall into one of the other PB categories.
freak
PureBasic Team
PureBasic Team
Posts: 5947
Joined: Fri Apr 25, 2003 5:21 pm
Location: Germany

Post by freak »

dontmailme wrote:I think maybe Fred should comment on this as he obviously knows what he's doing :)
.. so do I :P
quidquid Latine dictum sit altum videtur
dontmailme
Enthusiast
Enthusiast
Posts: 537
Joined: Wed Oct 29, 2003 10:35 am

Post by dontmailme »

@freak

How come the API call to getprocessheap_() work then ? When you say it shouldn't ?

I'm sure fred could explain it, but you now have your chance ;)

Educate us :)
Paid up PB User !
freak
PureBasic Team
PureBasic Team
Posts: 5947
Joined: Fri Apr 25, 2003 5:21 pm
Location: Germany

Post by freak »

> How come the API call to getprocessheap_() work then ? When you say it shouldn't ?

I told you allready... :wink:
I guess this is an undocumented feature of windows. (that you can use 2 different heap handles and both work)
But i wouldn't count on it, who knows how different windows versions handle this.
It's just a M$ *feature*, nothing more.
(I'd still stick with _PB_MemoryBase though.. just to be sure)
quidquid Latine dictum sit altum videtur
dontmailme
Enthusiast
Enthusiast
Posts: 537
Joined: Wed Oct 29, 2003 10:35 am

Post by dontmailme »

ok :)

I just thought this was very interesting behaviour and wanted to know more ;)

I might just RTFM one day :?
Paid up PB User !
Post Reply