[Mono-dev] disk size

mirek mirek at cnl.tuke.sk
Thu Dec 8 09:33:29 EST 2005


sorry - in previous email i posted the bad error output:

Unhandled Exception: System.TypeInitializationException: An exception 
was thrown by the type initializer for Mono.Unix.Syscall ---> 
System.DllNotFoundException: libMonoPosixHelper.so
in (wrapper managed-to-native) Mono.Unix.Syscall:_L_ctermid ()
in <0x00074> Mono.Unix.Syscall:.cctor ()--- End of inner exception stack 
trace ---

in <0x00000> <unknown method>
in <0x0001b> Mono.Unix.UnixDriveInfo:.ctor (System.String mountPoint)

mirek

original message:

hello

i tryed the solution about the gaining the ammount of disk size with 
using the Mono.Unix.UnixDriveInfo as jonathan wrote:

       Mono.Unix.UnixDriveInfo info = new UnixDriveInfo ("/");
       Console.WriteLine (" Disk Size: " + info.TotalSize);
       Console.WriteLine ("Free Space: " + info.AvailableFreeSpace);

the compilation was succesful, but when i try to run it, the result is 
this exception:

Unhandled Exception: System.ArgumentNullException: Argument cannot be null.
Parameter name: mountPoint
in <0x0007f> Mono.Unix.UnixDriveInfo:.ctor (System.String mountPoint)

whats wrong? something missing?

thanks

mirek

-- 
e-mail: mirek at host.sk
icq: 113397932
jabber: mirek_b at jabber.sk
homepage: http://www.intrak.sk/~binas

english:
Please avoid sending me Word or PowerPoint attachments.
See http://www.fsf.org/philosophy/no-word-attachments.html

slovak:
prosim, neposielajte mi prilohy vo formatoch .doc a .ppt (power point)
precitajte si http://www.fsf.org/philosophy/no-word-attachments.cs.html




More information about the Mono-devel-list mailing list