![]() |
Telelogic DOORS (steve huntington) | ![]() |
new topic :
profile :
search :
help :
dashboard :
calendar :
home
|
||
Latest News:
|
|
Topic Title: Garbage collection for Regexp Topic Summary: Garbage collection for Regexp Created On: 8-May-2007 20:08 Status: Post and Reply |
Linear : Threading : Single : Branch |
![]() |
![]()
|
![]() Answer: Thanks for the info. One way I found around this memory consumption is to use the matches function instead of Regexp. You sacrifice performance, yet it is still within acceptable bounds. The code that I submitted in the original message would now look like the attached code. | |
![]() |
|
I use regular expressions, on a frequent basis, and have noticed that these expressions do not release allocated memory when run in code that is managed by dialog boxes.
I wrote an extreme example to illustrate this point. You can run the attached code, with the Windows Task Manager opened, and you will notice memory allocation grows with each press of the Apply button. I expected the regular expression's allocated resources to be released once the testFunction terminated. Only when you close the dialog box do you release the allocated resources. Is there an equivalent delete function for Regexp variables? |
|
![]() |
|
![]() |
|
Hi Joe,
You could look up this thread: https://support.telelogic.com/en/doors/forums/messageview.cfm?catid=17&threadid=3902&highlight_key=y&keyword1=regexp Rgds, Uma |
|
![]() |
|
![]() |
|
Thanks for the info.
One way I found around this memory consumption is to use the matches function instead of Regexp. You sacrifice performance, yet it is still within acceptable bounds. The code that I submitted in the original message would now look like the attached code. |
|
![]() |
Telelogic DOORS
» DXL Exchange
»
Garbage collection for Regexp
|
![]() |
FuseTalk Standard Edition v3.2 - © 1999-2009 FuseTalk Inc. All rights reserved.