| | |
Out Of Memory Problem
Please support our C++ advertiser: Intel Parallel Studio Home
![]() |
•
•
Join Date: Oct 2006
Posts: 2
Reputation:
Solved Threads: 0
Hi,
I am having "Out Of Memory" problem with my program.I am using Borland C++ 5.0.
I have an MySQL type database and trying to access one of its tables.The table which I am trying to access (activate) is around 450 Mbyte.Here is my sample code which gives error:
At the last line (Table_Test->Active = true;) I get "Out Of Memory" exception error.I have checked with "Windows task Manager",memory usage (Commit Charge) is increasin when program comes to that point and after about 2000Mbyte it raises error.
Do you have any idea to overcome this problem?
Thanks.
I am having "Out Of Memory" problem with my program.I am using Borland C++ 5.0.
I have an MySQL type database and trying to access one of its tables.The table which I am trying to access (activate) is around 450 Mbyte.Here is my sample code which gives error:
C++ Syntax (Toggle Plain Text)
TTable *Table_Test; Table_Test = (TTable*)(new TMyTable(this)); // ------ connect tables to CDR Database ------- ((TMyTable*)Table_Test)->Connection = ptMySqlDatabase; ((TMyTable*)Table_Test)->TableName = "test"; Table_Test->IndexName = "Frame"; Table_Test->Active = true;
Do you have any idea to overcome this problem?
Thanks.
Last edited by Salem; Oct 17th, 2006 at 1:52 pm. Reason: Add code tags and remove mistaken smilie
•
•
Join Date: Oct 2006
Posts: 2
Reputation:
Solved Threads: 0
•
•
•
•
Surely a memory leak. delete the pointer to the table once you are done using it. Are you calling the above code inside a loop?
Hi,
I am not able to pass that Table_Test->Active=true statement.Error occurs while executing that line.Sure after i finished using it i delete it with delete Table_Test statement.
Thanks.
![]() |
Similar Threads
- Dell Inspiron 8200 Memory Problem (Troubleshooting Dead Machines)
- ASUS mainboard memory problem (Motherboards, CPUs and RAM)
- Weird memory problem in Windows XP (Windows NT / 2000 / XP)
- Memory problem? (Windows NT / 2000 / XP)
- Playing with shared memory - problem with non 'simple' data types (C++)
- Memory problem? (Motherboards, CPUs and RAM)
- memory problem (Motherboards, CPUs and RAM)
Other Threads in the C++ Forum
- Previous Thread: delete operator in C++ and strings
- Next Thread: I dont know what mistake I did
| Thread Tools | Search this Thread |
api array arrays based binary bitmap c++ c/c++ calculator char char* class code coding compile console conversion count data database delete deploy desktop developer dll download dynamic dynamiccharacterarray email encryption error file forms fstream function functions game getline givemetehcodez google graph gui homeworkhelp iamthwee ifstream input int java lib linkedlist linker list loop looping loops map math matrix memory multiple news node number numbertoword output pointer problem program programming project python random read recursion recursive reference rpg sorting string strings temperature template templates test text text-file tree unix url variable vector video visual visualstudio win32 windows winsock word wordfrequency wxwidgets






