all groups > sql server dts > july 2003 >
You're in the

sql server dts

group:

Problem spawning another process with a VB6 custom task


Problem spawning another process with a VB6 custom task Greg
7/14/2003 10:42:56 PM
sql server dts: Greetings,

I have a VB6 custom task that calls another process via a custom written C++
Dll who's purpose it is to spawn and control another app by grabbing its std
handles.
The C++ Dll exists as an ActiveX control withinn the VB project and it all
works perfectly until the task is executed by the SQL scheduler.
Does anyone know the rules of execution within the scheduler Vs the
designer?
I have read every post as well as the MS KB articles and understand their
content.
My gut feel is that it lies within the threading model and how DTSRun.exe
does its work.

The result is that both CPU and memory hit max for about 5 secs, then it
terminates with an ACCESS_VIOLATION error. Also, the contents of the spawned
stdio pipe is in the DTS log, very scary.

Any comments appreciated.

Regards,

Greg King
MCSE

Re: Problem spawning another process with a VB6 custom task Allan Mitchell
7/14/2003 11:19:33 PM
Do you execute the Custom task on the main package thread and also any tasks
that touch it ?

--

----------------------------
Allan Mitchell (Microsoft SQL Server MVP)
MCSE,MCDBA
www.SQLDTS.com
I support PASS - the definitive, global community
for SQL Server professionals - http://www.sqlpass.org



[quoted text, click to view]

Re: Problem spawning another process with a VB6 custom task Allan Mitchell
7/15/2003 10:20:50 AM
Nope that's the one

--

----------------------------
Allan Mitchell (Microsoft SQL Server MVP)
MCSE,MCDBA
www.SQLDTS.com
I support PASS - the definitive, global community
for SQL Server professionals - http://www.sqlpass.org



[quoted text, click to view]

Re: Problem spawning another process with a VB6 custom task Greg
7/15/2003 6:40:38 PM
Thanks for the reply.

The package has just one task (the custom task) and it is set to execute on
the main package thread.
Is there another place to change that setting? I have done it by right
clicking the task choosing workflow properties.

Greg.



[quoted text, click to view]

AddThis Social Bookmark Button