multi-thread new/delete object



I have a class include some members with types like CString, UINT, BOOL. I
new it in Thread A, while delete it in Thread B. Currently there's no
problem. Can any expert tell me it is really OK?


.



Relevant Pages

  • Re: Wie programmiert man den Systray?
    ... CSystemTray::CSystemTray(HINSTANCE hInst, HWND hWnd, UINT uCallbackMessage, ... BOOL CSystemTray::RemoveIcon ... // variables in TimerFuncvia a reinterpret_cast in the static CALLBACK ...
    (microsoft.public.de.vc)
  • Re: Please help me pass an array from VBA to Perl and populate it. Newbie at wits end!
    ... an int is not necesarily 4 bytes. ... What a variant does is to partition ... BOOL DIST_FilterRecords(CString Sortflds, CString Flagfld); ...
    (comp.lang.perl.misc)
  • Re: _com_error information
    ... bool CDataBase::AddRecord(const CString &recordSet) ... in the calling function. ... an ADO recordset and Binding structure as members. ...
    (microsoft.public.data.ado)
  • Re: Reentrancy issue
    ... Given the change in the documentation, there is no reason to expect that ... Also, in checking the MFC source for use of %s, I found that indeed when CString is ... improper comparison of a BOOL could currently cause problems. ... it does not cause an error in real life. ...
    (microsoft.public.vc.mfc)
  • Re: Reentrancy issue
    ... Hmmm, that would seem to obligate you to respect all documentation, yet ... improper comparison of a BOOL could currently cause problems. ... it does not cause an error in real life. ... thing with the CString issue throughout this thread. ...
    (microsoft.public.vc.mfc)