V4RB 3.0 and pre-emptive threads
Dave Addey
listmail1 at dsl.pipex.com
Tue Jul 24 10:40:05 CDT 2007
Hi Ruslan,
No worries. Thank you for persevering with this!
I agree that maybe REALbasic is not the tool to use for all of this
pre-emptive threading, but sadly I don't really have a choice right now.
However, the good news is that thanks to Charles's help with V4CC, I think I
have a workable approach. It has taken some work, but I think it will do
what I need.
Thanks both to Charles and Ruslan for all the help!
Dave.
> From: Ruslan Zasukhin <sunshine at public.kherson.ua>
> Reply-To: Valentina Developers <valentina at lists.macserve.net>
> Date: Tue, 24 Jul 2007 15:34:53 +0300
> To: "valentina at lists.macserve.net" <valentina at lists.macserve.net>
> Conversation: V4RB 3.0 and pre-emptive threads
> Subject: Re: V4RB 3.0 and pre-emptive threads
>
> On 24/7/07 11:30 AM, "Dave Addey" <listmail1 at dsl.pipex.com> wrote:
>
> Hi Dave,
>
>> Thanks to Charles's code, I'm now up and running with calling Valentina from
>> the background thread. I have one final question, and it's really an "is
>> this possible?" question. Here goes...
>
> -------
>> If I open a database on the main thread, is there a way for me to pass a
>> reference to it to my V4CC declares?
>
> I afraid no.
>
>> I'm aware that the VDatabase object in
>> REALbasic is a pointer to a REALobject in the V4RB plugin, and is not a
>> pointer straight to a valentina database instance.
>
>> Is there some way I can
>> pass these between the two? (Likewise for a Vcursor, to be passed back from
>> my V4CC declares to the REALbasic code on the main thread).
>
> Still no and no :-(
>
> REALobject contains INISDE (where and how is closed info) our structure
>
> struct DatabaseData
> {
> ulong hack; // for RB 2005
> FBL::I_Database* mpFblDatabase;
> VSQL::I_SqlDatabase_Ptr mpSqlDatabase;
> bool mLocal;
> I_Encryptable* mpEncryptable;
> };
>
>
> Even if assume, that we make in V4RB additional methods like
>
> Vdatabase.GetRef() as Integer
>
> To return you right into RB the raw value of FBL::I_Database*
> Still not solved, because V4CC is also ADK and it also have
> wrapper-structures around engine.
>
> I think this is wrong way ...may be you need switch from REALbasic ?
>
>
>
> --
> Best regards,
>
> Ruslan Zasukhin
> VP Engineering and New Technology
> Paradigma Software, Inc
>
> Valentina - Joining Worlds of Information
> http://www.paradigmasoft.com
>
> [I feel the need: the need for speed]
>
>
> _______________________________________________
> Valentina mailing list
> Valentina at lists.macserve.net
> http://lists.macserve.net/mailman/listinfo/valentina
More information about the Valentina
mailing list