Without thread created on the concerned subroutine(run_script)that worked, but when I created thread on subroutine it is failing to do so which made me concluded it is not loading.
Anyway now it is loading, but I am facing modules interface problem in the thread because the loaded file(add.pl) has different modules in it( example I am using Device::Modem::GSM module in add.pl). So when the thread is going into the modem file it is not able to call certain methods. It is giving error to call the methods on execution.
And as you can see Device::Modem::GSM is built on other modules like Device::Modem, Device::Serialport. So the problem is getting complicated.
If I make any changes in the Modem modules my application will not be portable on machines.
Any solutions please............. | [reply] |
| [reply] |
OK....I tried to give the simple example in the first post.. I thought I would explain what I am trying do in my code and what i want from it. Its true that 'do add.pl' didn't work at first but during this time I solved the problem.
from beginning...
1. I am creating a thread
2. In the thread I called a function.
3. In the called function there is expression to load
external perl file add.pl
4. The add.pl has network modules in it.
(Example: use Device::Modem::GSM)
Because of these modules the thread is ending abnormally.
This where I am facing the present problem.....
(Moreover I am not able format my post here)
| [reply] |
So you say now you understood the problem on the basis of description....i understand you don't have solution....but atleast you think my problem is genuine or I am not able to explain properly
| [reply] |
So you say now you understood the problem on the basis of description....i understand you don't have solution....but atleast you think my problem is genuine or I am not able to explain properly
| [reply] |