msvisual.com Forum Index
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister   ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

automation error in subclasse mode / timer event

 
Post new topic   Reply to topic    msvisual.com Forum Index -> OLE Automation
Author Message
Eugen Tackover



Joined: 04 Oct 2007
Posts: 6

PostPosted: Wed Nov 08, 2006 10:22 pm    Post subject: automation error in subclasse mode / timer event Reply with quote

I get the following automation error message (translated from German so it
might not be exactly the corresponding English VB6 or WinXP term):

Automation Error: An outgoing call cannot be executed because of the
application passes on an input-synchronized call.

My application A.EXE tries do access a third party COM server (TPCS) like
that: Set TPCS = New TPCS.
This works fine when the code executing this command is called from a button
click within application A.EXE, but it fails when the code is called from
within a subclassing routine. The subclassing is done to receive commands in
A.EXE via SendMessage using WM_COPYDATA from another applicaton B.

More precisely, the subclassing routine only fills a command buffer with the
incoming SendMessage command and invokes a timer, and the buffer content is
interpreted or executed in the next timer event. The SendMessage is
immediately freed up with ReplyMessage after filling up the command buffer
and before invoking the timer.

Subclassing and timer overhead stuff are carefully tested and work fine both
in executable A.EXE as well as in the VB6 IDE, when called from the second
Application B.EXE. Only the instancing as written above fails.

For me it looks like creating the instance of TPCS could not be done due to
it's calling from within the subclassing resp. timer routine. I'm not sure
what 'input-synchronized call' exactly does mean, but I think it's the
sublassing.

Question:

Is that right, is it not possible to create in A.EXE an instance of (already
running) TPCS while the code is running in a subclassed routine or timer
event?

If it IS possible, what else might cause such an error message?

Archived from group: microsoft>public>vb>ole>automation
Back to top
View user's profile Send private message
Eugen Tackover



Joined: 04 Oct 2007
Posts: 6

PostPosted: Thu Nov 09, 2006 4:29 pm    Post subject: Re: automation error in subclasse mode / timer event Reply with quote

correction:

I'm sorry I have to correct the description of the error's environment:
creating the new instance was NOT done via timer event but directly in the
subclassing routine. Creating via timer event works fine as expected.

So my question should be changed: is there only the way to create the new
instance as requested by a subclassed message using the ticker event, or can
it be done in any way immediately in the sublassing procedure?

Back to top
View user's profile Send private message
Display posts from previous:   
Related Topics:
"Error: -2147221163. Automation error Interface not register Hello all, Dev Box: Win2k Pro SP? This escapes me now. Pc at work I'm at home VB6 SP6 Office 2k Client box: Office 2k (SP Escapes me) XP Pro(Again SP Escapes me) I have a program that prints a excel sheet from vb6. This program has run on about 40 XP and

Automation error Hi everyone, I encountered the error message Automation error" Pls help. Tks Hui Hua

Automation Error i am opening ms word document with vb, few weeks ago it was fine, i opened that file with vb several time and no error from last week its giving that problem Runtime Error -2147319779 and saying object library not register. i am uinsg vb6 and msword 9.0 t

Error 438 on Automation Good evening, all. I have an Outlook Add In that uses a DLL to do it's crypto work. We wrote the DLL. This code works on 99 machines. The 100th is a Win2000 box and this code will not run. Set objCrypto = If Not o

Automation Error I am using VB6 to call an excel spreadsheet. One of my users is getting an error that no one else is getting and I can't recreate: Run-time error: 1-21474117851 (80010105) Automation Error The server threw an exception I checked Microsoft's knowledge base
Post new topic   Reply to topic    msvisual.com Forum Index -> OLE Automation All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group