This invention provides an isolation architecture, a method and
system for managing waveform display script objects. The isolation architecture includes: an
internal object layer, comprising an
internal object factory for creating internal objects corresponding to script commands; a
handle mapping layer, comprising a
handle allocation module and a bidirectional mapping module, wherein the
handle allocation module allocates integer handles to internal objects, and the bidirectional mapping module maintains the bidirectional mapping relationship between integer handles and
internal object pointers; and a script
interface layer, comprising a custom command set adapted to script
syntax specifications, wherein the parameters and return values of each command in the custom command set conform to the basic script data types and do not contain internal object pointer information, and the script
interface layer returns integer handles as return values to the script. This solution, by designing a handle mapping mechanism across
interpreter boundaries, achieves a clear separation between the script environment and internal object management, improving
system security, performance, and
maintainability.