dbTalk Databases Forums  

Code execution exception: EXCEPTION_ACCESS_VIOLATION

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


Discuss Code execution exception: EXCEPTION_ACCESS_VIOLATION in the microsoft.public.sqlserver.dts forum.



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

Default Code execution exception: EXCEPTION_ACCESS_VIOLATION - 01-19-2005 , 04:00 AM






Hello,

I am creating a dts package programmatically in a vb.net
windows program.

While executing the package i sometimes get the
error "Code execution exception:
EXCEPTION_ACCESS_VIOLATION"

The Dts is not executing in the main thread as below.

oStep.ExecuteInMainThread = False

Is that the reason why the program is generating the
exception.

Can anybody tell me how to solve this.


Reply With Quote
  #2  
Old   
Darren Green
 
Posts: n/a

Default Re: Code execution exception: EXCEPTION_ACCESS_VIOLATION - 01-19-2005 , 07:48 AM






Such errors are normally seen with thread issues, so I suggest you ensure
ExecuteInMainThread is true at least for any VB tasks or any task that
touch a package with a VB task in. In particular Exec Pkg Tasks. and Dynamic
Properties tasks often touch other tasks or other packages, as well as just
the VB tasks themselves.

--
Darren Green
http://www.sqldts.com

"Vidula" <anonymous (AT) discussions (DOT) microsoft.com> wrote

Quote:
Hello,

I am creating a dts package programmatically in a vb.net
windows program.

While executing the package i sometimes get the
error "Code execution exception:
EXCEPTION_ACCESS_VIOLATION"

The Dts is not executing in the main thread as below.

oStep.ExecuteInMainThread = False

Is that the reason why the program is generating the
exception.

Can anybody tell me how to solve this.




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.