J
J.K. Baltzersen
To whomever it may concern:
I am using MS Visual C++ 6.0.
I have a process A which instantiates an object C.
At a later point the process A creates the thread B.
The thread B has access to the object C.
Because the user cancels the "process" which the thread B handles, the
thread B is stopped by the use of TerminateThread.
A bit later on I try to access member variables in the object B, the
purpose of this being replacing some files with backup versions of
these same files. These member variables are of type std::string.
Let's call these m, n, and o. When I access m, there seems to be no
problem. However, when I access n, the debugger hangs, apparently
infinitely.
I tried replacing std::string with char*, but that only resulted in
the problem showing up when I accessed m.
I want to be able to run TerminateThread on the thread B without my
object C being corrupted.
I would greatly appreciate any tips that would lead to my being able
to do so.
Thank you very much in advance for any help.
Best regards,
J.K. Baltzersen
I am using MS Visual C++ 6.0.
I have a process A which instantiates an object C.
At a later point the process A creates the thread B.
The thread B has access to the object C.
Because the user cancels the "process" which the thread B handles, the
thread B is stopped by the use of TerminateThread.
A bit later on I try to access member variables in the object B, the
purpose of this being replacing some files with backup versions of
these same files. These member variables are of type std::string.
Let's call these m, n, and o. When I access m, there seems to be no
problem. However, when I access n, the debugger hangs, apparently
infinitely.
I tried replacing std::string with char*, but that only resulted in
the problem showing up when I accessed m.
I want to be able to run TerminateThread on the thread B without my
object C being corrupted.
I would greatly appreciate any tips that would lead to my being able
to do so.
Thank you very much in advance for any help.
Best regards,
J.K. Baltzersen