Click here to Skip to main content
15,922,325 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: delete pointer. Pin
toxcct13-Jun-06 21:51
toxcct13-Jun-06 21:51 
GeneralRe: delete pointer. Pin
see me13-Jun-06 22:08
see me13-Jun-06 22:08 
GeneralRe: delete pointer. Pin
toxcct13-Jun-06 22:10
toxcct13-Jun-06 22:10 
GeneralRe: delete pointer. Pin
see me13-Jun-06 22:16
see me13-Jun-06 22:16 
GeneralRe: delete pointer. Pin
toxcct13-Jun-06 22:19
toxcct13-Jun-06 22:19 
GeneralRe: delete pointer. Pin
Viorel.13-Jun-06 22:23
Viorel.13-Jun-06 22:23 
GeneralRe: delete pointer. Pin
see me13-Jun-06 22:29
see me13-Jun-06 22:29 
AnswerRe: delete pointer. Pin
jhwurmbach21-Jun-06 22:59
jhwurmbach21-Jun-06 22:59 
Ajeesh c v wrote:
am initializing the pointer from thread...adn try to delete it from another thread


May one thread still be accessing the memory you just deleted?
Maybe using smart-pointers (like those from boost.org)[^]can help you?
Or at least an object which can delete itself via a member function?



"We trained hard, but it seemed that every time we were beginning to form up into teams we would be reorganised. I was to learn later in life that we tend to meet any new situation by reorganising: and a wonderful method it can be for creating the illusion of progress, while producing confusion, inefficiency and demoralisation."

-- Caius Petronius, Roman Consul, 66 A.D.

GeneralRe: delete pointer. Pin
Cedric Moonen13-Jun-06 22:10
Cedric Moonen13-Jun-06 22:10 
GeneralRe: delete pointer. Pin
see me13-Jun-06 22:21
see me13-Jun-06 22:21 
GeneralRe: delete pointer. Pin
Cedric Moonen13-Jun-06 21:54
Cedric Moonen13-Jun-06 21:54 
AnswerRe: dlete pointer. [modified] Pin
Viorel.13-Jun-06 21:48
Viorel.13-Jun-06 21:48 
GeneralRe: delete pointer. Pin
see me13-Jun-06 22:05
see me13-Jun-06 22:05 
GeneralRe: delete pointer. Pin
toxcct13-Jun-06 22:12
toxcct13-Jun-06 22:12 
GeneralRe: delete pointer. Pin
Cedric Moonen13-Jun-06 22:13
Cedric Moonen13-Jun-06 22:13 
GeneralRe: delete pointer. Pin
Viorel.13-Jun-06 22:16
Viorel.13-Jun-06 22:16 
AnswerRe: dlete pointer. Pin
John R. Shaw13-Jun-06 21:50
John R. Shaw13-Jun-06 21:50 
AnswerRe: dlete pointer. Pin
Hamid_RT13-Jun-06 22:10
Hamid_RT13-Jun-06 22:10 
GeneralRe: delete pointer. Pin
see me13-Jun-06 22:27
see me13-Jun-06 22:27 
GeneralRe: delete pointer. Pin
Hamid_RT13-Jun-06 22:51
Hamid_RT13-Jun-06 22:51 
Questionhow to know the values for event masks Pin
thathvamsi13-Jun-06 21:12
thathvamsi13-Jun-06 21:12 
AnswerRe: how to know the values for event masks Pin
Viorel.13-Jun-06 21:19
Viorel.13-Jun-06 21:19 
GeneralRe: how to know the values for event masks Pin
thathvamsi13-Jun-06 22:37
thathvamsi13-Jun-06 22:37 
AnswerRe: how to know the values for event masks Pin
Hamid_RT13-Jun-06 22:20
Hamid_RT13-Jun-06 22:20 
GeneralRe: how to know the values for event masks Pin
thathvamsi13-Jun-06 22:36
thathvamsi13-Jun-06 22:36 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.