谢谢指点 用fork+exec,我在windows下遇到了下面的问题: free to wrong pool 1d96f40 not 292738 at .... 网上查了一下,似乎也没什么好的办法来解决
Date: Tue, 13 Apr 2010 12:39:51 +0800 Subject: Re: [PerlChina] 关于perl/tk From: [email protected] To: [email protected] 恩。。cmd不适于多任务GUI。。普通脚本里就很好用,重复200万条命令,内存也就多耗4M左右。。 2010/4/13 杨溪 <[email protected]> `cmd...` 和system类似, 只有在子进程结束后才会返回,可以考虑用fork+exec 2010/4/12 WENFENG LIU <[email protected]> 我写了个简单的gui应用,下面是其中的一段:my $file_f = $mw->Frame(-borderwidth => 2, -relief => 'groove')->pack(-side=>'right',-fill=>'both'); $file_f->Label( -text => 'Other' )->pack(-fill=>'x', -side=>'top'); $file_f->Button( -text => 'param', -command => sub { `notepad ../_vimrc` } )->pack(-fill=>'x', -expand=>'both'); 当按下button后,notepad被打开,如果这时候gui就没有响应了,只有notepad关闭后才能恢复。请问有什么办法解决吗,即一个任务还没完成,还可以进行其他操作。 Wfg LIU thanks Hotmail: Powerful Free email with security by Microsoft. Get it now. -- 您收到此邮件是因为您订阅了 Google 网上论坛的“PerlChina Mongers 讨论组”论坛。 要向此网上论坛发帖,请发送电子邮件至 [email protected]。 要取消订阅此网上论坛,请发送电子邮件至 [email protected]。 若有更多问题,请通过 http://groups.google.com/group/perlchina?hl=zh-CN 访问此网上论坛。 -- 您收到此邮件是因为您订阅了 Google 网上论坛的“PerlChina Mongers 讨论组”论坛。 要向此网上论坛发帖,请发送电子邮件至 [email protected]。 要取消订阅此网上论坛,请发送电子邮件至 [email protected]。 若有更多问题,请通过 http://groups.google.com/group/perlchina?hl=zh-CN 访问此网上论坛。 -- 您收到此邮件是因为您订阅了 Google 网上论坛的“PerlChina Mongers 讨论组”论坛。 要向此网上论坛发帖,请发送电子邮件至 [email protected]。 要取消订阅此网上论坛,请发送电子邮件至 [email protected]。 若有更多问题,请通过 http://groups.google.com/group/perlchina?hl=zh-CN 访问此网上论坛。 _________________________________________________________________ Hotmail: Powerful Free email with security by Microsoft. https://signup.live.com/signup.aspx?id=60969 -- 您收到此邮件是因为您订阅了 Google 网上论坛的“PerlChina Mongers 讨论组”论坛。 要向此网上论坛发帖,请发送电子邮件至 [email protected]。 要取消订阅此网上论坛,请发送电子邮件至 [email protected]。 若有更多问题,请通过 http://groups.google.com/group/perlchina?hl=zh-CN 访问此网上论坛。
