Home > Community > Forums > Custom IC SKILL > skill code for working with internal entities via IPC

Email

* Required Fields

Recipients email * (separate multiple addresses with commas)

Your name *

Your email *

Message *

Contact Us

* Required Fields
First Name *

Last Name *

Email *

Company / Institution *

Comments: *

 skill code for working with internal entities via IPC 

Last post Wed, Aug 16 2006 7:37 AM by archive. 1 replies.
Started by archive 16 Aug 2006 07:37 AM. Topic has 1 replies and 1374 views
Page 1 of 1 (2 items)
Sort Posts:
  • Wed, Aug 16 2006 7:37 AM

    • archive
    • Top 75 Contributor
    • Joined on Fri, Jul 4 2008
    • Posts 88
    • Points 4,930
    skill code for working with internal entities via IPC Reply

    Is it possible to take an internal object, write it to a string, store it in an internal program, then re-use that value in
    a Skill program?

    For example, if I do this:
    rc = ddGetObj( "00test1" )     
    dd:0xacb0168

    to get a library reference stored in variable rc, can I write the value of rc to a string and later recall that value (perhaps
    storing it in a completely different variable) to access the same library?  In other words, what I would like to do is
    something like this:

    myIPCwrite( rc )        to save the value of rc to an extneral process
    ...             
    lib1 = myIPCread()    to recall it

    (this could also be referred to as marshalling and unmarshalling a value)


    Originally posted in cdnusers.org by gry
    • Post Points: 0
  • Wed, Aug 16 2006 7:48 AM

    • archive
    • Top 75 Contributor
    • Joined on Fri, Jul 4 2008
    • Posts 88
    • Points 4,930
    RE: skill code for working with internal entities via IPC Reply

    No. You can't do this.

    Objects are created in VM in each session, and the IDs cannot be re-used in different sessions. Some objects (dd object for
    example) you should be careful about storing long term, since things may change...

    Regardless of this, even within the same session, you cannot convert the print value of a object (such as a dd object
    or db object) back into the actual object reference itself.

    What you should write is the information about how to recreate the object - i.e. the library name in this case. There's
    no harm in doing another ddGetObj after reading the library name back later.

    Regards,

    Andrew.


    Originally posted in cdnusers.org by adbeckett
    • Post Points: 0
Page 1 of 1 (2 items)
Sort Posts:
Started by archive at 16 Aug 2006 07:37 AM. Topic has 1 replies.