<div class="gmail_quote">On Sat, Jul 21, 2012 at 12:26 PM, Florian <span dir="ltr"><<a href="mailto:flo.44@gmx.de" target="_blank">flo.44@gmx.de</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div id=":30p">I made it to step with gdb now in VecCreate(). The problem is inside the VecCreate<br>
function the new created vector vec has all the adresses set. But when I'm stepping<br>
back in my function the addresses are all 0x0.<br></div></blockquote><div><br></div><div>Let VecCreate finish.</div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div id=":30p">
<br>
Another question is, what happens with my created vector. I mean I create a Object<br>
with Vec v and inside the VecCreate function the addres of my object v is first set<br>
to PETSC_NULL and later to the Vec which is created inside the VecCreate function.<br>
It seems like I never could destroy my created vector. Can somebody explain this to me?</div></blockquote></div><br><div>The new object is created, then your pointer is made to point at the new object.</div>