Hi guys,
Im abit of a noob to Powershell so please dont chastise me :-)
So I've got some rather large log files (600mb) that I need to process, my script essentially strips out those lines that contain "Message Received" then tokenises those lines and outputs a few of the tokens to an output file.
The logic of the script is fine (alth...
I have a testing struct definition as follows:
struct test{
int a, b, c;
bool d, e;
int f;
long g, h;
};
And somewhere I use it this way:
test* t = new test; // create the testing struct
int* ptr = (int*) t;
ptr[2] = 15; // directly manipulate the third word
cout << t->c; // look if it really affect...
are there any particular features in one versus another that would help me decide which to purchase for a winforms app.
I am looking for both memory, cpu, performance bottlenecks.
...
I have a long running Perl script and I'd like to let it know (and report) how much memory it is using. I'd like to have this information both on Linux and Windows and if possible on Mac OS X as well.
...
What is the size of a heap-allocated Object in .net, including management overhead? I'm assuming Objects are allocated along 4-byte boundaries, or is a different approach used?
...
I sort of understand closures in javascript, but what I'm not sure about is how it treats nested functions. For example:
var a = function(o) {
o.someFunction(function(x) {
// do stuff
});
}
I know a new closure is created everytime I call function a, but does that closure also include a new instance of the anonymous fu...
I have a piece of code where
for ( ; ; )
{
char *buf;
/* Some code */
}
The question here will the code allocate memory every time when it cycles through the loop .
I mean atleast 4 bytes will be reserved for the pointer when it cycles .
...
This is a windows question. I know under normal circumstances a 32 bit process can only access 2GB of RAM (or 3GB with a special switch in the boot.ini file). When running a 32 bit process on a 64 bit operating system, how much memory is available? Are there any special switches or settings that can change this?
How about a Common Langu...
Declaring a variable name, how much (if at all) impact does the length of its name have to the total memory of the application? Is there a maximum length anyway? Or are we free to elaborate on our variables (and instances) as much as we want?
...
how to check an object have been release from the memory?
i know a object have to be release manually when we use alloc|copy|retain to create that object. if use the instance class method(NSString stringwithformat:), the object will be release automactically by NSAutoRealeasePool,however, sometime there have some object used to release ...
i´m doing a project using C, and CodeBlocks is my IDE. Windows Vista is the OS.
I added some new stuff to the already working code and now the executable crashes everytime. i have no errors after compiling though.
Computers and programming is not my field, but i suspect it may have something to do with some kind of memory limitations (if...
I remember a discussion I recently had with a fellow developer about the memory footprint of private vs public properties. I stated that private ones have less of a footprint than public ones. He claimed it makes no difference. By the way, we were talking about C#.
Who is right and why?
Apparently there are differences in languages. ...
Workbook names in Excel 2007 are supposed to be limited in size only by memory, but this appears not to be the case. Eventually, an array saved to a name will get big enough that when you try to save you get (paraphrased): "one or more of the formulas in this workbook is larger than the 8192 character limit, please save as binary file"....
I'm trying to access physical memory directly for an embedded Linux project, but I'm not sure how I can best designate memory for my use.
If I boot my device regularly, and access /dev/mem, I can easily read and write to just about anywhere I want. However, in this, I'm accessing memory that can easily be allocated to any process; which...
I'm trying to understand what kind of memory hit I'll incur by creating a large array of objects. I know that each object - when created - will be given space in the HEAP for member variables, and I think that all the code for every function that belongs to that type of object exists in the code segment in memory - permanently.
Is that...
Hi I just picked up Obj-C and quite dislike its manual memory management.
I decide to go with its Garbage Collection, by adding
objc_startCollectorThread();//garbage collection
in my Main() and change the garbage collection value to [-fobjc-gc]
So is that all I need? So I can program "freely" like I do in Java/Python..etc?
...
I have a RAM of 2 GB. We have a application which performs Export/Import operations.
We have a recursive function which has one local variable of type Set which keeps on getting populated every iteration. This Set keeps growing and at one point we run out of memory.
Is there any alternative data structure which can optimally use the mem...
Hi,
I'm working on a Java application that needs working on very large matrices. For example multiplying two 10 million * 10 million matrices!
Of course the Java heap does not have enough space even for storing one of these matrices.
What should I do?
Should I use databases to store my matrices and bring to memory every needed part and ...
int main()
{
char myString = NULL;
realloc(&myString, 5);
strncpy((char *)&myString, "test", 5);
}
Seems to work Fine but, i'm still slightly confused about stack vs heap, is this allowed? Does myString need to be freed manually or will it be released when it goes out of scope?
Edit: Thanks for the responses, so i presume t...
I'm looking for a library that will provide this type of information:
RAM
Swap space
Number of CPUs
speed (CPU MHz)
Number of cores
Chip type
Ultimately I'll be calling into it from Java, but a C library would be fine, which I can wrap with JNI.
Platforms of interest include, but not limited to, AIX, HP-UX, Solaris, Windows.
Thanks!
...