dbTalk Databases Forums  

Problem spawning another process with a VB6 custom task

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


Discuss Problem spawning another process with a VB6 custom task in the microsoft.public.sqlserver.dts forum.



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

Default Problem spawning another process with a VB6 custom task - 07-14-2003 , 07:42 AM






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



Reply With Quote
  #2  
Old   
Allan Mitchell
 
Posts: n/a

Default Re: Problem spawning another process with a VB6 custom task - 07-14-2003 , 05:19 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



"Greg" <gpmk (AT) yahoo (DOT) com> wrote

Quote:
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





Reply With Quote
  #3  
Old   
Greg
 
Posts: n/a

Default Re: Problem spawning another process with a VB6 custom task - 07-15-2003 , 03:40 AM



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.



"Allan Mitchell" <allan (AT) no-spam (DOT) sqldts.com> wrote

Quote:
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



"Greg" <gpmk (AT) yahoo (DOT) com> wrote in message
news:uu0P5UgSDHA.2432 (AT) TK2MSFTNGP10 (DOT) phx.gbl...
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







Reply With Quote
  #4  
Old   
Allan Mitchell
 
Posts: n/a

Default Re: Problem spawning another process with a VB6 custom task - 07-15-2003 , 04:20 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



"Greg" <gpmk (AT) yahoo (DOT) com> wrote

Quote:
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.



"Allan Mitchell" <allan (AT) no-spam (DOT) sqldts.com> wrote in message
news:e6ZpCYlSDHA.1572 (AT) TK2MSFTNGP12 (DOT) phx.gbl...
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



"Greg" <gpmk (AT) yahoo (DOT) com> wrote in message
news:uu0P5UgSDHA.2432 (AT) TK2MSFTNGP10 (DOT) phx.gbl...
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









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.