help with error

when i run my program i get this error
http://postimg.org/image/r0jxz88bz/


here is proxy class
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29

class Proxy
{
public:
float minX,maxX,minY,maxY,minZ,maxZ;
Shape *parent;

Proxy(float minx = 0,float maxx = 0,float miny = 0,float maxy = 0,float minz = 0,float maxz = 0)
    {
    minX = minx;
    maxX = maxx;
    minY = miny;
    maxY = maxy;
    minZ = minz;
    maxZ = maxz;
    }

bool operator ==(Proxy p)
{
if(minX == p.minX && minY == p.minY && minZ == p.minZ && maxX == p.maxX && maxY == p.maxY && maxZ == p.maxZ){return true;}
else{return false;}
}


bool intersect(Proxy proxy)
	{
    return maxX > proxy.minX && minX < proxy.maxX && maxY > proxy.minY && minY < proxy.maxY && maxZ > proxy.minZ && minZ < proxy.maxZ;
    }
};


if u need to see any other part of code let me know.

when i run my program i get this error

A backtrace is not an error.

here is proxy class

Why would you give us code for the proxy class with a backtrace that shows a problem in your Shape constructor?

In your Shape constructor, the member proxy doesn't point to a valid object, so dereferencing it via proxy->parent results in undefined behavior.
sorry im confused i was trying show where program crashes. and i showed proxy class because that what i looked like it refrenced in the error.

if that not correct way how would i set the proxy.shape to current shape?
Topic archived. No new replies allowed.