Most voted "memory" questions
This tag is to be used with memory problems in programming. DO NOT use the tag for memory installation problems or any non-programming related subject. If the problem is memory management have a tag just for this.
Learn more…332 questions
Sort by count of
-
1
votes1
answer70
viewsDoes the char vector have a minimum size?
I’m doing a huge job and he’s given a bug very strange when allocating vectors of char with specific sizes. After a lot of headache I decided to do a small test. #include <iostream> using…
-
1
votes1
answer459
viewsFlutter Dart consuming a lot of RAM memory during build
I have installed the flutter for web, desktop and android. The problem happens in all platforms that I try to run a project, and it takes a long time to build the project, before it didn’t take that…
-
1
votes1
answer252
viewsC++ free(): invalid aborted when trying to create a function
I am trying to create a library for operations with matrices in C++ but am running into a problem. I created a function to print on the screen a certain matrix. The function even returns the…
-
1
votes0
answers72
viewsHow to release memory in a WPF application in C#?
Well I created a system in WPF and C# and every day that passes it gets bigger, I honestly had never worried about the issue of memory for small applications doesn’t make much difference, but that’s…
-
1
votes2
answers342
viewsError exited, Segmentation fault in C
I’m trying to make a function that returns me a date according to an integer and always appears the error: exited, Segmentation fault The code I created is basically this: #ifndef DATA_H #define…
-
1
votes2
answers103
viewsMemory organization when there is inheritance
When I declare funcionario as Pessoa in the main(), where the attribute value "goes" to salario, since the class Pessoa does not have that attribute? public abstract class Pessoa { private String…
-
1
votes1
answer33
viewsStrategy to run regressions with many iterations without much RAM
I have a small database (872 Obs. of 27 variables). But the analysis that I need to make of this base ends up being very heavy, because it requires analysis of the iteration of many variables among…
-
0
votes1
answer838
viewsHow to identify percentage of memory usage for running cache clean command?
We know that the command for memory cache cleanup is this: sync; echo 3 > /proc/sys/vm/drop_caches However, how to make an executable with a condition (if() Else()), so that this command is…
-
0
votes2
answers520
viewsReleasing PHP memory using __destruct
It is necessary to use the method __destruct and define the variables of the class with null in order to free up memory more efficiently? For example: class Teste { public $foo; public $bar; // ...…
-
0
votes1
answer135
viewsRecovers image saved in internal memory
I’m saving my image in internal memory using this code public String baixarImagem(String urlC, String nomeImagem) throws MalformedURLException { URL url = new URL(urlC); InputStream input = null;…
-
0
votes1
answer73
viewsHow to Apply Loading Large Bitmaps Efficiently
I am using Imageview to upload images because I find lack of memory error found this method, because I am not able to use. wanted a brief explanation where I change the variables available in…
-
0
votes1
answer653
viewsWhat is Read Process Memory?
I wanted to know what Read Process Memory is. Because I’m trying to make a bot for a game, and I was told that I would need to use this, to see where for example the character’s life is stored in…
-
0
votes1
answer66
viewsAre there techniques to reduce the use of memory (on the part of development) regarding the use of javascript?
I would like to know if there is any technique to reduce the use of memory as to the use of javascript. I mean, as to development. I noticed that a certain page that we are developing where I work…
-
0
votes1
answer591
viewsHow to optimize memory consumption using Doctrine
I need to read and save in the database two files the first (smallest) has about 49,000 lines (each line will be become a record). I parse this file by creating an instance for the object and then…
-
0
votes2
answers447
viewsHow to make a matrix sum using shared memory?
I need help to perform a sum of matrices using shared memory. #define LINHAS 3 #define COLUNAS 3 #define PULAR_LINHA printf("\n") int main(int argc, char *argv[]) { int linha, coluna; //indices int…
-
0
votes0
answers73
viewsProgram with memory consumption above 500MB because of many images
Hello! I looked for solutions to my problem here and elsewhere and nothing helped. Codes and more codes to reduce memory and nothing... I am a beginner in programming and do not notice my mistakes,…
-
0
votes0
answers55
viewsRetrieve data from another process
I wonder if there is some way in C++ to take some data (value) of a process, but without using a pointer to the memory, because when I try to use the Cheat engine, until I find the dynamic address,…
-
0
votes2
answers1846
viewsError invalid Conversion from 'int' to 'int*' using -fpermissive
I’m following a series of video-lessons in C (https://youtu.be/zZlIy3hp0c0?t=10m29s), but I found a problem. First I ran this code: #include <stdio.h> int main(void) { int x = 10; int…
-
0
votes1
answer77
viewsMany lines in a csv file
The scenario of my doubt is the following: I have a system that reads a file that has around 3 million lines, each line has a separator, I identify each item on the line, I do the proper treatment…
-
0
votes2
answers279
viewsMemory error when generating spreadsheet with Phpexcel
I am having problems in generating Excel spreadsheets using Phpexcel when the number of records is too large the memory is insufficient to process the task, there is some way to improve the creation…
-
0
votes2
answers479
viewsCompetition and memory sharing between Threads
I have the following code: class Objt { public List<t> list_t1; public List<t> list_t2; public Objt() { // faz inicializações } public void handleLists(List<t> list) { for(t e:…
-
0
votes1
answer40
views`System.Nullreferenceexception` in C
Running the following code shows the error System.NullReferenceException in function call SubString #include <stdio.h> #include <stdlib.h> #include <string.h> // // Implementado o…
-
0
votes1
answer44
viewsReturn values from Database
I’m getting this mistake: Fatal error: Allowed memory size of 8388608 bytes exhausted (tried to allocate 1640 bytes) in C: Appserv www muweb class Connect.php on line 31 When I run these scripts:…
-
0
votes1
answer56
viewsSIGSEGV error in using a pointer
I have the following problem: I am creating a pointer and allocating memory in it, passing its reference to function, but when I read it in the function happens the error reported in the title.…
-
0
votes1
answer80
viewsPHP Fatal error: bytes exhausted After running query
Hello, in a certain process of my code I need to execute a query that returns me 4500 rows from the database return Property::whereHas('portals', function ($query) { $query->where('portal_id',…
-
0
votes1
answer57
viewsUse of batteries and passage by reference
Hello, I’m doing a program where I have a stack and I want to reorganize the elements of this. I have created a function that performs this only the original stack is not being modified (it is only…
-
0
votes1
answer127
viewsNumber of elements allocated from a pointer
I need to know how many elements are allocated in my pointer pointer. For example with vector, sizeof(v)/sizeof(v[0]) this way I get the number of elements that this vector has. I would like to do…
-
0
votes1
answer80
viewsWhen a 'cloned' struct is changed it changes all the others
I have the following statements: #define SCALE 4 #define PADDING 1.1 #define CUBES 27 #define CUBE_VERTICES 8 #define CUBE_FACES 6 #define FACE_VERTICES 4 typedef struct { float angle; float x;…
-
0
votes0
answers123
viewsProblems using Phpexcel cache system with Laravel 4.2
I’m trying to use the library’s cache system Phpexcel, but I am still getting memory overflow in my application. I need to use cache because I am generating reports with more than 100,000 records on…
-
0
votes1
answer96
viewsChunk on Laravel 4.2 using lots of memory
I am using in an application a query to get data from a table and then generate a file xlsx. The problem is that it returns a lot of information, about 1,5 GB. As a solution, so I’m using the method…
-
0
votes1
answer38
viewsSwitching between [Page Class] pages in an application
I’m looking up examples of browsing between pages in a desktop application. Let’s assume that the navigation is done from a Listbox always visible in Ui. Most examples do something like this to…
-
0
votes1
answer82
views -
0
votes2
answers1946
viewsHow to release memory after performing a certain task?
In a certain task, I have to upload 6 photos in 6 PictureBox, for this I use the method below: private void simpleButton1_Click(object sender, EventArgs e) // botao carregar foto { OpenFileDialog…
-
0
votes1
answer317
viewsprinting memory junk
This program must load words from a file txt to a vector, Draw 10 words, put them in vector and then print on screen. The problem is that it is printing memory junk and do not know how to solve this…
-
0
votes1
answer86
viewsIs it possible to take the use of RAM memory using vuejs or in php?
Hello, I wonder if it is possible to make a system in vuejs or directly in php that takes how many of RAM memory I am using in total, with all programs.
-
0
votes2
answers82
viewsWhat is the difference in the assignment of an already started matrix to an uninitiated one?
char nome[10]; nome = "w" //Aqui ocorre um warning, por quê isso ? char nome_dois[10]; nome_dois[0] = "w" // Aqui e normal, como esperado. "w" is in a static memory? nome[0] is in a dynamic or…
-
0
votes2
answers5464
viewsSegmentation failure: Recorded core image
I made a code in C to find the smallest value and position of it in a vector x[N]. Every time I compile the program by terminal (Linux), it accuses the following message: Segmentation failure…
-
0
votes1
answer154
viewsDecrease memory usage of recursive functions in PHP
I have a recursive function in PHP where it loops into an api where it only allows you to retrieve 200 records at a time. However as this API has a very high response latency we decided to use a…
-
0
votes0
answers18
viewsDeleting variables at the end of the method decreases spent memory?
In php we have the method unset to erase variables from memory, I have a doubt about that. After a method is executed, are its local variables automatically deleted from memory? Or is it good…
-
0
votes2
answers85
viewsSegmentation Fault with malloc()
In one part of my program I need to create a vector full of zeros the size of the user’s interval: scanf("%ld %ld", &n1, &n2); int *vetor; vetor = malloc((n2 - n1 + 1) * sizeof(long int));…
-
0
votes1
answer165
viewsPrint memory available in C
How to know the amount of memory available before doing the malloc()? I would like to print the memory value that is still available in order to be allocated, the code has to run on Windows and…
-
0
votes0
answers179
viewsGet information from another program using Python
Hello, I would like to know how it is possible to get information from another program using Python. In question, I want to develop a blinds counter for Pokerstars. Note: blinds in poker is the set…
-
0
votes1
answer223
viewsC program that reads a text file and prints the lines in reverse order
I wonder why when running the script below, the lines appear spaced, except for the first line. Input Linha1 Linha2 Linha3 Linha4 Expected output Produtos: - Linha3 - Linha4 - Linha2 - Linha1 Output…
-
0
votes3
answers379
viewsHow to insert a ";" at the end of the string, program in c
I wonder what I should do for the ";" in the print appear afterward of string and not before. I’m new to programming and I’d like to appeal to your help. Thank you Input Linha1 Linha2 Linha3 Linha4…
-
0
votes0
answers51
viewsIs it possible to run a Windows executable stored in memory?
I have an executable that is not an . NET Framework Assembly stored in a byte[], and I intend to run it without creating a file dedicated to it for security reasons. The reason you don’t want to…
-
0
votes2
answers412
viewsObjects and Memory Permanence in PHP
It is possible to keep objects in memory during a session in PHP or you need to use the "Session" variable to store the previously instantiated objects? The goal is to create a web system similar to…
-
0
votes1
answer101
viewsBizarre error with dynamic allocation
I wrote this simple program: #include <stdio.h> #include <stdlib.h> #include <string.h> int main(void) { char *nome; nome = (char *)malloc(10 * sizeof(char)); if(nome == NULL) {…
-
0
votes2
answers475
viewsTry/Catch: java.lang.Outofmemoryerror: Java heap space
I have a very serious problem in my web application, and after a lot of research, I found that the error java.lang.Outofmemoryerror: Java heap space Could be being caused by try/catch with catch…
-
0
votes3
answers117
viewsText looks full of junk after typed
I started creating a data collection and usage application with the following code: #include <stdio.h> #include <string.h> int main() { int idade = 0; char nome[20]; printf("Hello! How…
-
0
votes0
answers65
viewsHow to process data without the kernel dying?
I want to process the data into one unsupervised.py notebook. However, every time I start, my computer almost freezes and it looks like the kernel dies. It seems to be generated because of a memory…