Is CString thread safe ?

  • Follow


Does anyone know if CString is thread safe ?
Is it safe to operate a CString object in two threads
at same time ? even if one thread is writting to the
CString object while another is reading it, is it safe
and without causing memory corrupted ?

Any help will be appreciated,

David



0
Reply davidxu (2) 8/7/2003 1:36:32 AM

I doubt it.  I seem to recall reading someplace that it was not.  Check the
MSDN docs for CString.

    WTH

"David" <davidxu@viatech.com.cn> wrote in message
news:%2303VOPIXDHA.1680@tk2msftngp13.phx.gbl...
> Does anyone know if CString is thread safe ?
> Is it safe to operate a CString object in two threads
> at same time ? even if one thread is writting to the
> CString object while another is reading it, is it safe
> and without causing memory corrupted ?
>
> Any help will be appreciated,
>
> David
>
>
>


0
Reply spamsucks (94) 8/7/2003 1:36:37 AM


David wrote:
> 
> Does anyone know if CString is thread safe ?
> Is it safe to operate a CString object in two threads
> at same time ? even if one thread is writting to the
> CString object while another is reading it, is it safe
> and without causing memory corrupted ?
> 
> Any help will be appreciated,
> 
> David

Nope.

--
Scott McPhillips [VC++ MVP]
0
Reply scottmcp (343) 8/7/2003 2:19:28 AM

2 Replies
194 Views

(page loaded in 0.05 seconds)


Reply: