I am trying to import functions from iRun50.dll and create my own DLL
which will use these functions for a certain task.
The problem is that it is a periodic task, so I created a thread
(also tried before a timer) from which I am calling the imported
functions. But nothing works there. If I am using the functions
outside the thread - they work!. But I must use them from insde a
thread or a timer message handler.
My DLL is called from a regular LR script from within the Action
procedure, and the DLL is built in VS2008.
Many thanks!
--
You received this message because you are subscribed to the Google "LoadRunner" group.
To post to this group, send email to LR-Loa...@googlegroups.com
To unsubscribe from this group, send email to
LR-LoadRunne...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/LR-LoadRunner?hl=en
The problem is that he is calling an external DLL that creates a
thread from within loadrunner. The fact that he runs into trouble
there does not surprise me: The entire load generator infrastructure
is designed around the idea that Loadrunner manages the threads, not
you yourself. It sounds like the type of thing that is just bound to
create problems.
However, since I have never tried this or seen this kind of setup
before I have no advice to offer other than "just don't do that then"
or "call HP" like Pulley says.
Regards,
Floris
---
'What does it mean to say that one is 48% slower? That's like saying
that a squirrel is 48% juicier than an orange - maybe it's true, but
anybody who puts the two in a blender to compare them is kind of
sick.'
--- Linus Torvalds
I understood your answers.
Maybe I would explain the procedure better:
I wrote a DLL with visual studio 2008. This DLL exports a function
which uses Irun50.dll exported functions to do certain task.
My load engineer calls my DLL function from his Load Runner script.
The reasoning for this work was to allow a parallel task to be
executed along with the LR script.
Since this task should be a parallel and periodic I had to build a
thread with a while(true) and a Sleep (or Think Time) inside the
thread function.
Is it helpful?
Thanks!
1. I didn't get nothing on the logs.
2. I am not getting out of the loop and that is by design, but because
I launched a thread, my function returned immediately after it so the
LR script could run ahead.
3. Anyway, we decided to quit those efforts and try to run a parallel
LR script instead.
Thanks!
On Jan 22, 11:08 pm, pablomar <pablo.daniel.marti...@gmail.com> wrote:
> "I had to build a
> thread with a while(true) and a Sleep (or Think Time) inside the
> thread function."
>
> are you sure you are getting out of your loop ? or it remains there forever
> ?
>
> On Fri, Jan 22, 2010 at 4:04 PM, pablomar
> <pablo.daniel.marti...@gmail.com>wrote:
>
> > ok, thanks
> > as Floris said, manage your own threads inside loadrunner's threading is
> > dangerous
>
> > but experimentations is good :-), so let's try to solve it. Do you have any
> > kind of error message (either in loadrunner or in the windows event logs) ?
>
> > does it fails on VUgen ? on the LoadGenerator with only 1 vuser ? with more
> > than 1 ?
>
> > On Fri, Jan 22, 2010 at 3:21 PM, dushkin <talt...@gmail.com> wrote:
>
> >> Hi Floris and all the other kind guys.
>
> >> I understood your answers.
>
> >> Maybe I would explain the procedure better:
>
> >> I wrote a DLL with visual studio 2008. This DLL exports a function
> >> which uses Irun50.dll exported functions to do certain task.
> >> My load engineer calls my DLL function from his Load Runner script.
> >> The reasoning for this work was to allow a parallel task to be
> >> executed along with the LR script.
> >> Since this task should be a parallel and periodic I had to build a
> >> thread with a while(true) and a Sleep (or Think Time) inside the
> >> thread function.
>
> >> Is it helpful?
>
> >> Thanks!
>
> >> --
> >> You received this message because you are subscribed to the Google
> >> "LoadRunner" group.
> >> To post to this group, send email to LR-Loa...@googlegroups.com
> >> To unsubscribe from this group, send email to
> >> LR-LoadRunne...@googlegroups.com<LR-LoadRunner%2Bunsu...@googlegroups.com>