Re: How to modify a program during execution...
At 12:00am -0700 00-07-29, Palm Developer Forum digest wrote: Subject: How to modify a program during execution... From: DIAMOND JEFF [EMAIL PROTECTED] Date: Fri, 28 Jul 2000 12:25:07 -0400 X-Message-Number: 40 I desire to modify data within the actual code of a program while it is executing. I have two questions: (1) Will this generate an access violation? (2) Will the change persist, i.e., in the PalmOS, is code being executed in place or is it copied before being executed? In general, having an app modify itself can cause problems. For example, if a user flashes your app into ROM, then your code will fail. Also, there could be situations in future versions of the Palm OS where an application _does_ get temporarily copied into memory before it's executed, and thus your changes won't "stick". So my question would be why you need to have a self-modifying app? -- Ken Ken Krugler TransPac Software, Inc. http://www.transpac.com +1 530-470-9200 -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/tech/support/forums/
How to modify a program during execution...
I desire to modify data within the actual code of a program while it is executing. I have two questions: (1) Will this generate an access violation? (2) Will the change persist, i.e., in the PalmOS, is code being executed in place or is it copied before being executed? Thanks! - Jeff -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/tech/support/forums/
Re: How to modify a program during execution...
On Fri, Jul 28, 2000 at 12:25:07PM -0400, DIAMOND JEFF wrote: I desire to modify data within the actual code of a program while it is executing. I have two questions: (1) Will this generate an access violation? Not if you use DmSet or DmWrite... (2) Will the change persist, i.e., in the PalmOS, is code being executed in place or is it copied before being executed? It is run in place, basically the program runs out of locked code resources. So yes, the changes will persist. -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/tech/support/forums/