[Gtk-sharp-list] GIO# FileAdapter.Copy and FileAdapter.Move - System.NullReferenceException Issue with my installation?
daniel.saul at gmail.com
Sat Jul 18 12:47:24 EDT 2009
I recently reinstalled my system and subsequently downloaded the latest SVN
of gtk-sharp. I am curious if this is an error with my installation or with
public static void Main(string args)
File file1 =
File file2 =
Steps to replicate:
1. Create a file on your desktop called "testfile".
2. Run the program.
Unhandled Exception: System.NullReferenceException: Object reference not set
to an instance of an object
at GLib.FileAdapter.Copy (File destination, FileCopyFlags flags,
GLib.Cancellable cancellable, GLib.FileProgressCallback progress_callback)
[0x0000e] in /home/dan/gtk-sharp/gio/generated/FileAdapter.cs:1742
at GIOTest.MainClass.Main (System.String args) [0x0001b] in
The application was terminated by a signal: SIGHUP
If I run this I recieve a System.NullReferenceException. I know the File
objects themselves are not null as they print out fine with
Console.WriteLine and I can access the Parent property without any problem.
It would seem that it is just the FileAdapter.Copy and FileAdapter.Move
methods that error on me. I have attempted to create a Cancellable object
and an empty FileProgressCallback function to pass to the method in case
that was the cause, with no effect. I would appreciate a second opinion if
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Gtk-sharp-list