Hello Nicolas
Did you find out what cause the memory leaks?
As I am reviewing the documentation, (BTW, Which is progressing rather
well, I will keep you posted), I noticed some things that might be related
to growing memory.
1) Possible memory leak in private properties of pipe object
There is a comment in ape_sm_pipe_constructor
/* TODO : This private data must be removed is the pipe is destroyed */
It seems indeed that destroy_pipe only clears pubid
If you have many pipes that are beeing created/delete and you have
private properties that could be a problem.
As pipes, users and channels are 'alike' I checked further
* Ape.rmChan uses clear_properties(&chan->properties);
* The plugin callback ape_cb_del_user uses
clear_properties(&user->properties);
It appears that a clear_properties(&pipe->properties); in pipe.c's
destroy_pipe would do the trick.
But I am not sure though. Who knows?
2) The subject of the post is "quit"; is that as in user.quit()?
I have the feeling that the event deluser is not triggered correctly in
apeuser_sm_quit (see ape_cb_del_user)
But I am not 100 % sure. Who knows?
3) Possible memory leaks in registerCmd registerHookCmd, registerHookBadCmd.
There are serveral comments like '/* TODO : Effacer si déjà existant
(RemoveRoot & co) */'' But I think that the impact is negligable if you
call them 'normally' in main.ape.js etc. I think that you have other
problems than memory leaks if you keep adding these on the fly contiuously.
(Would be interesting project though... :-)
Peet R.
--
--
You received this message because you are subscribed to the Google
Groups "APE Project" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/ape-project?hl=en
---
APE Project (Ajax Push Engine)
Official website : http://www.ape-project.org/
Git Hub : http://github.com/APE-Project/
---
You received this message because you are subscribed to the Google Groups "APE
Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.