BorlandTalk.com Forum Index BorlandTalk.com
Borland discussion newsgroups
 
Archives   FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

OLE Automation crash

 
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi OLE Automation
View previous topic :: View next topic  
Author Message
Marcus
Guest





PostPosted: Wed Aug 24, 2005 6:42 am    Post subject: OLE Automation crash Reply with quote



Hey all, just moved from VB to Delphi (loving it), but having a few
problems with COM.

Made myself a nice little 'hello world' Automation object that I can
call from VBscript, to prove it can be done and familiarise myself with
the procedure. Worked fine, no problems.

The actual task is to make a UDP object that can be used from VBscript
to send and receive UDP messages (don't ask why, you really don't want
to know).

So I've made an automation object, added in some more methods and some
more complex code behind it (including the creation of some
TComponent-derived classes), but kept it window-free.

This object crashes every time when called from the VB script. I get a
'catastrophic failure' when the object is first called. The
CreateObject call goes through fine, I get back what looks like an
object handle, but call any method on that handle and it goes boom.

I can post code samples if it'll help, but has anyone else encountered
the same symptoms? I couldn't find anything directly relevant in the
list...

Here's hoping...

Back to top
Riki Wiki
Guest





PostPosted: Fri Aug 26, 2005 9:43 pm    Post subject: Re: OLE Automation crash Reply with quote



On 23 Aug 2005 23:42:44 -0700, Marcus wrote:

Quote:
Hey all, just moved from VB to Delphi (loving it), but having a few
problems with COM.

Hoi Marcus and welcome

You need to repost your message on the Borland news server, otherwise most
people will never see your question. Read all about it here:

http://delphi.wikicities.com/wiki/Delphi_Newsgroups

Back to top
Marcus
Guest





PostPosted: Mon Aug 29, 2005 3:31 am    Post subject: Re: OLE Automation crash Reply with quote



ahh, cool. Thanks for the info :)

Riki Wiki wrote:
Quote:
On 23 Aug 2005 23:42:44 -0700, Marcus wrote:

Hey all, just moved from VB to Delphi (loving it), but having a few
problems with COM.

Hoi Marcus and welcome

You need to repost your message on the Borland news server, otherwise most
people will never see your question. Read all about it here:

http://delphi.wikicities.com/wiki/Delphi_Newsgroups


Back to top
Display posts from previous:   
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi 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, 2006 phpBB Group
SEO toolkit © 2004-2006 webmedic.