Kelvin,

Your example seems pretty complicated. I'm not sure I understand
what's going on. If I can't run a script it'll be hard for me to help you.

Try to write a smaller and simpler program that shows the same behaviour.


Patrick

----- Original Message -----
> thanks patrick, but i can't attach the whole set of scripts here, it
> is part of a complex system and you need some envirnments to run it(it
> is sending mms/wap contents to telco gateway.), the process is
> actually a forked child process,
>
> # main program
> # load child.pm by calling SIG{'INT'}
> $SIG{INT} = sub { ... new child ... }
>
> # destory child.pm by calling SIG{'ALRM'}
> alarm $TIMEOUT;
> eval {
>   # call method of child.pm
>   child->callsomething(...);
> };
>
> $SIG{ALRM} = sub {
>     print "child is going to sleep...\n";
>     exit;
> };
>
> #wake up this child.pm by calling SIG{'INT'} again
> kill "INT", $kid_pid;
> print "child woke up\n";
>
> the inline::java is used inside child.pm, by its method
> package child.pm
> sub callsomething{
>    # inline::java code here
>    # the system will be failed if i use inline::java here
>    # but works fine if i move all inline::java code to a standalone
> perl script and use a system call to execute it, eg: `perl
> childscript.pl`;
> }
>
> debug said it found child.pm namespace, created perl object but stop
> at creating java object.
>
> thanks.
>
>
> On Tue, 21 Dec 2004 08:47:39 -0500, Patrick LeBoutillier
> <[EMAIL PROTECTED]> wrote:
>> Kelvin Wu wrote:
>>
>> >thanks for all your reply.
>> >
>> >i am just wondering, if package name is wrong, the process should stop
>> >at creating perl object, but my debug shows me it stop at creating
>> >java object, which means it found namespace actually?
>> >
>> >
>>
>> That seems right...strange. The best thing for you to do would be to
>> submit a complete
>> working set of scripts (a .pl file and your 2 .pm file) that reproduce
>> the problem so that
>> I can look into it.
>>
>> Patrick
>>
>>
>> --
>> =====================
>> Patrick LeBoutillier
>> Laval, Quebec, Canada
>>
>>
>
>

Reply via email to