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

php regular expression to filter out junk

So I have an interesting problem: I have a string, and for the most part i know what to expect: http://www.someurl.com/st=???????? Except in this case, the ?'s are either upper case letters or numbers. The problem is, the string has garbage mixed…
Mala
  • 14,178
  • 25
  • 88
  • 119
0
votes
2 answers

Map C++ Reverse Iterator

map::reverse_iterator& it = temp.rbegin(); it -> points to garbage key value it++ -> points to the correct key value map::iterator& it = temp.begin(); it-> points to the correct key value from beginning. Please assist.
0
votes
2 answers

Android to iOS is possible ? or zero development?

Garbage Garbage Garbage Garbage
user1512873
0
votes
1 answer

A garbage character appears when using substr() on a Chinese language string

I am trying to get some character(s) from a Chinese string. But always a garbage character appears at the end. How can I get some char from Chinese string?
Sksudip
  • 569
  • 2
  • 6
  • 9
0
votes
4 answers

Why am I getting garbage when I use pointers in this program? C Language

I am a C++ programmer trying to get a grasp of the C language syntax and I do not understand why I'm getting garbage values when I use pointers in this function. #include #include void separate(double, double *dollar, double…
Manuel Medina
  • 409
  • 1
  • 7
  • 14
0
votes
2 answers

While writing data to a text file returned by server, some extra garbage values inserted in some lines

This is the code where the socket has been created and recieved data is stored in a text file // Initialize Winsock. cout << "connecting1\n"; WSADATA wsadata; int iResult = WSAStartup (MAKEWORD(2,2), &wsadata ); if (iResult…
Anubha
  • 1,345
  • 6
  • 23
  • 35
0
votes
1 answer

VB.NET memory not released by GC

i have this small piece of code where i would expect that the GC at a certain point would wipe the memory, instead i run out of memory. Is this a correct behaviour for the GC? Private Sub Form1_Load() Dim WasterWrapper as cMyClass For MapIndex…
user1964154
  • 416
  • 1
  • 4
  • 10
0
votes
1 answer

String object creation subtleties: aliases and garbage

Practice Test Question: Consider the following code: String entree = new String (“chicken”); String side = “salad”; entree = “turkey”; String dessert; entree = side; String extra = entree + side; dessert = “pie”; How many String objects were…
Rishi
  • 945
  • 2
  • 15
  • 23
0
votes
1 answer

Second user-defined function returns garbage value?

I have been teaching myself C programming, and I've come to a difficult point with using variables across functions. When, I compile this program and run it, the function askBirthYear returns the correct value, but sayAgeInYears returns either 0 or…
0
votes
1 answer

wchar_t* weird behavior

hi im loking for some advice im working in a command interpreter for class and i have this "command" (that is a class) that get some c strings from internal variables and make an std::wstring, then i cast it to wchar_t * but when i return it i get…
0
votes
1 answer

Xcode NSdata Garbage

I am Working on a Network application ... but before sending it over the network i am testing my packing and unpacking of data ... but i am getting a lot of garbage values myfield in a ui text field .. my label is a uilabel ... mybutton method is…
Ifti
  • 77
  • 11
0
votes
1 answer

Filter strange C++ multimap values

I have this multimap in my code: multimap noteList; // notes are added with this method. measureNumber is minimum `1` and doesn't go very high void Track::addNote(Note ¬e) { long key = note.measureNumber * 1000000 +…
user393964
0
votes
2 answers

Achartengine draws extra garbage characters

I like the achartengine charting library for Android, but I keep getting this problem. I want the activity to redraw a chart for different data sets from my db (going back different amounts of time) on a button click. I have three buttons in the…
Cartesian Theater
  • 1,920
  • 2
  • 29
  • 49
0
votes
3 answers

Mergesort gives garbage value for the first element of the sorted array when executing

I am implementing Mergesort using the algorithm described in "Introduction to Algorithms". However, upon every execution I get a garbage value as the first element of the sorted array. Here is the code for it: #include #include…
user1043884
  • 43
  • 1
  • 6
0
votes
2 answers

Garabage value in list

i'm populating a list view to view my record, i've the following code... super.onCreate(savedInstanceState); setContentView(R.layout.total); ArrayList results = new ArrayList(); // --…
Numair
  • 1,062
  • 1
  • 20
  • 41