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

How do I add variables to Speech Recognition?

I've done some coding on a virtual assistant, and I've hit a block. Here's the code: private void Form1_Load_1(object sender, System.EventArgs e) { SrgsDocument commands = new SrgsDocument(); SrgsRule displayList = new…
0
votes
0 answers

Use relative path with -Xloggc

Is there any way to use a relative path with -Xloggc to set the path where the garbage collection events are written to? I have only been able to get -Xloggc to work with absolute paths.
Brian
  • 143
  • 2
  • 8
0
votes
1 answer

QPainter paints garbage

Fragment of program code: def add_link(Item0Num, Item1Num): global Mw, View # Mw - MainWindow if Item0Num != Item1Num and not link_exists(Item0Num, Item1Num): append( links_to(Item1Num), Item0Num ) append(…
DSblizzard
  • 4,007
  • 7
  • 48
  • 76
0
votes
1 answer

Why buffer is getting garbage value?

This code from my project. I am not able to understand from where buffer is getting this (潓敭慮敭(10):) garbage value after using with swprintf_s. const char* m_filename = "Somename"; unsigned m_line = 10; wchar_t buffer[256]; …
Pranit Kothari
  • 9,721
  • 10
  • 61
  • 137
0
votes
2 answers

How to initialize char pointer array, to avoid garbage values?

I am having an issue where some global char pointer arrays that I am trying to initialize become full of garbage data after the function that I initialized them in goes out of scope. char *dept_vals[255]; char *num_vals[255]; char…
0
votes
2 answers

Default value for char?

In C Language , when we declare the variable as int , it will assign the space in memory and store garbage value. until, we give the input.. Similar way , what the char will store as default value .. When I use debug feature in Code Blocks. It will…
hackwithharsha
  • 901
  • 1
  • 16
  • 39
0
votes
2 answers

php memory limit garbage collector

3 days crashing my head towards a wall. I developed a php script for import big text files and populate mysql database. Until i get 2 million records it works perfectly but i need to import like 10 million rows divided in different files. My…
SBO
  • 623
  • 2
  • 8
  • 22
0
votes
0 answers

Reducing Node memory usage when making HTTP requests in a loop

I've set up a simple loop to poll an IronMQ messaging system, and everything works fine... except that memory usage increases more and more until it finally stabilizes at over 250MB. I've read that it's normal for Node to use more memory over time…
0
votes
1 answer

Pre Dexing gwt-user.jar causes a OutOfMemoryError from the Garbage Collector

I've been trying to get gwt set up with an Android project and after adding the sdk to my build path, the compilation hangs on this problem. I am using IntelliJ Ultimate 13.1 and the android app is the skeleton that comes with it. here is the full…
0
votes
4 answers

Why does the c++ variable not get detleted immediately?

I'd like to know why is it that the data that is pointed to when you return from a function, is not deleted immediately. In the snippet of code below,I expect that when I return the address of x to the pointer to initialise it when returning from…
PiPatrol
  • 162
  • 2
  • 10
0
votes
1 answer

C: Garbage value read into array of ints

I looked at [ Read list of numbers in txt file and store to array in C ] to figure out how to read a file of ints into an array. #include #include int second_array[100], third_array[100]; int main(int argc, char *argv[]) { …
BrianRT
  • 1,952
  • 5
  • 18
  • 27
0
votes
2 answers

Why am I getting garbage characters?

I keep getting garbage characters when I am outputing "123" and "0". I was able to narrow it down to the baseout method, and I believe it may be one of my "for loop" conditions but I can't seem to get to be able to remove the garbage characters.…
0
votes
3 answers

One of the values in a dynamically allocated array always prints a garbage value

Why is p[1].x printing out to a garbage value? Is it possible to initialize a dynamically allocated array to a given array? If yes, then how? #include using namespace std; struct point{ int x; int y; }; int N; point *p = new…
Moriarity
  • 25
  • 6
0
votes
2 answers

New temporarily variables in a frequently called method

Would it more efficient to not assign new temporarily variables in a method that is called very frequently? (> 1000x s) So a current example. I'm assigning 3 new integer values, instead passing these values directly to another method. // What I'm…
boop
  • 7,413
  • 13
  • 50
  • 94
0
votes
1 answer

Geting some garbage value on the second index

I'm trying to calculate HCF in C with pointers. int-type-Pointer ptr points to an array of integers. The inputs that i have given are 30,60,18,a. And here "a" is to terminate the list of integers and breaks off the "while". I tried the debug mode,…
Lucky
  • 61
  • 3