Is it possible to run the REPORT FORM comand in a multi threaded dll?

I get Feature not Available. It runs fine in a single threaded dll or an
exe. The help indicates only the CREATE REPORT command is not supported in
dll's. I have tried with reportbehaviour=90 but doesn't help

I have found i can initiate a exe with createobject from the dll and run
reports from here - would this effect the call blocking in a multi threadedx
dll?

Any help appreciated

thanks

Greg

Re: multitheared dll and reports by John

John
Fri Feb 10 02:21:37 CST 2006

Greg,

No, it's not possible to run Report Form from a multi threaded dll.

Although I haven't tried it, I would expect that your MTDLL may well exhibit
call blocking behaviour as the exe you use to generate the report will use
the standard single threaded runtime libraries.

John

"Greg" <Greg@discussions.microsoft.com> wrote in message
news:A665D298-15D6-4421-A1B9-F9990C896951@microsoft.com...
> Is it possible to run the REPORT FORM comand in a multi threaded dll?
>
> I get Feature not Available. It runs fine in a single threaded dll or an
> exe. The help indicates only the CREATE REPORT command is not supported
> in
> dll's. I have tried with reportbehaviour=90 but doesn't help
>
> I have found i can initiate a exe with createobject from the dll and run
> reports from here - would this effect the call blocking in a multi
> threadedx
> dll?
>
> Any help appreciated
>
> thanks
>
> Greg
>
>



Re: multitheared dll and reports by Altman

Altman
Fri Feb 10 09:56:35 CST 2006

We ended up producing a seperate program (exe) for the reports. Then you
can use run /n and pass the report name and the database location as a
command line parameter and it will run as a seperate program and a seperate
thread. This has many advantages to it. If you have more than one program,
and the report program is written generic enough, then you can reuse it.
This is basically the only way to do multithreading in foxpro without using
a different language to create a dll.


"Greg" <Greg@discussions.microsoft.com> wrote in message
news:A665D298-15D6-4421-A1B9-F9990C896951@microsoft.com...
> Is it possible to run the REPORT FORM comand in a multi threaded dll?
>
> I get Feature not Available. It runs fine in a single threaded dll or an
> exe. The help indicates only the CREATE REPORT command is not supported
> in
> dll's. I have tried with reportbehaviour=90 but doesn't help
>
> I have found i can initiate a exe with createobject from the dll and run
> reports from here - would this effect the call blocking in a multi
> threadedx
> dll?
>
> Any help appreciated
>
> thanks
>
> Greg
>
>



Re: multitheared dll and reports by Claude

Claude
Fri Feb 10 18:15:35 CST 2006

Yes, you found the workaround for the problem. Just create an exe. COM
server with the REPORT FORM and from your vfp mtdll create the COM EXE
server and call the method that has the REPORT FORM. I haven't seen any
serious performance issues yet. It WILL NOT block other threads since each
thread would create its own server. Check out a demo of this architecture
here(PDF reports):
http://www.dotcomsolution.com/avfpdemo2/default.aspx

"Greg" <Greg@discussions.microsoft.com> wrote in message
news:A665D298-15D6-4421-A1B9-F9990C896951@microsoft.com...
> Is it possible to run the REPORT FORM comand in a multi threaded dll?
>
> I get Feature not Available. It runs fine in a single threaded dll or an
> exe. The help indicates only the CREATE REPORT command is not supported
> in
> dll's. I have tried with reportbehaviour=90 but doesn't help
>
> I have found i can initiate a exe with createobject from the dll and run
> reports from here - would this effect the call blocking in a multi
> threadedx
> dll?
>
> Any help appreciated
>
> thanks
>
> Greg
>
>



Re: multitheared dll and reports by Greg

Greg
Sun Feb 12 17:40:27 CST 2006

Thanks for all the replies. Nice to know other people are dealing with the
same issues

Greg

"Claude Fox" wrote:

> Yes, you found the workaround for the problem. Just create an exe. COM
> server with the REPORT FORM and from your vfp mtdll create the COM EXE
> server and call the method that has the REPORT FORM. I haven't seen any
> serious performance issues yet. It WILL NOT block other threads since each
> thread would create its own server. Check out a demo of this architecture
> here(PDF reports):
> http://www.dotcomsolution.com/avfpdemo2/default.aspx
>
> "Greg" <Greg@discussions.microsoft.com> wrote in message
> news:A665D298-15D6-4421-A1B9-F9990C896951@microsoft.com...
> > Is it possible to run the REPORT FORM comand in a multi threaded dll?
> >
> > I get Feature not Available. It runs fine in a single threaded dll or an
> > exe. The help indicates only the CREATE REPORT command is not supported
> > in
> > dll's. I have tried with reportbehaviour=90 but doesn't help
> >
> > I have found i can initiate a exe with createobject from the dll and run
> > reports from here - would this effect the call blocking in a multi
> > threadedx
> > dll?
> >
> > Any help appreciated
> >
> > thanks
> >
> > Greg
> >
> >
>
>
>