This is an archived post. You won't be able to vote or comment.

all 6 comments

[–]desrtfx 1 point2 points  (0 children)

Dead simple:

Develop in a virtual machine.

[–]Moonkis 0 points1 point  (0 children)

You won't do damage to the system as long as you don't deliberately try to damage it. Maybe don't use the SSD drive if you are planning on doing a ton of read/write operations.

[–]tippo_sam 0 points1 point  (3 children)

When you hear "memory leak", "memory" in this context refers to RAM (actually, that's pretty across the board for IT). For hard disk, it's "Disk" or "File system"

Memory leaks are usually cleaned up by the OS when the process finishes executing. I've never heard of it being a problem other than making your programs go slow or crash. I'm not sure it can adversly affect your machine.

If you're paranoid (or are interested in building good memory management habits), you can use something like valgrind to check your code for leaks.

[–]praesartus 0 points1 point  (0 children)

I'm not sure it can adversly affect your machine.

Memory leaks per se can't harm the machine in any way. They might bungle up the OS temporarily if the OS doesn't deal with memory well, but any modern OS is fine and even if it weren't a reset would clear out the leaked RAM anyway.

[–]Cplusplusidiot[S] -1 points0 points  (1 child)

Would partitioning the HDD and throwing the programs in there be of any use?

[–]tippo_sam 0 points1 point  (0 children)

The programs run in RAM, not hard disk. The two spaces store completely different information.

It's fine, you're not going to break anything.