[mono-vb] Microsoft.VisualBasic.Devices.ComputerInfo.TotalPhysicalMemory

Rolf Bjarne Kvinge rolflists at ya.com
Wed Mar 16 05:15:23 EDT 2011



In this case it's better to c&p than to add a dependency on




From: Andrew Benz [mailto:andorbal at gmail.com] 
Sent: martes, 15 de marzo de 2011 23:27
To: Rolf Bjarne Kvinge
Cc: mono-vb at lists.ximian.com
Subject: Re: [mono-vb]


I don't know if it's in the MS .NET runtime, but I know it's in Mono's
implementation of the MemoryCache object.  It's an internal method, though.
I can take a crack and getting you a patch tomorrow (I've got class
tonight), but I've got two questions: first, are you averse to taking a
dependency on System.Diagnostics and second, the functionality I'd like to
use currently exists in the main Mono class library but is not publicly
accessible.  Is there a way of sharing that code or is copy & paste good




On Tue, Mar 15, 2011 at 4:55 PM, Rolf Bjarne Kvinge <rolflists at ya.com>



>From what you tell it can be used. I wasn't able to find
System.Runtime.Caching.MemoryCache.DetermineTotalPhysicalMemory on MSDN


In any case I'd be happy to commit any patches you may have.




From: mono-vb-bounces at lists.ximian.com
[mailto:mono-vb-bounces at lists.ximian.com] On Behalf Of Andrew Benz
Sent: lunes, 14 de marzo de 2011 19:30
To: mono-vb at lists.ximian.com
Subject: [mono-vb]


I just ran into an issue where a library that I'm trying to use makes use of
the Microsoft.VisualBasic.Devices.ComputerInfo.TotalPhysicalMemory, which is
currently throwing a NotImplementedException.  I'm guessing that this method
is supposed to return the save value as
System.Runtime.Caching.MemoryCache.DetermineTotalPhysicalMemory, which is
implemented in the main mono runtime.  Could that functionality be re-used
in the TotalPhysicalMemory property?



No virus found in this message.
Checked by AVG - www.avg.com
Version: 10.0.1204 / Virus Database: 1498/3508 - Release Date: 03/15/11



No virus found in this message.
Checked by AVG - www.avg.com
Version: 10.0.1204 / Virus Database: 1498/3509 - Release Date: 03/15/11

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.ximian.com/pipermail/mono-vb/attachments/20110316/d6e32e49/attachment-0001.html 

More information about the Mono-vb mailing list