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 » U++ Library support » U++ Library : Other (not classified elsewhere) » Writes to freed blocks detected
Re: Writes to freed blocks detected [message #20068 is a reply to message #20050] Mon, 16 February 2009 09:14 Go to previous messageGo to previous message
mirek is currently offline  mirek
Messages: 14262
Registered: November 2005
Ultimate Member
darthspawn wrote on Fri, 13 February 2009 11:22

I have this error:

PANIC: Writes to freed blocks detected

The project is a recorder that receive from a socket 300-400 string every second.

I don't know how to resolv this thing. Thank you!

Sam

Sorry, I wrong the section. Could a moderator move the topic? thanks!


Well, it means what it says. Somewhere your code is writing to memory blocks that are already freed. In debug mode, U++ sets unique pattern to memory areas that are not allocated. During allocation this pattern is checked - if it is corrupted, it means that in the time between deallocation of block and its realocation, something has written a data to the block.

This might be result of either "dangling pointer" or some bulk routine going out of range (e.g. memset with wrong parameters).

You can get the first clue of what is wrong by checking the log - the data in wrong block are dumped there (Alt+L in TheIDE).

Mirek
 
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: More GLCtrl
Next Topic: BarPane::GetPaneSize( b, INT_MAX ) fails?
Goto Forum:
  


Current Time: Sat Jun 28 06:15:08 CEST 2025

Total time taken to generate the page: 0.04266 seconds