HI,

There are two classes A and B as follows

class A
{

public:

update_host(CString hostname);

}

class B
{

public:

get_hostname();
}

The get_hostname() gets the hosts name and then calls update_host as folows

A aobject;
aobject.update_host(CString hostname);


now this is what i do in update_host(CString hostname)

update_host(CString hostname)
{

m_hostname=hostname;
UpdateData(FALSE) //to update the value in the edit box.

}

now,when i execute it,i get the error saying

Debug assertion failed.
file:wincore.cpp
line:3095.

Please help in this regards.

Thank you.