Skip to Content
0
Jun 18, 2007 at 05:21 PM

Pass data via Memory into update task

743 Views

I have to pass data into an update task from my application. I tried export/import but the memory id cleared by the time I get to the update task. Here are what I believe to be the two best solutions with my problem with each - can anyone give some guidance on which is best:

1. Instantiate a class with set/get methods. My problem - In the update task, how can I reference the instance of my class that I created earlier? Is this possible, I don't know how to code this.

2. Create a shared memory enabled class and a shared memory area. Problem - (if I can figure this out) I'm pretty sure it will work, but it may be overkill for what I need and I've never done this before. Plus, I'm not positive how to make sure two separate transactions running at the same time don't cross over and read the memory of the other transaction.