[ wxwindows-Patches-1857581 ] wxLog with log repetition count hangs application in linux

SourceForge.net noreply at sourceforge.net
Wed Jan 2 13:17:32 PST 2008


Patches item #1857581, was opened at 2007-12-24 16:16
Message generated for change (Comment added) made by vadz
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=309863&aid=1857581&group_id=9863

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: Common
Group: None
>Status: Closed
>Resolution: Fixed
Priority: 8
Private: No
Submitted By: Rodolfo Schulz de Lima (rodlima)
Assigned to: Nobody/Anonymous (nobody)
Summary: wxLog with log repetition count hangs application in linux

Initial Comment:
When running in linux, the critical section used to guard against simultaneous access of internal wxLog variables blocks because it is used twice in the same thread, hence the second call is blocked. I think that in Windows the critical section allows it to be reentered in the same thread, but not in linux.

I've rearranged the locking, and now it works in linux, please consider this being committed to svn.

----------------------------------------------------------------------

>Comment By: Vadim Zeitlin (vadz)
Date: 2008-01-02 22:17

Message:
Logged In: YES 
user_id=71618
Originator: NO

Thanks for noticing this bug!

I think a better/safer solution is to introduce another function which
does the same thing as LogLastRepeatitionCountIfNeeded() but can be called
when the CS is already locked and this is what I did (in both 2.8 and
trunk).

Could you please test the latest svn and let me know if you still have any
problems? TIA!

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=309863&aid=1857581&group_id=9863




More information about the wx-dev mailing list