Re: Objects in VM files

Edward Di Geronimo Jr. (edwdig@bergen.org)
Tue, 26 Nov 1996 12:10:10 -0500

> Now that I think about it, you're doing something I've never done before.
>You're reading in objects from a VM file and trying to attach them to the ui
>tree. In my Draw program I'm taking already existing objects (in a separate
>resource), slated to run in the ui thread, and attaching them to the ui tree.
>In another part of the program I take objects from a VM file and add them to
>the "vis" tree that runs in the process thread. And I'm doing the adding from
>a method running in the process thread.

Another difference I noticed: You're adding Vis objects and I'm adding Gen.
Vis has MSG_VIS_ADD_NON_DISCARDABLE_VM_CHILD, but there is no corresponding
Gen message. Anything else that might have to be taken into account?

> So, to summarize, make sure you've got the VM objects in a resource that is
>marked to run in the ui thread (ui-object) if you're going to add them to an
>object tree running in the ui thread. It shouldn't matter which thread does
>the adding of the objects, at least I don't see why it would.

Ok, the resource I'm duplicating to create the file is marked ui-object.
Anything special I have to do when I duplicate it or vmattach it?

-------------------------------------------------------------------
| Edward Di Geronimo Jr. edwdig@bergen.org |
-------------------------------------------------------------------