|
|
Comments and Discussions
|
|
 |

|
Hello,
First, excellet code
I use your shared memory in a program with 2 threads. At one moment, I stop the thread and I try to free the shared memory so :
if (_SHM != NULL)
{
if ( _SHM->ExistValue ( _SHMName ) )
_SHM->DeleteValue (_SHMName);
delete _SHM;
_SHM = NULL;
}
I must delete the value because when I want to run the thread for a second time I use the same name but with a different size, so If I try to add the value, it give an error (of course )
The problezm is, when I tried to delete the valur, I have an excception error on the line
MoveMemory(moveTo,moveFrom,dwMoveLength);
Can you help me please ???
Fred, idea is the begining
|
|
|
|
 |
|
|
General News Suggestion Question Bug Answer Joke Rant Admin
|
Share variables in the shared memory across processes
| Type | Article |
| Licence | |
| First Posted | 6 Nov 2001 |
| Views | 140,086 |
| Downloads | 3,928 |
| Bookmarked | 76 times |
|
|