|
sepel wrote: in an image
you mean, a picture, or an ISO ?
|
|
|
|
|
a pitcure gif or bitmap or jpg
sepel
|
|
|
|
|
search the web for steganography
there an excelent series of articles here on CP, but it's in C#, if you don't mind
|
|
|
|
|
thanks .i search it on cp also.
sepel
|
|
|
|
|
I am developing a program right now. The program will most likely start as when windows boots and will manually be closed. I would like to ensure that once the program has started it will only runs in RAM until it is manually close. Is there any way to ensure and force programs?
Scott Dolan
Jernie Corporation
Engineering & Manufacturing
Software, Hardware, & Enclosures
|
|
|
|
|
ScotDolan wrote: I would like to ensure that once the program has started it will only runs in RAM
do you usually run programs elsewhere ?
|
|
|
|
|
|
Well, Windows use some of the hard drive space as virtual memory. I am sure you haeard of thrashing. If the Computer does not have alot of RAM. Windows will use the Hard Driver as RAM. I wanna way ensure that this does not occur on my application and system..
Scott Dolan
Jernie Corporation
Engineering & Manufacturing
Software, Hardware, & Enclosures
|
|
|
|
|
yes, but that's part of the virtualization, and only the system knows it. any application requiering some memory will be allocated and address, but cannot know if it is actually on the HD or on RAM
BTW, may i know why you want such a requirement ? i can't immagine a reason.
also, have you wondered buying some additional RAM sticks ?
|
|
|
|
|
The PC that runs our application is in motion ie. a flight simulator. We are getting hard disk failures quite offen. I would like a way to disable the hard drive and ensure the system and application don;t attempt to write to the hard drive which windows is in motion.
Scott Dolan
Jernie Corporation
Engineering & Manufacturing
Software, Hardware, & Enclosures
|
|
|
|
|
hum, ok, then, maybe you should firstly think of protecting/isolating the hard disk from hurts.
for your problem, i have no real solution. I think upgrading the RAM would be the best choice at first
ps: my name is toxcct, thanks
|
|
|
|
|
ScotDolan wrote: We are getting hard disk failures quite offen.
You must have really flaky hard-drives for that beeing a problem. I suggest you invest in some sort of RAID configuration ( I'm not RAID expert ) to help secure yourself against disk failure. or find a better enclosure for your HD to reduce vibrations.
IMO, for such systems, the simulator should not contain disks, only the display; all other hardware should be on a solid base platform next to the simulator.
I seem to remember at some point that it was possible to set the Virtual Memory to 0 (zero); I'm not certain how this will help.
|
|
|
|
|
Maximilien wrote: I seem to remember at some point that it was possible to set the Virtual Memory to 0 (zero); I'm not certain how this will help.
Yes... do it and you will slow down your machine for good :]
|
|
|
|
|
|
Whether the application allocates memory from the heap or not, Windows will still page it out to disk if it needs to.
"Approved Workmen Are Not Ashamed" - 2 Timothy 2:15
"Judge not by the eye but by the heart." - Native American Proverb
|
|
|
|
|
DavidCrow wrote: Whether the application allocates memory from the heap or not, Windows will still page it out to disk if it needs to.
MSDN wrote:
VirtualLock
Locks the specified region of the process's virtual address space into physical memory, ensuring that subsequent access to the region will not incur a page fault.
|
|
|
|
|
But that has no effect on the application as a whole, only small parts of it, if any. If no heap-based memory is allocated with VirtualAlloc() , what good is VirtualLock() ?
"Approved Workmen Are Not Ashamed" - 2 Timothy 2:15
"Judge not by the eye but by the heart." - Native American Proverb
|
|
|
|
|
DavidCrow wrote: If no heap-based memory is allocated with VirtualAlloc(), what good is VirtualLock()?
He may be able to write his application so that VirtualAlloc is used for all heap allocations (a custom operator new may help with that) and than VirtalLock can help.
Of course, I am not saying it alone would guarantee that HDD is never touched - there is stack, data and code that also need to fit in the memory.
|
|
|
|
|
If your hard disk fails the OS working on it crashes too. If the OS fails your program won't work anymore because even if the program works only with RAM (not HD) there will be "no one" to attend it if OS fails ..... If you are talking about some extra hard drive you shouldn't worry because you can choose which disk windows should use for virtual memory. Default setting:
The virtual memory runs on the system disk, and it's size is a double value of your RAM size
If I'm wrong please correct me ...
|
|
|
|
|
It doesn't matter, I think. OS is the master of everything and administers your program.. As long as the Disk with OS is working, and disk with virtual memo is working too (usually the same disk) your program will be fine ... providing that the program runs on the same disk. If the program runs on the separated disk and that separated disk fails .. the virtual memory doesn't matter in that case :]
-- modified at 13:51 Thursday 15th February, 2007
|
|
|
|
|
Have you looked into:
HKLM\SYSTEM\CurrentControlSet\Control\Session Manager\Memory Management\DisablePagingExecutive
"Approved Workmen Are Not Ashamed" - 2 Timothy 2:15
"Judge not by the eye but by the heart." - Native American Proverb
|
|
|
|
|
Ok, the hard drive never completely fails! We just get some error about bad or damage files & sectors. I plan on attacking this problem in two ways. First Trying to limit or control hard drive activity. I really only need to limit the write activity. Cause, If I can limit the hard drive write activity. I can go to solid state drive which would resolve the problem. As you all probably know, solid states drives can only perform a limited number of writes. So, if i don't limit the write activity the drive will only last a week. Which means i really way to ensure the virtual memory is only used rare cases. The OS can pretty much be lock down.
Scott
Scott Dolan
Jernie Corporation
Engineering & Manufacturing
Software, Hardware, & Enclosures
|
|
|
|
|
ScotDolan wrote: As you all probably know, solid states drives can only perform a limited number of writes.
Such as USB drives? I did not know they had a limited life span.
"Approved Workmen Are Not Ashamed" - 2 Timothy 2:15
"Judge not by the eye but by the heart." - Native American Proverb
|
|
|
|
|
Not a USB drive but, Flash based SATA drive from m-systems which was purchased by SanDisk.
Scott Dolan
Jernie Corporation
Engineering & Manufacturing
Software, Hardware, & Enclosures
|
|
|
|
|
1. I've got some application written in Java.
2. I don't want to interfere in the program's source code
3. This application works on Win 2k using cmd.exe only. It doesn't
have graphics interface. I can start it directly with cmd.exe, or
by using the bat file.
4. My question is:
Can I get in the console application from outside? I mean, Is it
possible to take it on with some other program (lets say some kind
of strap) working in GUI? I would like to launch my new strap
written in c++ whereby I could not only start the given console
application but also work on it sending/receiving data/commands.
Which functions/librarys should I use?
For example: Using CreateProcess I could possibly start the
application in cmd.exe, but what next? How to cooperate with it?
5. I tried to use
http://www.codeproject.com/useritems/ConsoleAdapter.asp[^] , but system commands sent to such a console haven't work, also
attaching to cmd.exe haven't helped.
6. I don't know exacly which forum should I use to ask about my
problem, so be patient with me, and give me bearing to proper one.
Please, give me some advice, and sorry for my pure :] yyy rather poor English
|
|
|
|