>>>>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.