access violation Problem

hello,

i have a 2 classes each have a couple of functions and variable

the problem is: when i want to access a variable from class B inside a function in class A

it come up with Unhandled Exception says:

unhandled exception in "program name": 0xC0000005: Access Violation

<code>

class A

{

////////

B* p_channel;

/////////

inline BOOL StartIVR(){ p_channel->m_started = TRUE; // error occur here}

///////

}

class B

{

/////////

BOOL m_started ;

///////

}

</code>

also any other access to any member in class B will result with the same exception

plz if anybody have any idea abt what's goin' on with this code, feel free to tell me :=)

thnx alot for ur time and concern

[847 byte] By [Singersinger] at [2007-12-24]
# 1

Do you ever initialize the p_channel variable to point to an instance of B class ?

MikeDanes at 2007-8-31 > top of Msdn Tech,Visual C++,Visual C++ Language...