If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Data Access, Manipulation & Batch Languages > Delphi, C etc > DTS use of TPackage object instead of _Package interface

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 07-03-03, 09:58
ccowdrey@vectap ccowdrey@vectap is offline
Registered User
 
Join Date: Jun 2003
Posts: 2
Post DTS use of TPackage object instead of _Package interface

Hi,
I curently have a DTS package ( CoPackage interface - defined in
DTS_TLB.pas ) which works fine.
I would like to make use of the feedback properties OnStart, OnProgress,
OnFinish etc that the TPackage object provides instead.
Has anyone any example code of how to do this?.

At the moment, I am creating a TPackage object and calling ConnectTo (
passing in the CoPackage interface that worked before ) and then call the
execute method of TPackage ( No events setup as yet ), but always get an AV
at the point of caling Execute. Any ideas?, I have searched Google and found
many similar problems but no definitive solution.

Maybe I need to set the executeInmainThread property of all steps in the
package?

Many thanks.

Chris.
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On