234 Topics
|
|
Hi to all, I have a severe problem with memory when executing my application. At start it merely uses about 14.000 K without doing anything. Then, when the main code starts in a seperate thread, it spikes up to 700.000 K (observed in TaskManager). Program in question is an implementation … |
|
I am trying to dump the memory of my c++ app. [code=c++] #include <iostream> #include <fstream> using namespace std; int main () { ofstream myfile; myfile.open ("example.txt"); myfile << "Writing this to a file.\r\n"; myfile.close(); int *p; *p = 25; char b[] = "hello"; int a; for (a=0; a==-1; *(p++)){ … |
|
Hi I have a Dell Precision workstation 490 and increased the initial one GB ram (two 512MB sticks) to five by adding two 2GB sticks after I upgraded the op system to Windows 7 Pro 64bit and I have installed the most recent BIOS. There was no problem, the system … |
|
1. any problem if i dynamically allocate memory and use only a small part of it? 2. can i free the dynamic memory after each time the function is executed? |
|
The exception is: Unhandled exception at 0x6474f269 in Loliboll.exe: 0xC0000005: Access violation reading location 0x0000000c. I think it's a memory leak. I tried to solve it obviously, but to no prevail. This is the code: [CODE]#include "stdafx.h" using namespace std; int main() { // FreeConsole(); int a; // INTRO = … |
|
I am in a distributed education programming class, our most recent assignment has me stumped with a error that is driving me insane. The IDE I have on my personal computer is missing some of the libraries I need(I believe), and when I remote desktop to my school's computer and … |
|
Hey folks, just a quick question i can't seem to find the answer to. If i overwrite a container with a pointer in it, does the pointer and therefore the object it points to still exist, and would that be considered a bad handling of memory. For instance. I have … |
|
I am wondering how to change the VGA resolution and the video memory pointer in real mode assembly (nasm). I have no idea how to do this, so can anyone help me? |
|
[code] #include <stdio.h> #include<stdlib.h> int **matrix_mul(int **m1,int **m,int a,int b,int c,int d); main() { int i,j,r1,r2,c1,c2,**p,**q; printf("Enter the number of rows and columns of first matrix :\t"); scanf("%d%d",&r1,&c1); printf("Enter the number of rows and columns of second matrix :\t"); scanf("%d%d",&r2,&c2); //memory allocation for m1 int **m1; m1 = malloc(r1 * … |
|
[CODE] #include<stdio.h> #include<stdlib.h> int **transpose(int **x,int m,int n); main() { int nrows=2,ncolumns=2,i,j,k=0; //memory allocation for array x int **array; array = malloc(nrows * sizeof(int *)); if(array == NULL) { printf("out of memory\n"); return 0; } for(i = 0; i < nrows; i++) { array[i] = malloc(ncolumns * sizeof(int)); if(array[i] == … |
|
I am creating a desktop application that will also include a calculator, similar in function to the calculator of the Microsoft Windows OS. I require some assistance in implementing the memory capability such that the user can store a number, recall the number to be used in a calculation or … |
|
Hello: I am trying to create an audio processor, and I have a program that creates some threads (in Windows). The "main" program creates the audio processor thread, and then creates the audio reader thread. I would like to know how the audio reader can tell the processor that the … |
|
Hi, Im trying to run this program using dynamic memory i cant seem to get it to keep running it crashes on me. I have the working program so the code is correct im just haveing trouble trying to convert it correctly. Thank You, [CODE]#include <iostream> #include <fstream> using namespace … |
|
HEllo this is reaaally urgent, the deadline is within less than an hour and thirty minute, and I lost hope that I can fix the problem myself. I know it has to do with pointers and allocating memory dynamically. The assignment was to use operator overloading to add two sets … |
|
Hi, I have a C# pdf library called PdfSharp which I use to create PDFs. I have a page (print.aspx) which instantiats the class which creates the pdf in the Page_Load() event handler. for some reason when I am running this through IIS, the process for the app pool (w3wp.exe) … |
|
Most motherboards these days come with onboard video which is adequate for the kind of thing I want to do. It uses part of the installed RAM. Meanwhile, 32-bit Windows has a limit of 3GB of usable RAM. So the question is: if I install 4GB (particularly if I do … |
|
Hi everyone. i have an issue with a server program i'm developing for a university project. The issue is the following: The server program i'm building uses shared memory and forks. However i have a problem as to how can i destroy the shared memory segments i've created. A simplified … |
|
When my code (below) is executed, a error message is triggered which says "The operation completed successfully." To give this some context, hFileMap is valid; I have checked this with my debugger, and other operations can easily be performed correctly on this handle that yield correct results. The only weird … |
|
Hey folks, i have a problem with a vector im attempting to program. There are no compile errors but during run time i get an error saying: "Debug Assertion Failed! Program:...filepath\GA.exe File:...include\vector Line: 779 Expression: vector subscript out of range" etc... I have tried stepping throught the program to no … |
|
I'm rather new to the C programming language and I'm very stuck. Whenever I try to assign a value to dynamically allocated string, I end up with a Segmentation Fault. Could someone help me by explaining why this happens. Following is a bit of my code that I think should … |
|
When under Windows 2008 Server with my C++-program (with a cicle) many directory are copiing, then the memory is increasing and remain at a high level. Waht can I do? |
|
[ATTACH=RIGHT]16858[/ATTACH]You may have noticed that solid-state drives (SSDs), those flash memory-based drives that were touted as an alternative to hard disks, have remained stuck in the 80GB to 160GB size range and the prices are not coming down. There's a good reason for that. Starting in early 2009, the price … |
|
Hi there, Can anyone tell me why variables can have printed values of -858993460. I've got a pointer pointing to a memory address which has nothing in it so when i come to cout this it prints -858993460, if i give it a value then its prints that value. I … |
|
Hi..We do have a project in school using visual basi 6.0 named "Memory Game". I have started to do it however i cant finish it. I have attached the interface of the program. Click image to match in pairs Card will randomize each test Each match will give 10 points … |
|
I am testing out some PHP code from a book just to see how it works. This is it: [CODE]<?php $f = $c = ""; if (isset($_POST['f'])) $f = sanitizeString($_POST['f']); if (isset($_POST['c'])) $c = sanitizeString($_POST['c']); if ($f != '') { $c = ((5/9) * ($f - 32)); $out = "$f … |
|
|
Long time no see DaniWeb =] Sadly it's a problem with a new system I'm building that brings me back. To start, the specs I know are probably most important are: MoBo: [B]ASUS Crosshair IV Formula (AM3 AMD 890FX)[/B] RAM: [B]Crucial Ballistix 2x2GB 240-Pin DDR3 1600[/B] CPU: [B]AMD Phenom II … |
I have 4 512 DDR2 pc3200 ecc and 4 512 DDR2 pc3200 non ecc that I want to swap for 2 2 Go DDR1 pc 3200 contact me asap on 07916714525 in london |
|
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 … |
|
When under Windows 2008 Server with my C++-program (with a cicle) many directory are copiing, then the memory is increasing and remain at a high level. Waht can I do? |
|
This is about a C++ problem.[CODE][/CODE] I have an object tracking program that takes images from 0,...,n in a loop. At current frame the computations are based on previous frames, therefor I need to hold those variables, matrices, etc for later use. This program has to be integrated now into … |
The End.