Gnome::Vfs::DirectoryHandle::close segfaults
Matthias Kaeppler <[email protected]> Fri, 15 Jul 2005 21:06:43 +0200
| Newsgroups | gmane.comp.gnome.gnomemm |
|---|---|
| Message-ID | <[email protected]> |
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