FAQ: Object Manager/V5.1 How do I remove a property, such as a user defined property, which cannot be accessed through the Properties Editor?Set it to nothing, for example: OM(SingleWindowApp)-> a<myProp=6>; OM(SingleWindowApp)-> $print a int a<myProp=6> = 3; OM(SingleWindowApp)-> a<myProp= >; OM(SingleWindowApp)-> $print a int a = 3; Be sure to include the space after the equal sign. 5.2 Can I implement a remote module that runs on a machine of a different architecture than the one on which I'm I'm running?Yes. You need to use the "host_name" and "xp_path" properties on the relevant process object. The remote module mechanism uses rsh, so you must set up permissions to allow rsh to work between the machines. See the scripts bin/XP_start and bin/XP_exec. The following is a sample project v/proc.v file that would be needed for an AVS/Express process to launch the remote module. |
"$XP_PATH<0>/v/proc.v"
ProcTemplates {
process XP_remote<host_name="remote_host", XP_path="/home/smith/express_project /usr/express">;
};
5.3 When do values of references get computed?The value of a reference is not computed until you access the reference object. 5.4 When groups are merged, are properties on objects merged too?Yes, the properties on the groups and on any subobjects that are merged are also merged. 5.5 Can you add to an array in the V?There is no in V analogous to realloc. You can redimension the array to a larger size and specify additional values. 5.6 Does Object Manager lock objects, such as arrays, when writing to them?There is no write locking on scalar objects. The mode flag on the OMfind_subobj API call should serve this purpose, but is not. The mode flag on Object Manager array routines (such as OMret_array_ptr) does do write locking. If the mode flag is set to WR (write) or RW (read-write), the Object Manager will not let you write to the array. The array is unlocked when an ARRfree is executed on it. However, since AVS/Express is single threaded, this won't generally be an issue. Typically, a module executes, gets the array, frees it when it's done and then returns. Only then does the next module execute. 5.7 Are object names case-sensitive?Yes. You can create distinct objects "foo" and "FOO". 5.8 When do I use an mlink vs. link?mlinks support multiple inputs. It us used under the same circumstances you would use a link, but for array inputs. 5.9 Can I specify that an object inherit from a primitive like int?You can say, int foo = 3; foo bar; But if you save the bar object, it will be written in V as "int bar". 5.10 What is the difference between combine_array and concat_array?combine_array interleaves its argument arrays, whereas concat_array just appends them. |