Offistart - Virtual Offices, Office Space, Business Support Services
*Home>>>Virtual Address

How can i make one c++ program read the virtual memory of another?


This is my problem...i need to use 2 matrixes, for fast information channels...in my algorithm. I can declare one of them in a program. If i declare both, then the program crashed (apparently due to some windows xp mem limit per program. When i declare 1 matrix in one program, but another in another program, and try to run both...i just get an error message saying that my page file is too small...so if i run this on a better computer, i'd be able to declare both matricies at once from two places. Now, i need to make the first program communicate with the second.
I want the first program to declare a matrix/array...get the memory address for the first element of the array, and length, and send that info through a text file to the other program...that would then take that number...load it into a pointer, and view the matrix without declaration. But this isn't working, why not?

There are a few ways that shared data can happen.

- create a RAM drive that has fast access. Then use both programs to open the same file. This is a GET IT DONE method.

- my second suggestion is what you have tried. But here is what might be wrong. Both programs have to be compiled, using the same compiler options. As I recall, if you use a LARGE scale object option, the pointers might work out universally. (the type of computer is not relavant).

- The other option is to install an ODBC text file or other global data structure. This could be an awesome and transportable method that would work on countless Windows computers of different flavors and environments. (Yet, I could not even begin to describe the programming details).

Good luck

I don't think you can just access shared memory on a whim, each modern program loads onto a computer in a separate memory space, the only way to communicate is through API calls, and memory addresses shouldn't be passed in them.

The other way is piping one program output into a master program but that is not going to solve your problem; in other words, without declaration is unlikely.

Tags
  Business Address   Call Forwarding   Call Handling   Answering Service   Telephone Answering   Mail Forwarding   Virtual Address   Virtual Assistant   Virtual Business   Virtual Offices
Related information
  • Somedoy has my ip address and stuff and was going to (vpn), What do I do now?

    Try Start > Control Panel > System > Remote > Uncheck everything to include the box in the Advanced tab Also in Control Panel > Administrative Tools > Services > Remote De...

  • Can anyone tell me a good virtual pet website???

    I used to play on Neopets.com, but that was a while ago. Don't know if it is still free.

    ...
  • What is a good FREE online virtual/alternate reality game?

    runescape and clubpenguin they are both free but with membership you get more

    ...
  • Why does my HP wireless printer switch ports occasionally?

    Sounds like the IP address is changing on you. Put a static outside the range allocated for computers on the router. If computers have 1.100 thru 1.150, then you can set the printer to 1.151. On...

  • Why does my PC keep saying virtual memory too low and that it is increasing it?

    try checking virtual memory , my computer/ advanced/ performance/ advanced/ virtual memory, change: (should be 300~600+ to 1000mb) ,check free hard drive space, run scan disk error checker, then ru...

  • Does anyone know how often the image you get on a search on www.MAPS.msn.com (MS Virtual Earth?)changes?

    This is only a map - not a picture. You need Google Earth if you want to see pictures.

    ...
  • What is the difference between level-3 switch and a router?

    A Layer 3 switch and a router are very similar. Normally, switches make routing decisions at Layer 2 (hardware layer), while a router makes routing decisions at Layer 3 (network layer). When the La...

  • Who are all these dumb asses who keep filling my bulk in box with there assinine froth and ectoplasm.?

    I don't know either..but you would think Yahoo could figure this out and put a stop to it. I don't EVEN bother to open any bulk anymore.

    ...
  •  

    Categories--Copyright/IP Policy--Contact Webmaster