Member Avatar

Hi everyone! I have written a server client that receives information, does a database transaction and then sends the result back to the client. My client has requested that they be able to view what was received and what was sent in real time. I have used a JTextArea. The problem came in when I was doing some stress testing on the app. As soon as the number of requests hit about 150k, I noticed that it was using a lot of RAM. I wrote a method to clear the text area (setText(null) and tried setText("")). When the button was …

Member Avatar
0
4
Member Avatar

Hello. I compiled a basic GUI example written with Qt. When I run with valgrind, it tells that there is memory leak. It is stranger, because at each time I run the app, the number of malloc calls are different. Qt seems nondeterministic. [CODE] #include <QApplication> #include <QPushButton> int main(int argc, char *argv[]) { QApplication app(argc, argv); QPushButton hello("Hello world!"); hello.resize(100, 30); hello.show(); return app.exec(); }[/CODE]

Member Avatar
0
3
Member Avatar

Hii, My Windows XP laptop goes unusually slow after when I open any program (say Internet Explorer) on it after startup. I suspected I am having a heavy startup so I observed my task manager stats. 1. On startup and stabilizing , my RAM usage is normal and it shows I have enough free memory. 2. If I start any program and use it for a minute, the problem starts. 3. On observing task manager again, I found that [B]my free RAM has dropped very low, used RAM is also low[/B], [B]but the Pageing size has increased a lot[/B]. I …

Member Avatar
0
9
Member Avatar

We have constructed a windows service unde W2003 Server in vb.net 2010 to process certain database transactions. It should work 24/7 o the server. However, after 3/4 days it blocks the windows server operation since the memory usage is ever-increasing. After many revisions, we decided to place under "comments" all operational code, including all transactions to the SQl Server database and left just a kind of shell service that is doing no real work. Still, under these circumstances, the memory usage goes on increasing. Any idea how to prevent this from happening? Thanks. Orlando

Member Avatar
0
8
Member Avatar

Hi all, i've to make an introduction of what am i doing before start making questions. The goal of my work is to create an application quite like an IDE, for specific program development ( always in C++ ) and testing. Since the need of execute these programs under the main IDE process for monitoring and logging purposes, my solution is to compile them as shared library and load them dynamically from the IDE. (Any suggestion about other strategies is welcome!) The application is to be considered a 24h server, so can't be subject to problems like memory leaks or …

0
1
Member Avatar

Hey guys I have come up with a solution for the problem I have but I would like to know how I could do this the way I initially had it set up but without the leak of course. vec3f.h [CODE]class vec3f { public: GLfloat _x, _y, _z; vec3f(){}; vec3f( GLfloat x, GLfloat y, GLfloat z ) { _x = x; _y = y; _z = z; } *operator GLfloat() { GLfloat *_r = new GLfloat[3]; //the problem _r[0] = _x; _r[1] = _y; _r[2] = _z; return _r; } }[/CODE] Now I know I am calling the new operator …

Member Avatar
0
10
Member Avatar

I have a situation where I have to scan some FTP Servers every 5 seconds to check for some specific files and download them if they exist. I use a Shell script to do FTP download operation and call it using C++ system call in a separate thread. (I am on Linux) Here is how the code skeleton looks like: [code]//Main thread handle_timeout //called every 5 seconds { HandleFTPOper(); } HandleFTPOper() { //Allocate memory in heap here FTPLoginDetails pFTPLogin = new FTPLoginDetails(); //fill the allocated memory (FTPLoginDetails) here .... //Create a child thread and pass the FTP Login details to …

0
1

The End.