Hello Everyone,
I'm trying to integrate several components to build a custom reporting solution. One of these components is a template-based report generator. It reads a template consisting on a RTF file with placeholders and perform the substitution. This works great, and generates an RTF report.
Although it can generate the results a...
Hi,
I need to export huge amount of data from ado.net datatable(which i get by db query) to excel.
I tried the following way :
1. Create excel object with workbook/worksheet @ server side...and use memory stream to write whole document to client side.
But this gave me "out of Memory exception". bcoz my memory stream was was so huge.
...
I've been using C++ for a bit now. I'm just never sure how the memory management works, so here it goes:
I'm first of all unsure how memory is unallocated in a function, ex:
int addTwo(int num)
{
int temp = 2;
num += temp;
return num;
}
So in this example, would temp be removed from memory after the function ends? If not,...
In the question by DKSRathore How to simulate the Out Of memory : Requested array size exceeds VM limit some odd behavior was noted when creating an arrays.
When creating an array of size Integer.MAX_VALUE an exception with the error java.lang.OutOfMemoryError Requested array size exceeds VM limit was thrown.
However when an array was...
Hi, I need to export huge amount of data from ado.net datatable(which i get by db query) to excel.
I tried the following way : 1. Create excel object with workbook/worksheet @ server side...and use memory stream to write whole document to client side.
But this gave me "out of Memory exception". bcoz my memory stream was was so huge.
S...
I'm using Python 2.6 on a Mac Mini with 1GB RAM. I want to read in a huge text file
$ ls -l links.csv; file links.csv; tail links.csv
-rw-r--r-- 1 user user 469904280 30 Nov 22:42 links.csv
links.csv: ASCII text, with CRLF line terminators
4757187,59883
4757187,99822
4757187,66546
4757187,638452
4757187,4627959
4757187,312826
475718...
I have a small application for displaying several UIImageViews in a UIScroller in a similar fashion to the Photo app. I have a TableView which, when i select an item, parses an XML document of photos (added to an array) and adds a UIViewController which displays the images.
The problem is I have a tab bar controller which, upon clickin...
Any ideas on where to start?
...
Is there a way/tool/technique to calculate the processor and memory cost of a specific MySQL query?
...
Hi there,
I am new to optimizing code with SSE/SSE2 instructions and until now I have not gotten very far. To my knowledge a common SSE-optimized function would look like this:
void sse_func(const float* const ptr, int len){
if( ptr is aligned )
{
for( ... ){
// unroll loop by 4 or 2 elements
}
...
Hello,
This has always been on my mind while programming, so i thought i'd spit it out before it actually gets to me.
What should i be more worried about? The memory the application consumes, or the performance it takes. By this i mean should i be focused upon using less memory for of the application and using more performance (eg. loa...
What is the difference between pointer to a reference, reference to a pointer and pointer to a pointer in C++?
Where should one be preferred over the other?
...
Is there a tool equivalent to a bounds checker or purify or valgrind for CUDA?
I'm basically looking for something that might tell me if I'm reading or writing outside of allocated memory.
...
I wrote a quick test app to use the google analytics scripts in a client app. It works fine using QWebView and
QWebFrame* pFrame = m_pWebView->page()->mainFrame();
pFrame->setContent(arrayHtml);
pFrame->evaluateJavaScript(strScript);
But no matter what I do I cannot get it to release memory. Every time I call the script it keeps addi...
I read in my unix text book that bss is used to store the uninitialized variables(global declarations). This would mean that the static variables are stored separately and not in the bss. The only other place is the data segment.
Here is my question: Is bss segment a part of the data segment or are they two entirely different set of me...
I guess this have been answered before, but I just couldn't find the answer here or on Google, but I think that it is because I couldn't type the right question...
Can someone please explain why aren't pointers initialized to NULL?
Example:
void test(){
char *buf;
if (!buf)
// whatever
}
The program wouldn't ste...
Today we were discussing how long Garbage Collection breaks needs. And were wondering how long it would take to simply wipe 1 Gigabyte of memory. What would it take?
...
My goal is to reach a point where I have filled up all avalible memory (note that I want to do this incrementaly, so before my last alocation I have a minimal memory remaining). How can I do this?
...
I'm writing a Java application that needs to check the maximum amount of RAM available in the system (not the one available for the VM). Is there a portable way to do so?
Thanks a lot :-)
...
What i need is a function that modifies given pointer to 2d matrix like this:
void intMatrixAll(int row, int col, int **matrix);
Now, a function should allocate memory and the matrix could be used. Rows and cols are given at run-time.
#include <stdio.h>
#include <stdlib.h>
#define PRINTINT(X) printf("%d\n", X);
void intMatrixAll(in...