Re: Memory !!!




why is this question asked on the GTK+ ml?

Anyway, quite simple, modify the other program to allow to send via pipes the
address of the var you want to print, connect a pipe from app 1 to app 2, send
the pointer to var via the pipe, use app 1 to display it.
And you'll get a wonderfull "seg fault"... A Unix program cannot read or write
the memory of another process. Else you could read passwords into the 
memory of program like ssh or mozilla, for example.

The only way to do this is to use Sys V IPC as said before.

-- 
 ** Gael Le Mignot, Ing2 EPITA, Coder of The Kilobug Team **
Home Mail : kilobug freesurf fr          Work Mail : le-mig_g epita fr
GSM       : 06.71.47.18.22 (in France)   ICQ UIN   : 7299959
Web       : http://kilobug.freesurf.fr or http://drizzt.dyndns.org

"Software is like sex it's better when it's free.", Linus Torvalds





[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]