Ticket #1273 (closed defect: fixed)
Padre::Plugin::Swarm patch for reloading
| Reported by: | bowtie | Owned by: | submersible_toaster |
|---|---|---|---|
| Priority: | minor | Milestone: | |
| Component: | plugins | Version: | 0.87 |
| Keywords: | Cc: |
Description
Hope this helps,
-
lib/Padre/Plugin/Swarm.pm
290 290 $self->wx(undef); 291 291 292 292 undef $instance; 293 294 $self->unload('Padre::Plugin::Swarm::Wx::Chat'); 295 $self->unload('Padre::Plugin::Swarm::Wx::Resources'); 296 $self->unload('Padre::Plugin::Swarm::Wx::Editor'); 297 $self->unload('Padre::Plugin::Swarm::Wx::Preferences'); 298 $self->unload('Padre::Plugin::Swarm::Transport::Global::WxSocket'); 299 $self->unload('Padre::Plugin::Swarm::Transport::Local::Multicast'); 300 $self->unload('Padre::Plugin::Swarm::Universe'); 301 $self->unload('Padre::Plugin::Swarm::Geometry'); 293 302 294 303 295 304 } -
lib/Padre/Plugin/Swarm/Transport.pm
17 17 my %args = @_; 18 18 $args{marshal} ||= $class->_marshal; 19 19 my $self = bless \%args, $class; 20 my $message_event = Wx::NewEventType ;20 my $message_event = Wx::NewEventType(); 21 21 $self->{message_event} = $message_event; 22 22 return $self; 23 23 }
Change History
comment:2 Changed 22 months ago by submersible_toaster
Thanks - there are bigger issues with unloading and reloading this plugin. In some situations on linux this will segfault . possibly because the background task from the previous incarnation has not been properly cleaned up and still trying to send events to a defunct WX obj. , I really don't know.
Note: See
TracTickets for help on using
tickets.

I have added some more thing to delete,