Sequence allocation of inner objects
Thierry Descombes via omniORB-list <[email protected]>
| Newsgroups | gmane.comp.corba.omniorb.user |
|---|---|
| Message-ID | <[email protected]> |
Hi, Just a basic question about objects' sequence and memory management. We have developed a software for embedded data acquisition. We have little resources. We use omniORB to send data containing a CORBA sequence of AdcEventData objects : typedef sequence <AdcEventData> SeqAdcEventData The AdcEventData object itself contains sequences and a big structure of informations. To process / sort this information, we need to break this SeqAdcEventData to extract all of the AdcEventData. Currently, we are calling a function to create a new copy of the AdcEventData: addAdc(new AdcEventData ((* s) [i])); // for each elem of the sequence ... And then, we delete the sequence (that frees all inner AdcEventData objects)... but it consumes lot of unnecessarily resources on our small embedded CPU. Is there a good solution for not having to re-instantiate and copy the AdcEventData ? Could we just copy pointer's (AdcEventData*) values, and then fix the sequence length to 0 before calling delete on it ? Thanks a lot. Regards Thierry _______________________________________________ omniORB-list mailing list [email protected] http://www.omniorb-support.com/mailman/listinfo/omniorb-list