[Gambas-user] Issue 300 in gambas: When using XmlReader, the memory isn't released after subroutine ends

gambas at ...2524... gambas at ...2524...
Thu Aug 9 18:26:16 CEST 2012


Status: New
Owner: ----
Labels: Version Type-Bug Priority-Medium OpSys-Any Dist-Any Arch-Any  
Desktop-Any GUI-Any

New issue 300 by uAle... at ...626...: When using XmlReader, the memory isn't  
released after subroutine ends
http://code.google.com/p/gambas/issues/detail?id=300

1) Describe the problem.

I am using DomotiGa which heavily can use the XMLRPC component of gambas.  
When i generate a lot of requests, then the application will run  
out-of-memory. I traced this down to the "miniServer.class" component. The  
attached "Main.module" will show that the memory only goes up, when it is  
running the subroutine for 50.000 times. Seems gambas doesn't free the  
Xml/XmlReader after the routine ends.

2) GIVE THE FOLLOWING INFORMATIONS (if they are appropriate):

Version: TRUNK (2.24.0 and also seen it in 3.21.0)
Revision: r1234 (if you use a development version)
Operating system: Linux
Distribution: Ubuntu
Architecture: x86
GUI component: N/A
Desktop used: XFCE

3) Provide a little project that reproduces the bug or the crash.

Just run the attached "Main.module" and notice that the memory usage only  
goes up, and is never released.

4) If your project needs a database, try to provide it, or part of it.

5) Explain clearly how to reproduce the bug or the crash.

6) By doing that carefully, you have done 50% of the bug fix job!

IMPORTANT NOTE: if you encounter several different problems or bugs, (for
example, a bug in your project, and an interpreter crash while debugging
it), please create distinct issues!

Attachments:
	Main.module  1.6 KB





More information about the User mailing list