234 Topics

Member Avatar for
Member Avatar for 54uydf

Hi, I'm getting this error: Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 576 bytes) in 'path' on line 207 what I'm doing is getting an excel file with about 8000+ rows and trying to move them into a table in my DB. a FOR loop …

Member Avatar for digital-ether
0
3K
Member Avatar for Dragennd

I am in the process of building a new computer to replace my 7 year old Compaq. I've never actually built a computer before so I wanna make sure that my parts are compatible. According to a friend of mine the processor I've picked (with due research) is a newer …

Member Avatar for Dragennd
0
250
Member Avatar for sathya88

how to free memory of byte array... code[CODE]for(int j=0;j<count;j++){ buffer=null; //[COLOR="Red"]free the memory by set as a null but not working????? shows array index out of bound exception for the second time[/COLOR] buffer= new byte[size]; //byte mem alloc temp2=di.read(buffer,total,size);// read buffer total=total+temp2; fo=null; ds=null; fo= new FileOutputStream(flist[j]); ds= new DataOutputStream(fo); …

Member Avatar for masijade
0
7K
Member Avatar for DmytriE

Hello everybody, I have never done anything with dynamic memory allocation and was trying to allocate enough memory to hold four elements of an array. Each of these elements will hold another array that will hold the actual data. My questions is how can I check the size of a …

Member Avatar for DmytriE
0
114
Member Avatar for hardwiz

I was using an acer laptop and it had had some fan problems with parts getting stuck in it but everything was working fine. I had droped it a couple of time accidetnly and nothing happened. Then today, I dropped it and everything was working except I heard a ticking …

Member Avatar for burnworld
0
285
Member Avatar for Troebadoer

I am pretty new to C#. I am a Borland c++ developer and is used to "newing" and "deleting" objects programmatically. I understand that with C# the garbage collector is responsible for the deleting of objects. It seems though that I have a memory leak. I am developing a SQLServerDBInterface …

Member Avatar for Troebadoer
0
225
Member Avatar for kk33

Hi all , here is my code for GET request to a http site, but it keeps taking memory nor releasing it, here is the code: [CODE] while(1) { hSession = WinHttpOpen( L"Mozilla/5.0 (Windows NT 6.1; rv:5.0) Gecko/20100101 Firefox/5.0", WINHTTP_ACCESS_TYPE_DEFAULT_PROXY, WINHTTP_NO_PROXY_NAME, WINHTTP_NO_PROXY_BYPASS, 0); if (hSession) hConnect = WinHttpConnect( hSession, L"lalala.com", …

Member Avatar for anirudh33
0
312
Member Avatar for Mizki

How do I print values (integer) from memory addresses? I did it with ascii string value, but I can't get it to work with integer value :/ Here is my code for printing ascii string: [CODE]lui $a0, 0x1001 addi $a0, $a0, 4 addi $v0, $0, 4 syscall [/CODE] I tried …

Member Avatar for Schol-R-LEA
0
6K
Member Avatar for jbennet

Just took my old desktop out of storage... Its from 05/06 ish... and 2gb of its RAM is faulty :( - Wont boot with it in. Any ideas why this is? The slots themselves don't seem to be faulty, just the sticks....

Member Avatar for jbennet
0
215
Member Avatar for harryhaaren

Hey all, (Skip down till "Question:" if you're in a rush) Context: I'm coding on an audio application which involves storing buffers of audio. I'm currently using a [ICODE]std::vector<float>[/ICODE], as a member of an [ICODE]AudioBuffer[/ICODE] class. These [ICODE]AudioBuffer[/ICODE] instances are held in another class [ICODE]ResourceHolder[/ICODE]. In the "process" callback (where …

Member Avatar for harryhaaren
0
607
Member Avatar for Smithy566

Is it possible to set the maximum memory windows can use via command line. This option is very easily changed through the GUI as seen [URL="http://www.sevenforums.com/tutorials/66482-memory-set-maximum-amount-used-windows-7-a.html"]in this tutorial[/URL] I can't seem to find any examples online without running into something similar to the tutorial provided above. My target device is …

Member Avatar for Smithy566
0
126
Member Avatar for centracare_Fl

Symptoms: Laptop boots up and dies in about a minute User had previous trouble with keyboard and had removed and reinserted it before. First 20 seconds of boot attempt is met with that loud "stuck key" repeating sound. Removed keyboard. System began booting without sound, ran for a minute, shut …

0
170
Member Avatar for Prankmore

[CODE]# include<stdio.h> # include<string.h> int main(int argc, char **argv){ char phone[16]; int num = 0; int count = 0; printf("Enter a phone number: "); count = scanf ( "%s%n", phone, num ); memmove(phone + 3, phone + 2, 10); memset(phone + 3, '-', 1); memmove(phone + 7, phone + 6, …

Member Avatar for Prankmore
0
177
Member Avatar for babis87

Hello! I am making a program which does many computations for a Photovoltaic system. The problem is that i get a strange segmentation fault error when I run the program. Here is where it crushes (at for-loop of calculation S5) : [CODE] commands..... ... ... /******************** WIRING *******************************/ Ni = …

Member Avatar for Salem
0
2K
Member Avatar for Celtrix

I'm not known to be a very memory friendly guy but after about 4 hours debugging my lua+sdl in C++ I finally figured out how to use threads but now I have another problem. I apparently have zero knowledge of memory manangement but thats kind of ok so I've narrowed …

Member Avatar for Celtrix
0
246
Member Avatar for deliezer

Hello, I have a difficult memory error to find. I have narrowed it down to a small piece of code, tiny in fact, but the symptoms are baffling to me. I tried to find it with electric fence, but electric fence found nothing. The problem is complicated by my liberal …

Member Avatar for deliezer
0
89
Member Avatar for nocloud

I am experiencing unexpected performance degradation when using vectors with classes. I have a csv_File class that reads in a csv file and stores the contents in a 2D vector. There's a member function that allows access, e.g. [CODE] csv_File file("file.csv"); file.access(2,2);[/CODE] To access the 2,2 element. Then, I have …

Member Avatar for mike_2000_17
0
184
Member Avatar for arshi9464

i want to know, what kind of addresses do pointers deal with? i mn logical or physical? and how can i access a particular memory area using pointers? PLEASE HELP.......

Member Avatar for TrustyTony
0
145
Member Avatar for GregMalick

Here's the problem I'm trying to solve: I've written a DLL that's used as a plugin within another program. Within the DLL is a number of structure allocations which represent the positions of points in a mesh (over time). These allocations can be very very large. If another instance of …

Member Avatar for GregMalick
0
446
Member Avatar for orion3184

Hello, I'm new to assembly and am finding myself porting someone's MASM old code to C++ for portable smartphone architectures. There's a syntax on the memory addressing I'm having trouble interpreting. Can anyone help me understand what's going on? It's probably an easy question for everyone familiar with the syntax, …

0
144
Member Avatar for Mr.Ztch

I have two spare computers, one running Windows 7, the Other XP and my maim machine running Windows 7. This is not a networking question. Is it possible to link one or two of the spares to my main machine to harness their processing power and memory to the benefit …

Member Avatar for fvdave30
0
197
Member Avatar for Muhammad Anas

Hello guys, I am trying to declare a two dimensional array in C++ on runtime. For this purpose I am asking the user about how many rows and columns should be created in the array. I have written the following code for this purpose. Apparently it is working just fine. …

Member Avatar for Muhammad Anas
0
155
Member Avatar for thekashyap

This article shows you how to optimize memory allocations in C++ using placement new. Applicable especially to usecases dealing with creation of large number of objects. [COLOR="Red"][B]A brief on problem:[/B][/COLOR] Lets take example problem for simplicity: - I have a GSM network with a cell in it. - Cell's coverage …

Member Avatar for thekashyap
3
569
Member Avatar for Jsplinter

All things equal, does an object of a class which has methods take up more memory resources than an instance of a class without methods. What if it is a vector of such objects? For example: [CODE] class A{ public: void DoSomething(); void DoSomethingelse(); private: int x, y; }; class …

Member Avatar for mike_2000_17
0
135
Member Avatar for TheSassyDragon

Im trying a practice problem from a textbook and here is my attempt at it, was wondering if I could get some advice both with structurally how to approach the problem, efficency, and any words of wisdom on dynamic memory. This is my study for my final exam which so …

Member Avatar for Lerner
0
271
Member Avatar for IndianaRonaldo

char* p=(char*)malloc(10); in the above state ment,has the memory been initialised??...what is the difference between allocatingg it and initialising it?? thanks in avdance...

Member Avatar for IndianaRonaldo
0
206
Member Avatar for Dragon840215

Hey guys I need to store a single string into Memory for later use on different pages to be able to create a log file for my app. so on my 1st form(Login Form) i need to pass the Username to Memory and then read it from the memory later …

Member Avatar for kvprajapati
0
149
Member Avatar for valzi

My CPU is designed for 1333 RAM, but I bought [url=http://www.newegg.com/Product/Product.aspx?Item=N82E16820231303&cm_re=ripjaws_1600-_-20-231-303-_-Product]1600 G.Skill RAM[/url] as [url=http://www.tomshardware.com/forum/289979-31-seeking-opinion-gaming-build#t2146310]recommended by banthracis[/url] on Tom's Hardware. I have a Gigabyte GA-870A-UD3 mother board which has these [url=http://www.gigabyte.com/products/product-page.aspx?pid=3423#sp]RAM specifications[/url]: 4 x 1.5V DDR3 DIMM sockets supporting up to 16 GB of system memory Dual channel memory architecture …

Member Avatar for saxmaster49
0
440
Member Avatar for geir88

Hi, I've got an assignment at school that I would really like help with. I'm a total newbie. [code=c]#include <iostream> using namespace std; int main() { char chr=(char)67; unsigned int offset = 1000; char * ptr=(char*)0; ptr+=offset; cout << ptr[0] << (char)43 << (char)(chr-24) << endl; } [/code] The questions …

Member Avatar for Fbody
0
108
Member Avatar for ThatGuy2244

I was wondering how I could display more than 256 colors with the VGA color palette. correct me if I'm wrong, but the reason that you can't display more than 256 colors at once is because each byte in video memory corresponds to one pixel on the screen. But because …

Member Avatar for ThatGuy2244
0
305

The End.