Questions tagged [garbage]

Garbage, refers to objects, data, or other regions of the memory of a computer system (or other system resources), which will not be used in any future computation by the system, or by a program running on it.

From a programming point-of-view, garbage is data that has been placed in random access memory space obtained from the operating system that is no longer needed. Freeing the space for reuse is called "garbage collecting".

448 questions
0
votes
1 answer

android collapses so we restart everyday

Guys I have an application that works on the tablet.That is a smart house application.I root the tablet because I want to forbid the customers to use anything else but application on the tablet.Application is always visible and working non stop on…
Ali Yılmaz
  • 93
  • 3
  • 12
0
votes
2 answers

Garbage Collector and Core Foundation

I wrote a method for load Image into CALayer. This is the code: - (CGImageRef)loadImage:(NSString*)path { // Get data image CGImageRef image = NULL; NSData *data = [NSData dataWithContentsOfFile:path]; …
Fernando
  • 21
  • 2
0
votes
0 answers

Garbage Collection in the JVM

I was wondering when you remove a node in a linked list, does the garbage collection immediately remove it or does it get accumulated in a buffer which then removes it later on after it gets capped? This is in relation to running in the JVM. Thanks…
Salman Salman
  • 207
  • 1
  • 11
0
votes
0 answers

java - when does the garbage collector run

I have some difficulties to understand how does the garbage collector (GC) operated. What I've understood is that when an object "looses" its references, the GC destroys it to free the memory. I've also read that nobody knows when it will run, but…
ardayigit
  • 167
  • 2
  • 17
0
votes
3 answers

C++ Multidimensional array program shows garbage value in output

I am writing this simple code for setting a matrix ourselves and displaying it. When I execute this program, it gives garbage value on the first row. How is that? Any errors in my program ? #include using namespace std; void…
SRT
  • 13
  • 5
0
votes
0 answers

High GC pasue time in GC logs

THIS QUESTION IS NOT ABOUT FULL GC. THIS IS ABOUT PARTIAL GC TAKING HIGH real TIME in cleaning young gen. I have an ongoing issue were i see VERY high GC pause time for minor GC as well. Thought the user time and sys time are very low but the real…
Nayan Sonthalia
  • 237
  • 1
  • 4
  • 22
0
votes
2 answers

How to delete a dynamic array of objects with pointers to other objects (C++)

Long story short, I have to code a hashtable using linear hashing in C++ for university. The hashtable works, but the ressources are not being freed which is an issue, especially that the unit test tests the table with 100k+ values and the garbage…
cookiefier
  • 29
  • 1
  • 8
0
votes
3 answers

String literal with toCharArray() producing garbage in Java

I wanted to create a char array of the alphabet. I looked at this post: Better way to generate array of all letters in the alphabet which said this: char[] alphabet = "abcdefghijklmnopqrstuvwxyz".toCharArray(); So in my code I have: public class…
Deersfeet
  • 61
  • 1
  • 10
0
votes
1 answer

A possible method to completely free memory in TCL?

Is there a way to completely free memory in TCL, meaning to reallocate it back to the operating system without closing the tclsh.85 process??
0
votes
1 answer

Using AFNetworking getting Garbage at end

I have integrated latest framework of afnetworking but when I try to call the API using this getting Garbage at end. error message, because of invalid JSON response. Error Domain=NSCocoaErrorDomain Code=3840 "Garbage at end."…
Ram Ram
  • 300
  • 3
  • 7
0
votes
1 answer

K&R Exercise 1-19 unexpected and inconsistent output

Been working on K&R exercise 1-19: Write a program that reverses its input a line at a time. Wrote the following program: #include #define MAXLINE 1000 main () { int c, x, y, z; char ip[MAXLINE]; char ln[MAXLINE]; char…
0
votes
2 answers

Getting garbage when trying to write to binary file

I'm struggling with binary files. I have the following class: class __attribute__((__packed__)) FileEntry { unsigned char filename[8]; unsigned char extension[3]; unsigned char type; unsigned char reserved; unsigned char…
FrankTominc
  • 119
  • 1
  • 10
0
votes
1 answer

Akka Actor message memory and Garbage Collection

Is the following statement correct: when an Actor receives a message, after completing the pattern-matched function, the message goes out of scope and the message is garbage collected?
kliew
  • 3,073
  • 1
  • 14
  • 25
0
votes
1 answer

Input from file producing garbage

I am trying to make a program keeping track of average temperatures and rainfall. I have a text file with four integers per line (each line represents a day), and I want to read one line at a time and deal with each of the variables per day. The…
Andreas BH
  • 9
  • 2
  • 6
0
votes
2 answers

Does setting an object to null result in the C# garbage collector freeing the memory it took up?

I have a method that gets called many times, repeatedly. public FilesCollection loadCollectionFromDirectory(string directory) { string errorMessage; FilesCollection collection = new…
HandleThatError
  • 598
  • 7
  • 29