this pointer getting screwed

Discussion in 'C++' started by Steven Wong, Oct 22, 2003.

  1. Steven Wong

    Steven Wong Guest

    hi,

    I've got a pthreaded app, which seg faults. Taking a look at the
    stack in gdb
    I notice the "this" pointer gets nulled in the stackframe where the
    seg fault occurs. Say its in an object, this really messes up things,
    since trying to
    access member variables will cause some big problems.

    What could cause the this pointer to get screwed up like that?

    TIA
    Steven Wong, Oct 22, 2003
    #1
    1. Advertising

  2. "Steven Wong" <> wrote in message
    news:...
    > hi,
    >
    > I've got a pthreaded app, which seg faults. Taking a look at the
    > stack in gdb
    > I notice the "this" pointer gets nulled in the stackframe where the
    > seg fault occurs. Say its in an object, this really messes up things,
    > since trying to
    > access member variables will cause some big problems.
    >
    > What could cause the this pointer to get screwed up like that?



    You probably invoked a member function using a null-pointer. Check the
    code that calls your function.

    hth
    --
    jb

    (replace y with x if you want to reply by e-mail)
    Jakob Bieling, Oct 22, 2003
    #2
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Richard Fagen
    Replies:
    0
    Views:
    404
    Richard Fagen
    Aug 28, 2003
  2. KK
    Replies:
    1
    Views:
    321
    Ken Cox [Microsoft MVP]
    Feb 23, 2005
  3. My site is screwed

    , Aug 25, 2005, in forum: ASP .Net
    Replies:
    8
    Views:
    411
    =?Utf-8?B?d2JyaWFud2hpdGU=?=
    Aug 29, 2005
  4. Richard

    screwed up in mozilla why?

    Richard, Jan 6, 2004, in forum: HTML
    Replies:
    3
    Views:
    397
    Richard
    Jan 6, 2004
  5. Irrwahn Grausewitz

    Pointer-to-array - screwed up my mind ...

    Irrwahn Grausewitz, Aug 31, 2003, in forum: C Programming
    Replies:
    6
    Views:
    345
    Deepak
    Sep 3, 2003
Loading...

Share This Page