Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
Home » Developing U++ » U++ Developers corner » Raster::Line segfaults ... sometimes. (Adding a static counter somehow fixes the issue (for me).)
Re: Raster::Line segfaults ... sometimes. [message #44091 is a reply to message #44068] Wed, 24 December 2014 12:18 Go to previous messageGo to previous message
mirek is currently offline  mirek
Messages: 13979
Registered: November 2005
Ultimate Member
rainbowsally wrote on Mon, 22 December 2014 08:04
Adding a static counter somehow fixed the issue (for me). And then considering that something might be choking on the cpu usage in this thread, I tried a 'usleep()' which also works, and seems to be more consistent.

I am multithreading in linux. You might not have this problem.

In uppsrc/Draw/Raster.cpp I was getting seg faults ("illegal memory access") so I put a counter in the function noted below. And just adding a static counter fixed the problem.


Please, such post is sort of useless. Look here

http://www.ultimatepp.org/www$uppweb$community$en-us.html

You are not giving me a single clue about what problem you have encountered.

(Just to check: Are you aware that you have to use Mutexes and such to serialize access to shared resources?)

Mirek
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Multithreaded Animated GIF
Next Topic: Sound in linux
Goto Forum:
  


Current Time: Mon May 13 12:22:17 CEST 2024

Total time taken to generate the page: 0.01584 seconds