![]() |
Telelogic DOORS (steve huntington) | ![]() |
new topic :
profile :
search :
help :
dashboard :
calendar :
home
|
||
Latest News:
|
|
Topic Title: function in sub-context Topic Summary: Created On: 2-Feb-2005 18:41 Status: Post and Reply |
Linear : Threading : Single : Branch |
![]() |
![]()
|
![]() Answer: My large DXL taxes local memory causing thrashing and exponentially slowing down the DXL. Is there any way to write a function that accepts parameters and returns a string value, but itself invokes eval_ or some other function to do the calculations in a sub-context such that any memory leak therein does NOT affect the main program? May look like this: string GetInfo(Module mod, bool Options) { // get all the information about the mod in a sub-context string Results = eval_(mod, Options, yaddy yaddy) return(Results) } - Louie | |
![]() |
|
My large DXL taxes local memory causing thrashing and exponentially slowing down the DXL.
Is there any way to write a function that accepts parameters and returns a string value, but itself invokes eval_ or some other function to do the calculations in a sub-context such that any memory leak therein does NOT affect the main program? May look like this: string GetInfo(Module mod, bool Options) { // get all the information about the mod in a sub-context string Results = eval_(mod, Options, yaddy yaddy) return(Results) } - Louie |
|
![]() |
Telelogic DOORS
» DXL Exchange
»
function in sub-context
|
![]() |
FuseTalk Standard Edition v3.2 - © 1999-2009 FuseTalk Inc. All rights reserved.