Weird error with member variables?
- From: "Josh McFarlane" <darsant@xxxxxxxxx>
- Date: 22 Jul 2005 11:56:58 -0700
Ok, I'm stumped. I'm getting an access violation with the following
code, but no clue why.
Definition:
class CRoughView : public CScrollView
{
protected:
CRoughView();
DECLARE_DYNCREATE(CRoughView)
//...Overwritten functions...
public:
void SetStepDistance(float NodeStepDistance)
{
fDistance = NodeStepDistance;
}
private:
float fDistance;
};
Nothing to complicated right? A simple float variable, and a simple
variable assigment.
However, when I call the SetStepDistance function, I get an access
violation writing location 0x000002ac in debug mode. Anyone have any
clue why I'm unable to define / touch this variable?
Thanks,
Josh McFarlane
.
- Follow-Ups:
- Re: Weird error with member variables?
- From: Ajay Kalra
- Re: Weird error with member variables?
- Prev by Date: Re: CString hex value to CString decimal value
- Next by Date: Re: Weird error with member variables?
- Previous by thread: CString hex value to CString decimal value
- Next by thread: Re: Weird error with member variables?
- Index(es):
Relevant Pages
|