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
0 answers

Arduino Due Producing Garbage Values

Its my first time working with Arduino Due ( or Any Arduino). So Last Nite I was Using My Arduino Due and It was working Fine. But When I used it Today, It Was Not Working so i tried to Check The Output To the Serial Monitor, I saw that its…
0
votes
1 answer

PHP: When does a global variable get removed from memory

My intention is to know that if a global variable can cause memory leaks. In my script I am declaring a resource as global variable. I kind of know that it should get destructed when the script ends. But is there a way a global variable can cause…
aravind
  • 45
  • 6
0
votes
0 answers

Recommended setting for Garbage collection in process intensive .net 4.5.2 WCF application

I have the following settings in one of my .Net4.5.2 WCF application. What correction is needed? My application processes 100…
Kamran Shahid
  • 3,954
  • 5
  • 48
  • 93
0
votes
1 answer

Garbage collection segfault in python code while `gc.garbage` is empty

The following code works fine and prints out an empty list (on python3.4): import gc # code interfacing with C and cython print(gc.garbage, flush=True) Appending this line to the very end makes it segfault: gc.collect() It seems like it is pure…
Krastanov
  • 6,479
  • 3
  • 29
  • 42
0
votes
2 answers

Understanding the results of analyzing my application

I have some memory problems, from another post I tried to analyze my project to understand my errors.... here are some things that I don't understand where's my error.... thanks 1: sqlite connection: sqlite connection…
ghiboz
  • 7,863
  • 21
  • 85
  • 131
0
votes
0 answers

Cout on char array in struct shows garbage at end after sending over socket

I have a struct which has a char array for text. This struct will be sent over UDP. On the sending side there is no problem in displaying the text. The text will in most cases be of length equal to the size of the char array. When using cout on the…
Amolbh
  • 1
  • 2
0
votes
1 answer

Does node.removeChild(node.firstChild) create a memory leak?

MDN says this is one way to remove all children from a node. But since only the first child node is referenced in code, do the others become memory orphans? Is anything known about whether this is the case in any or all browsers? Is there…
Lori
  • 1,392
  • 1
  • 21
  • 29
0
votes
3 answers

C programming - why garbage data inside my struct?

I have the following program in C: #include #include #include #include typedef struct str{ char * s; int len; }string; typedef struct stud{ unsigned int id; string name; char…
osappuk
  • 41
  • 6
0
votes
1 answer

When does JNA create FromNativeContext? (Tons of garbage)

When does JNA create FromNativeContext and how can I prevent the creation of these objects? I am creating millions in a few seconds with my application. I am using this direct-mapped class: public final class Kernel32Direct { public static…
Jire
  • 9,680
  • 14
  • 52
  • 87
0
votes
2 answers

Summary remembers the previous 'garbage' values

I have a data with a column which mentions the gender of a person. Unfortunately there are few misplaced columns/erroneous values. summary(data$gender) gives something like boy : 19232 girl : 14565 Maths : 3 Science : 4 ... some 20 garbage values :…
rbtj
  • 331
  • 2
  • 6
0
votes
1 answer

Reasons of using GC param::: -XX:LoopUnrollLimit=0?

Our application have below property running since long in PROD since JDK 1.4, we had added it to work around some bug in memory that time: -XX:LoopUnrollLimit=0 However we upgraded to JDK 1.6, and seems like this option will make program slow for…
Nikhil Joshi
  • 817
  • 2
  • 12
  • 34
0
votes
0 answers

JDK GC parameters: Issue with GC[YG occupancy...]]

Our application takes 25-35 seconds everytime and throws issue at GC[YG occupancy..]] Our GC parameters are set according to the available memory but application is stopped for said timings. JDK Version: 1.6 GC parameters are: -XX:+UseParNewGC…
Nikhil Joshi
  • 817
  • 2
  • 12
  • 34
0
votes
1 answer

strange garbage data when opening a previously truncated file

In my program, I've redirected stdout to print to a file 'console.txt'. A function writes to that file like this: void printToConsole(const std::string& text, const TCODColor& fc, const TCODColor& bc) { // write the string cout…
Max
  • 71
  • 1
  • 3
  • 8
0
votes
0 answers

How to better implement WPF control cache?

My colleague discovered that we can often get a performance improvement in our WPF application if we cache WPF controls rather than new-ing them from scratch. Of course using more memory in general can cause a performance drop somewhere else that…
ILIA BROUDNO
  • 1,539
  • 17
  • 24
0
votes
1 answer

Why printf is not printing garbage value?

#include void foo(){ int i; printf("%d\n",i); //should print garbage value } void main(){ foo(); } foo should print garbage value of i. But instead it is printing zero. Why is that? I am using gcc version 4.9.2.
gov_vj
  • 3
  • 2