Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
What to show the user while COM Server objects are runni
Message
De
08/09/1999 14:37:43
 
 
À
08/09/1999 12:59:00
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00261950
Message ID:
00262524
Vues:
15
>John,
>
>Hmm.. Dunno right off the top of my head but one way you could proceed is to pass the last record ID back as a parameter and let the calling routine call the COM routine with the last returned ID. That way the COM process would be geared to simply find the next qualified record, do whatever and pass that ID back.
>
>IOW, do you HAVE to have the control loop inside the COM object?
>
>The other way would be to pass an object reference as you suggested. I just haven't tried it yet as my routines always either pass a success token or a failure token (one of many so I can debug actually).
>
>
>>Doug,
>>
>>That is a great idea but ??? how do I do that.... Once you call a DCOM Object and it goes into a loop how do you send back a value
>>
>>
>>loDCOM = createobjectex('{some long list of numbers}','servername')
>>loDCOM.Start()
>>
>>
>>define class longloop as session olepublic
>>
>>omts = null
>>
>>PROCEDURE START
>>
>>*mts stuff here
>>
>>DO WHILE
>>* The long processing loop
>>* this loop in real life goes through a text file
>>* composed of millions of transactions and
>>* pulls out keys, amounts, address etc on record at a time
>>
>>>>>>> is it possible to talk back to the calling object ????
>>>>>>> if so how??
>>
>>>>>>> I was thinking of passing an object reference and calling it from this
>>>>>>> class i'll let you know
>>
>>>>>>> I guess i could always create an out of process exe ????
>>
>>
>>ENDDO
>>ENDPROC
>>ENDDEF
>>
>>Thanks
>>
>>JohnP
>>
>>
>>
>>
>>>John,
>>>
>>>Perhaps you could have your DCOM object squirt back to the calling procedure a number that represents "n of total n" numbers?
>>>
>>>That way the calling procedure could update the user's form with some information.
>>>
>>>Just a thought.
>>>
>>>
>>>>I have created several MTS/DCOM objects. These objects process large datasets, reports etc... .5 to 1.5 gig in size and can sometimes take 30 min including indexing. At present the system freezes until the DCOM object finshes. Does anyone have any ideas what to present to the user while processing is happening. When the objects were local I was able to create a thermometer I have no clue what to do know because the is no UI in in-process servers????
>>>>
>>>>
>>>>Thanks
>>>>
>>>>John Powers
>>>>
>>>>
>>>>INFOLynx
>>>
>>>
>>>Best,
>
>Best,
PMFJI,
I'm sure this can be done but, wouldn't it defeat the purpose of having a distributed application? I mean, both server and client doing work on the same process at the same time. And it would not help network traffic either.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform