Home » Developing U++ » U++ TheIDE and Library: Releases and ChangeLogs » Hopefully fixed "Writes to freed blocks" bug in ide - and warning (quiz)
Re: Hopefully fixed "Writes to freed blocks" bug in ide - and warning (quiz) [message #12287 is a reply to message #12286] |
Tue, 23 October 2007 18:08 |
|
mirek
Messages: 13976 Registered: November 2005
|
Ultimate Member |
|
|
mdelfede wrote on Tue, 23 October 2007 11:50 |
luzr wrote on Tue, 23 October 2007 17:41 |
Nope. But it returns a reference. However, .At invalidates references to Vector.... So if the left side of statement is evaluated before the right side, you have "free block overwrite"...
Mirek
|
Uhmmm... what is the reason of invalidating the ref ? At() isn't the same as operator [], for array ?
|
No, it can resize the array if you use i >= GetCount.
Quote: |
BTW, I was thinkin' about it yesterday.... why did you use the pick_ stuff instead of something like a pimpl object with copy-on-write ? It's not feasible ?
|
IMO/IME, shared ownership is the root of evil At least in C++.
Mirek
[Updated on: Tue, 23 October 2007 18:08] Report message to a moderator
|
|
|
|
|
Hopefully fixed "Writes to freed blocks" bug in ide - and warning (quiz)
By: mirek on Mon, 22 October 2007 18:51
|
|
|
Re: Hopefully fixed "Writes to freed blocks" bug in ide - and warning (quiz)
By: mdelfede on Tue, 23 October 2007 15:11
|
|
|
Re: Hopefully fixed "Writes to freed blocks" bug in ide - and warning (quiz)
By: mirek on Tue, 23 October 2007 16:52
|
|
|
Re: Hopefully fixed "Writes to freed blocks" bug in ide - and warning (quiz)
By: mdelfede on Tue, 23 October 2007 17:31
|
|
|
Re: Hopefully fixed "Writes to freed blocks" bug in ide - and warning (quiz)
By: mirek on Tue, 23 October 2007 17:41
|
|
|
Re: Hopefully fixed "Writes to freed blocks" bug in ide - and warning (quiz)
By: mdelfede on Tue, 23 October 2007 17:50
|
|
|
Re: Hopefully fixed "Writes to freed blocks" bug in ide - and warning (quiz)
By: mirek on Tue, 23 October 2007 18:08
|
|
|
Re: Hopefully fixed "Writes to freed blocks" bug in ide - and warning (quiz)
By: mdelfede on Tue, 23 October 2007 18:20
|
|
|
Re: Hopefully fixed "Writes to freed blocks" bug in ide - and warning (quiz)
By: mirek on Tue, 23 October 2007 19:45
|
|
|
Re: Hopefully fixed "Writes to freed blocks" bug in ide - and warning (quiz)
By: mdelfede on Tue, 23 October 2007 21:47
|
Goto Forum:
Current Time: Wed May 08 19:20:59 CEST 2024
Total time taken to generate the page: 0.02104 seconds
|