Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Segfault while removing channels #45

Open
verpeteren opened this issue Oct 16, 2013 · 1 comment
Open

Segfault while removing channels #45

verpeteren opened this issue Oct 16, 2013 · 1 comment

Comments

@verpeteren
Copy link
Contributor

I found 2 ways:

method 1:

Ape.addEvent('init', function() {
    var channel = Ape.mkChan('diediediemydarling');
});
Ape.addEvent("mkchan", function(channel) {
    Ape.log(channel.getProperty('name') + " created");
    Ape.rmChan(channel.getProperty('name'));
})

method 2

Ape.addEvent('init', function() {
    var channel = Ape.mkChan('diediediemydarling');
    Ape.setTimeout(
        function() {
            Ape.log("stopping now");
            Ape.rmChan(channel.getProperty('name'));
        }, 3000);
});

Ape.addEvent('mkChan', function(channel) {
    Ape.log(channel.getProperty('name') + " created");
});

Ape.addEvent("rmchan", function(channel) {
    Ape.log(channel.getProperty('name') + " deleted");
    Ape.rmChan(channel.getProperty('name'));
});
@ptejada
Copy link
Contributor

ptejada commented Oct 19, 2013

So maybe the channel has not been fully created when attempting to remove it?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants