<div class="gmail_quote">On Tue, Jan 3, 2012 at 06:41,  <span dir="ltr">&lt;<a href="mailto:Johannes.Huber@unibas.ch">Johannes.Huber@unibas.ch</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
The first assembly works well, and I would agree, if the first assmebly crashed. However, it&#39;s the second assembly call and in between those two calls, all I&#39;m doing is viewing the vector.</blockquote></div><br><div>
Use a debugger to set a breakpoint in VecSetValues(); maybe starting after your first assemble. Also try Valgrind, it could be memory corruption.</div><div><br></div><div>You can also break in the first VecAssemblyBegin and do</div>
<div><br></div><div>(gdb) p &amp;vec-&gt;stash.insertmode</div><div>$1 = (InsertMode *) 0xADDRESS</div><div>(gdb) wat *$1</div><div>Hardware watchpoint 3: *$1</div><div>(gdb) c</div><div>... breaks when insertmode is modified for any reason.</div>