User forums > Help

How to use gdb in C::B?

<< < (5/6) > >>

Urxae:

--- Quote from: selles on November 26, 2005, 02:01:29 am ---
--- Code: ---    ...
  seletorMapa = cena->createOctTreeTriangleSelector(nivelMalha->getMesh(0), nivelNodo, 128); //the chash is in that line!!!
    ...

--- End code ---

--- End quote ---

--- Quote from: selles on November 28, 2005, 04:15:31 pm ---I have added the pointer in watch, and in exact moment of the error, the values are:

seletorMapa = (struct ITriangleSelector*) 0xbaadf00d
nivelMalha = (struct IAnimatedMesh*) 0x0
nivelNodo = (struct ISceneNode*) 0x0

--- End quote ---

Well, there's your problem: your line includes nivelMalha->getMesh(0), but nivelMalha is 0x0. This means you're dereferencing a null pointer, which is pretty much never a good thing to do ;).


--- Quote from: Seth Jackson on November 28, 2005, 04:43:55 pm ---Ok are nivelMaha and nivelNodo supposed to be 0? That is all I can think of unless selectorMapa is supposed to be 0.

--- End quote ---

As seen above, at the very least nivelMalha isn't supposed to be.

selles:
 no understand..

the application is right, it is compiling, the mesh appear usually, how that is possible?   :?

thanks,

Selles

sethjackson:

--- Quote from: selles on November 28, 2005, 06:45:19 pm --- no understand..

the application is right, it is compiling, the mesh appear usually, how that is possible?   :?

thanks,

Selles



--- End quote ---

You don't understand? Or do I misunderstand. :)

selles:
no, no Seth,

I made a joke ..I wanted to say that am working a lot  :lol: :lol: :lol:

Selles

sethjackson:

--- Quote from: selles on November 28, 2005, 07:35:34 pm ---no, no Seth,

I made a joke ..I wanted to say that am working a lot  :lol: :lol: :lol:

Selles


--- End quote ---

Haha  I get it now. :lol:

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version