On Jul 30, 2010, at 8:29 , arborges wrote:
"libprotobuf FATAL /usr/local/include/google/protobuf/
repeated_field.h:
637] CHECK failed: (index) < (size()): "
This means you are accessing an index past the end of the array. This
is almost certainly a bug in your code.You should attach to this with
a debugger to look at the entire stack trace to see where your bug is:
const surroundsound::Arquivo::L1_Cena& cena_sonora =
projeto.cena(idxCena);
numObj = cena_sonora.objetosonoro_size();
for(int k = 0; k < numObj; k++)
{
const surroundsound::Arquivo::L1_ObjetoSonoro&
objeto_sonoro = cena_sonora.objetosonoro(k);
I'm guessing this is happening because of this line. This code looks
okay to me, since you check that k < _size(). Are you modifying this
list somewhere in your code at the same time? Or could you have memory
corruption somewhere? Try using valgrind if you might have memory
corruption. Good luck,
Evan
--
Evan Jones
http://evanjones.ca/
--
You received this message because you are subscribed to the Google Groups "Protocol
Buffers" group.
To post to this group, send email to proto...@googlegroups.com.
To unsubscribe from this group, send email to
protobuf+unsubscr...@googlegroups.com.
For more options, visit this group at
http://groups.google.com/group/protobuf?hl=en.