![]() |
|
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
Hobbyist Programmer
Join Date: Feb 2006
Posts: 155
Rep Power: 3
![]() |
memory - shmid!
so what I did is while coding, I didnt destroy the memory I obtained (using shmget etc you know)
now when I type ipcs, i can see all of them listed... how do i destroy them? two problems 1) I dont want to do it one by one by typing ipcrm -m shmid. There are quite a few of them 2) Even that wont work, I suspect it has something to do with how it still might be "attached" Any simple and plain solution? |
|
|
|
|
|
#2 | |
|
Professional Programmer
Join Date: May 2006
Location: UK - London
Posts: 333
Rep Power: 3
![]() |
I think you can destroy anything in RAM by restarting the computer, or pulling the wire out of the wall (latter recommended
)PS just kidding about pulling the wire out of the wall
__________________
Quote:
|
|
|
|
|
|
|
#3 |
|
Hobbyist Programmer
Join Date: Feb 2006
Posts: 155
Rep Power: 3
![]() |
|
|
|
|
|
|
#4 |
|
Resident Grouch
![]() ![]() ![]() ![]() ![]() ![]() Join Date: Jun 2005
Posts: 6,453
Rep Power: 10
![]() |
Are you saying that the material that you have studied to produce these cababilites have failed to disclose to you the methods of returning borrowed resources when you have finished with them? Or, are you saying that you have failed to take advantage of them in the event of unanticiapted (by you) terminations?
I would suggest that you are correct in not accepting, as a solution, the termination of the whole dam' system's execution, however effective that may be. There could be something important going on. Kruptoff, take a few minutes and evaluate your responses. The fact that a guy didn't manage to get his dick in a girl at the appropriate moment is not germane, nor is the thought of being a rebel (going against established standards?). Some things, perish the thought, must conform or fail.
__________________
Abstraction doesn't make it impossible to write bad code; it makes it possible to write superior code. Contributor's Corner: Grumpy on C++ Exceptions DaWei on Pointers |
|
|
|
|
|
#5 | |
|
Hobbyist Programmer
Join Date: Feb 2006
Posts: 155
Rep Power: 3
![]() |
Quote:
but I wasnt doing that quite well earlier, as I was experimenting... to rephrase, my past is haunting me |
|
|
|
|
![]() |
| Bookmarks |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Heap vs. Stack memory | Eric the Red | C++ | 11 | Oct 24th, 2006 7:18 PM |
| When to use the new keyword in C++? | titaniumdecoy | C++ | 28 | Mar 16th, 2006 1:36 PM |
| Which area of memory does new use? | aznluvsmc | C++ | 11 | Nov 5th, 2005 8:37 AM |
| Pointers in C (Part II) | Stack Overflow | C | 2 | Apr 29th, 2005 11:39 AM |
| Pointers in C (Part I) | Stack Overflow | C | 4 | Apr 28th, 2005 8:03 PM |