dbTalk Databases Forums  

Events from task UI causing hang

microsoft.public.sqlserver.dts microsoft.public.sqlserver.dts


Discuss Events from task UI causing hang in the microsoft.public.sqlserver.dts forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Tony Proctor
 
Posts: n/a

Default Events from task UI causing hang - 03-13-2006 , 06:20 AM






Hi! I hope someone might be able to help me with this...

I have a couple of VB6 DTS Tasks that use the same VB UserControl. The
Control source code is part of those DTS projects rather than being a
separate OCX. The Control raises an event when either of 2 ComboBoxes are
changed. However, ever since this Public Event was added to the Control, the
DTS Task has been incurring some odd errors

Basically, changing the Properties of the DTS Task works lovely (the UI
appears and there are no errors), except after the Package has been
Executed. Then, any attempt to revisit the Task Properties results in:

"Failed to activate control 'VB.UserControl'. This control may be
incompatible with your application. Make sure that you are using the version
of the control that was provided with your application."

I don't believe this is a coding issue because it still fails if I comment
out the calls to RaiseEvent in that Control. However, if I also comment out
the Public Event declaration then the error doesn't happen any more. This
has all the hallmarks of some DTS issue/restriction that I'm not aware of.

Tony Proctor



Reply With Quote
  #2  
Old   
Tony Proctor
 
Posts: n/a

Default Re: Events from task UI causing hang - 03-14-2006 , 07:53 AM






OK, definitely looks like a Microsoft bug in the DTS framework. Not only
does the error go away if I remove the RaiseEvent calls, and (important) the
Public Event declaration itself, but I can also make it go away by changing
the way the Form is invoked.

If I invoke the default VB instance each time, e.g.

MyForm.Show vbModal

then it works, but if I create a new instance each time, e.g.

Dim oForm As MyForm
Set oForm = New MyForm
oForm.Show vbModal

then it fails.

Looks like one for the archives!

Tony Proctor

"Tony Proctor" <tony_proctor (AT) aimtechnology_NoMoreSPAM_ (DOT) com> wrote

Quote:
Hi! I hope someone might be able to help me with this...

I have a couple of VB6 DTS Tasks that use the same VB UserControl. The
Control source code is part of those DTS projects rather than being a
separate OCX. The Control raises an event when either of 2 ComboBoxes are
changed. However, ever since this Public Event was added to the Control,
the
DTS Task has been incurring some odd errors

Basically, changing the Properties of the DTS Task works lovely (the UI
appears and there are no errors), except after the Package has been
Executed. Then, any attempt to revisit the Task Properties results in:

"Failed to activate control 'VB.UserControl'. This control may be
incompatible with your application. Make sure that you are using the
version
of the control that was provided with your application."

I don't believe this is a coding issue because it still fails if I comment
out the calls to RaiseEvent in that Control. However, if I also comment
out
the Public Event declaration then the error doesn't happen any more. This
has all the hallmarks of some DTS issue/restriction that I'm not aware of.

Tony Proctor





Reply With Quote
Reply




Thread Tools
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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.