Memory Questions

Ad

Is there a better way to mask bits?

So i am trying to split memory addresses into their page number and offset components by masking the hex numbers. but to cover a decent variety of
Ad
Ad

cs50 speller "unload" memory leak

My cs50 speller function finally works, but when entering it into check50, it says there is a memory error with valgrind. here is my unload
Ad

Is this C program safe?

I am concerned about memory leaks in this program. specifically, the check_if_pal procedure increments the str pointer

Writing outside heap in mergesort

I have been implementing vanilla version of a merge sort in c. in a sorting section itself, which is a separate function, i created a temporary
Ad

Share scoped variable in OpenMP

I'm working with openmp and would like to share variable that's declared inside scoped block between threads. here's overall idea of what i'm

Embedded memory allocation and scope

If i want to create a structure initialization functions that return a pointer to the initialized structure members, will the allocated memory to
Ad

Common memory optimization

What are the most common memory optimizations in csharp, dotnet 2.0. wanted to see if there common things that people may not be doing by default

FLVPlayback component memory issues

My website is entirely flash based, it moves around a 3d model which was given to me as chunks of video that i've converted to flv files. i'm

Get OS-level system information

I'm currently building a java app that could end up being run on many different platforms, but primarily variants of solaris, linux and
Ad

Can't fill dynamic array

I'm learning c++ now and i have some misunderstandings i've created 2d dynamic array, but i can't fill it i've got error in 44 line like: access
Ad

How to compress data

I'm trying to compress data to improve the space complexity, but i'm not sure if i'm incorrectly compressing data or incorrectly measuring the

Placement New Operator

#include<iostream> using namespace std; int main() { int buf[2]; int *p=new (buf) int(2); int *q=new (buf+1)
Ad
Ad
Ad

Blog Categories

Ad