User forums > General (but related to Code::Blocks)

problems with filemanager plugin

<< < (2/6) > >>

Jenna:

--- Quote from: dmoore on March 02, 2014, 11:38:15 pm ---maybe needed gamin-devel when he compiled?

--- End quote ---
I don't think it compiles without gamin-devel, but I do not remember if I ever tried it.

dmoore:

--- Quote from: jens on March 02, 2014, 11:47:30 pm ---
--- Quote from: dmoore on March 02, 2014, 11:38:15 pm ---maybe needed gamin-devel when he compiled?

--- End quote ---
I don't think it compiles without gamin-devel, but I do not remember if I ever tried it.

--- End quote ---

It shouldn't but wonder if there are conflicting versions or something.

Jenna:
fam-devel would possibly also work (if it still exists Fedora only provides gamin these days), but libfam and libgamin can not be installed at the same time as far as I know.

frithjofh:
hi, and thanks for the replies,

it turns out, I have libgamin installed with version 0.1.10-4.4.1 . Also gamin-devel and libfam0-gamin both with the same version number.

These packages were installed prior to compiling and installing c::b.

When I try to deinstall libfam, the system complains about gamin-devel depending on it. So I left it as is.

Regards

frithjofh

frithjofh:
hi,

to whom it may concern:

I looked into the source and think that the problem is in the file dirctorymonitor.cpp in the destructor of DirMonitorThread. The hang definitively takes place on the line where Wait() is called on the wxThread.

So I read about wxThread, and after finding the hint that POSIX threads need the function TestDestroy() to be called on a wxThread object before Pause() or Delete() I assumed, that same might be true for Wait() on POSIX threads, so I added TestDestroy() to the conditional statement which triggers the Wait() command.

This certainly does it on Linux. The hangs or crashes are gone, no zombies left over.

I didn’t make a patch, because I am not very experienced in threads and want to put the decision up to the maintainer.

Regards

frithjofh

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version