Code::Blocks Forums

Developer forums (C::B DEVELOPMENT STRICTLY!) => Development => CodeCompletion redesign => Topic started by: rickg22 on January 30, 2006, 04:38:30 am

Title: Codecompletions relatively-new crash fixed! :D
Post by: rickg22 on January 30, 2006, 04:38:30 am
It was something stupid. I had placed the critical sections in the heap (each with one tokens store). IN THEORY this shouldn't be any problem because the usage would keep the critical section in memory, but hey, this is Windows(TM).

I put back the critical section to where it belonged, and voila.
Title: Re: Codecompletions relatively-new crash fixed! :D
Post by: Ceniza on January 30, 2006, 01:24:36 pm
I have my doubts...

Maybe what you had before was a bunch of critical sections and now you're just replacing it by a single one.

Anyway, if that makes the crashes go away... it's good then :)
Title: Re: Codecompletions relatively-new crash fixed! :D
Post by: thomas on January 30, 2006, 01:40:55 pm
... and it still deadlocks in the case of an exception being thrown.

I still think that using automatic lockers is a really good idea, it avoids that problem alltogether, and it is faster, too.
Title: Re: Codecompletions relatively-new crash fixed! :D
Post by: rickg22 on January 30, 2006, 04:55:39 pm
exceptions? :( What exceptions?