Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
NewID in COM components
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
The Mere Mortals Framework
Divers
Thread ID:
00318189
Message ID:
00318617
Vues:
26
>>>>I don't know if this has come up before, but the SET REPROCESS TO AUTOMATIC in NewID() probably isn't the greatest idea for COM objects, since it assumes a UI to display the message.
>>>
>>>Check out Sys(2335, n)
>>>
>>>BOb
>>
>> OK, so now you're not left wondering why your component locked up. Hmm...I wonder if this get's set in MM when you compile as COM. Probably should be.
>
>Hey Paul,
>If you check out the cApplicationCOM subclass in cApp.vcx, in SetCOMEnvironment() we have SET REPROCESS TO 2 SECONDS.


Hmm...that takes care of the rest of the app, but NewID() would still be set to AUTOMATIC. When it's called, it saves the current REPROCESS setting, sets it to Auto, does what it needs to do to get the next ID, then resets it.
-Paul

RCS Solutions, Inc.
Blog
Twitter
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform