25458

Understanding on Termination Connector of State Diagram in IBM Rhapsody

In IBM Rhapsody if i have created instance of a class using new, then Do we have to take care for deallocating memory by calling delete or Termination Connector will handle its destruction with memory deallocation in its State Diagram??

Answer1:

If you are using C++ and the OXF (Object Execution Framework), then rather than calling delete, you should call destroy() on the object you want to delete.

Example:

C *c = new C(); // cleanup c->destroy();

Note: Deleting an OMReactive object while the OXF is running is not a good idea. The OXF might try to dispatch an event to the object that does not exist anymoremore.

Recommend

  • Is it possible in orben to hide or disable the “send” button until a form is finished?
  • Running Orbeon-Form-Builder-Generated-Form with Java Application
  • Composition in UML
  • how to defer delete operation of shared_ptr?
  • Transparent Winform with image
  • Can an application depend on two different versions of libstdc++?
  • Scheduling a java.util.concurrent.Callable through Spring means
  • How to get Email address from outlook contacts for the names listed in a column?
  • MPI4Py causes error on send/recv
  • UML Sequence Diagram Message Branching
  • UML specification : Do I need inheritance?
  • Run a background job from Gradle
  • MPI message received in different communicator
  • Uploading entity with parent using bulkloader
  • Issue in gzip compression
  • Can't connect to MySQL for .NET application deployed in Wine using Ubuntu
  • Relational Database Mapping in MVC
  • How can I stop my python script when another python script is running?
  • Angular Ui-router can't access $stateParams inside my controller
  • Subversion reverting resolved file
  • QPushButton is not changing the background-color proper
  • How to synchronize two scrollview in Android?
  • PyQt4 application on Windows is crashing on exit
  • Creating a C++ function that calls other Lua function
  • INSERT EXEC Statement cannot be nested [duplicate]
  • Losing my session variables
  • Responsive left sidebar open close
  • Are Richfaces and Primefaces compatible with each other?
  • How Get arguments value using inline assembly in C without Glibc?
  • How to make R's read_csv2() recognise the text characters properly
  • Implementation of State Monad
  • How do I pass the string value parameter of the selected list item from an auto-populated dropdown l
  • Django rest serializer Breaks when data exists
  • How to rebase a series of branches?
  • Adding a button at the bottom of a table view
  • Getting last autonumber in access
  • Azure Cloud Service Web Role web pages do not load
  • what is the difference between the asp.net mvc application and asp.net web application
  • Delete MySQLi record without showing the id in the URL
  • GridView Sorting works once only