[Tcl-nap-users] Nap Memory Problem
Brought to you by:
dav480,
peter_turner
From: salah j. <s_...@ya...> - 2006-03-03 01:13:46
|
Hi Guys I am working with NAP to do some image processing. i am using a nap function "get_gridascii" to read arc grid ASCII files. the size of images ranges from 2 MB to 100 MB and the platform that i am using is WINXP. I faced a problem such that the TCL shell give me message can not allocate memory. after calling "get_gridascii" several times. I used windows task manager utility to trace the process memory usage I find that a little a mount is freed after destroying a NAO object, I did the same test on two PCs and i get the same result on two versions of TCL. This is how i am using get_gridascii nap "get_gridascii('red.ASC')"; ::NAP::16-16 i used ::NAP::16-16 in order to free the memory but the memory did not freed. also i did another test like that nap "red=get_gridascii('red.ASC')"; and i used set red "" also i used unset red to free memory but the memory did not freed. I checked this with another versions like 5.0.3 and 5.0.2 and i get the same result. finally i made this test with 4.0.1 i get a good result doing the same test ,The memory was freed BUT I tried to open an image a bout 80 MB. the TCL shell stop responding. this image i was able to create ANO Object out of it with NAP 5.0.5 but i could not do the same with NAP 4.0.1. i did this test a gain twice an i faild to creat NAO object. What is the cause of this problem , is it a bug . and how can i free the memory. Best Regard Eng. Salah Al Jubeh MCP,MCAD,MCSD Mobile:00306947192421 --------------------------------- Yahoo! Mail Bring photos to life! New PhotoMail makes sharing a breeze. |