Re: [BLACKBOX] Illegal Memory Access with Windows 7 - Update

From: [at]} <Chris>
Date: Sat, 17 Aug 2013 08:36:05 +0930

----boundary-LibPST-iamunique-1086979690_-_-
Content-type: text/plain

> -----Original Message-----
> From: BlackBox [mailto:BLACKBOX{([at]})nowhere.xy
> Skulski
> Sent: Saturday, 17 August 2013 12:20 AM
> To: BLACKBOX{([at]})nowhere.xy
> Subject: Re: [BLACKBOX] Illegal Memory Access with Windows 7 - Update
>
> > Because the test asks for 1000 random allocations of average size 250
> > MByte, no chance!

>
> Why no chance? If "no chance", then the allocation should never succeed.
> But it does succeed from time to time. Most of the time it does not.
>
> I should rephrase my question. Fundamentally, the computer is
> deterministic. You ask for 800 MB and you should either always get it or
> never get it. But it looks like you you are getting it with certain
> probability. So I am asking, what are the hidden variables that govern the
> "yes/no" result?
>

In a word - fragmentation. There might be more than 250MByte of *total*
memory available in the system but not 250Mbyte of *contiguous* memory (as
needed by an array) at that time. It depends on how efficiently the garbage
collector is cleaning up.

I don't know whether it is true or not but I heard rumours that at one time
Microsoft had about 300 people working on the development of the .NET
garbage collector. It certainly is very sophisticated.

For more detailed information see:

http://msdn.microsoft.com/en-us/library/0xy59wtx.aspx

or for a basic overview see:

http://blogs.telerik.com/justteam/posts/13-04-02/understanding-net-garbage-c
ollection

Regards,
Chris

Chris Burrows
CFB Software
http://


----
To unsubscribe, send a message with body "SIGNOFF BLACKBOX" to LISTSERV{([at]})nowhere.xy----boundary-LibPST-iamunique-1086979690_-_-
Content-type: application/rtf
Content-transfer-encoding: base64
Content-Disposition: attachment; filename="rtf-body.rtf"
e1xydGYxXGFuc2lcYW5zaWNwZzEyNTJcZnJvbXRleHQgXGZiaWRpcyBcZGVmZjB7XGZvbnR0YmwN
CntcZjBcZnN3aXNzIEFyaWFsO30NCntcZjFcZm1vZGVybiBDb3VyaWVyIE5ldzt9DQp7XGYyXGZu
aWxcZmNoYXJzZXQyIFN5bWJvbDt9DQp7XGYzXGZtb2Rlcm5cZmNoYXJzZ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KaHR0cDovL21zZG4ubWljcm9zb2Z0LmNvbS9lbi11cy9saWJyYXJ5LzB4eTU5
d3R4LmFzcHhccGFyDQpccGFyDQpvciBmb3IgYSBiYXNpYyBvdmVydmlldyBzZWU6XHBhcg0KXHBh
cg0KaHR0cDovL2Jsb2dzLnRlbGVyaWsuY29tL2p1c3R0ZWFtL3Bvc3RzLzEzLTA0LTAyL3VuZGVy
c3RhbmRpbmctbmV0LWdhcmJhZ2UtY1xwYXINCm9sbGVjdGlvblxwYXINClxwYXINClJlZ2FyZHMs
XHBhcg0KQ2hyaXNccGFyDQpccGFyDQpDaHJpcyBCdXJyb3dzXHBhcg0KQ0ZCIFNvZnR3YXJlXHBh
cg0KaHR0cDovL1xwYXINClxwYXINClxwYXINCi0tLS1ccGFyDQpUbyB1bnN1YnNjcmliZSwgc2Vu
ZCBhIG1lc3NhZ2Ugd2l0aCBib2R5ICJTSUdOT0ZGIEJMQUNLQk9YIiB0byBMSVNUU0VSVkBMSVNU
Uy5PQkVST04uQ0hcfX0AOiBC
----boundary-LibPST-iamunique-1086979690_-_---
Received on Sat Aug 17 2013 - 01:06:05 UTC

This archive was generated by hypermail 2.3.0 : Thu Sep 26 2013 - 06:29:50 UTC