473,320 Members | 1,952 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

C Memory Access Preventing

Hello all,

how can i allocate block of memory which i can lock..

mean no one else can read that memory ..

i don't want to use encryption my data is there as it is
but i want to lock it so no one can read that data even using pointers or anyelse approch . . . .

HELP ME OUT...
May 10 '08 #1
2 1394
JosAH
11,448 Expert 8TB
Hello all,

how can i allocate block of memory which i can lock..

mean no one else can read that memory ..

i don't want to use encryption my data is there as it is
but i want to lock it so no one can read that data even using pointers or anyelse approch . . . .

HELP ME OUT...
If you are running an ordinary 32 bits MS Windows machine your process runs
in a 32 bit virtual memory space (2GB or 3GB maximum typically). The OS
prevents any other process from reading that virtual memory so there's no need
to worry about anything. On the contrary: if you want another process to be able
to read your memory you have to explicitly set up a block of shared memory.

kind regards,

Jos
May 10 '08 #2
weaknessforcats
9,208 Expert Mod 8TB
Consider using a private heap.

With Windows you use CreateProcessHeap. More info in Windows via C/C++ by Jeffrey Richter 2007.
May 10 '08 #3

Sign in to post your reply or Sign up for a free account.

Similar topics

18
by: Tron Thomas | last post by:
Given the following information about memory management in C++: ----- The c-runtime dynamic memory manager (and most other commercial memory managers) has issues with fragmentation similar to a...
3
by: Giloosh | last post by:
Hello, i have a microsoft access application and right now, anyone knowing how to use microsoft-access can easily go behind the applicatio, design the forms, delete edit/tables etc... There is...
18
by: Ramasubbu Ramasubramanian XR (AS/EAB) | last post by:
What is memory leakage, could any one explain with sample code
20
by: iouswuoibev | last post by:
When writing a function that manipulates data (for example, a string), is it in principle a good or bad idea to allocate/deallocate memory within that function? For example, I have the following...
4
by: GRABLER Georg | last post by:
Hello everyone. A not too long time ago, i wrote a Post about "Reading process memory". Now, i got a good answer, about using the "marshal" class. I read over the class quickly, but i could...
8
by: Fritz | last post by:
.... maybe now that it's a little clearer. Environment: Win Server 2003, :NET Framework 1.1, C# I have an application that polls on a web service method every time a timer event is raised. The...
2
by: Jeff | last post by:
raggle fraggle and so on Why does this happen? I had just entered some code and when I saved the form, through the menu option, Access nicely shutdown and lost the changes. I know, I should save...
30
by: MAG1301 | last post by:
I've detected memory leaks in our huge .NET 1.1 C# application but couldn't localize them directly. So I've reduced the code to the following console application: using System; using System.IO;...
2
by: rdemyan via AccessMonster.com | last post by:
I have a custom message form that I want to display when the user shuts down my app. Some clean up needs to be done during shutdown and I want to display this form and then display various...
0
by: DolphinDB | last post by:
The formulas of 101 quantitative trading alphas used by WorldQuant were presented in the paper 101 Formulaic Alphas. However, some formulas are complex, leading to challenges in calculation. Take...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
0
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.