Click to See Complete Forum and Search --> : Unmanaged works fine... managed does not.


ConfusedByWindows
June 16th, 2006, 10:57 AM
Hi all,

I have an application that was developed as unmanaged code. It worked fine. I then had to integrate it with some managed code, forcing it all to be managed and it fails - badly.

The essence of the problem appears to be the following...

class C_AfdxMsg
{
C_AfdxMsgComplete *m_Msg;
...
}
C_AfdxMsg::C_AfdxMsg()
{
...
m_Msg = new C_AfdxMsgComplete(&m_strMsgName[0]);
}


This used to create the memory the message. Now it seems to create it and then promptly lose the memory pointer. Naturally at this time it all falls apart.

Any help would be appreciated.
Confused.

ConfusedByWindows
June 19th, 2006, 09:17 AM
Found the error and fixed it.
It was completed unrelated to managed/unmanaged.
It's amazing how a weekends break can provide fresh perspective :)