Gnome::Vfs::DirectoryHandle::close segfaults



Hi,

whenever I explicitly close() a DirectoryHandle, the program segfaults.

Here's how I used it:

<code>
// locally in some member function:
DirectoryHandle dir;
dir.open("<some_path>");
bool has_next = true;

while (has_next) {
   Glib::RefPtr<FileInfo> finfo
	= dir.read_next(has_next);
   // ...
}

// up to this point everything's just fine

dir.close(); // this call segfaults
</code>

Right now, I just never close the DirectoryHandle.
Any ideas?

Regards,
Matthias




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]