Click here to Skip to main content
15,891,513 members
Home / Discussions / C#
   

C#

 
GeneralRe: Writing Assembly Attributes Programmatically Pin
PIEBALDconsult13-Apr-10 13:36
mvePIEBALDconsult13-Apr-10 13:36 
GeneralRe: Writing Assembly Attributes Programmatically Pin
Luc Pattyn13-Apr-10 13:41
sitebuilderLuc Pattyn13-Apr-10 13:41 
GeneralRe: Writing Assembly Attributes Programmatically Pin
PIEBALDconsult13-Apr-10 13:47
mvePIEBALDconsult13-Apr-10 13:47 
QuestionPrint images with the correct size Pin
Eagle3213-Apr-10 9:33
Eagle3213-Apr-10 9:33 
AnswerRe: Print images with the correct size Pin
Alan Balkany14-Apr-10 3:57
Alan Balkany14-Apr-10 3:57 
GeneralRe: Print images with the correct size Pin
Eagle3214-Apr-10 11:55
Eagle3214-Apr-10 11:55 
GeneralRe: Print images with the correct size Pin
Alan Balkany15-Apr-10 2:56
Alan Balkany15-Apr-10 2:56 
QuestionRunning a BackgroundWorker in a Single Threaded Apartment Pin
William Winner13-Apr-10 9:09
William Winner13-Apr-10 9:09 
So, I have been working on a project to allow me to query an OLAP data cube from within another program. I built a form that I use to connect to the cube, pull out the information for the user to select from, and then it creates the query.

It works great as a stand-alone application. The info is loaded using a BackgroundWorker and updates the UI as the loading completes certain levels (it can take up to a minute to load the entire cube's dimensions and lower levels.

My problem is that I built it to work in a program, that I now discover runs in a Single Threaded Apartment. Within that environment, the BackgroundWorker.DoWork event never gets called. I did a little test using the Threading.Thread model and that seems to work the way I would expect.

My question is, does anyone know why the BackgroundWorker wouldn't work within an STA and is there a way around it without rewriting my code to switch from a BackgroundWorker to the Threading.Thread model?
AnswerRe: Running a BackgroundWorker in a Single Threaded Apartment Pin
Luc Pattyn13-Apr-10 11:08
sitebuilderLuc Pattyn13-Apr-10 11:08 
GeneralRe: Running a BackgroundWorker in a Single Threaded Apartment Pin
William Winner13-Apr-10 11:21
William Winner13-Apr-10 11:21 
GeneralRe: Running a BackgroundWorker in a Single Threaded Apartment Pin
Luc Pattyn13-Apr-10 11:32
sitebuilderLuc Pattyn13-Apr-10 11:32 
GeneralRe: Running a BackgroundWorker in a Single Threaded Apartment Pin
William Winner13-Apr-10 11:49
William Winner13-Apr-10 11:49 
GeneralRe: Running a BackgroundWorker in a Single Threaded Apartment Pin
Luc Pattyn13-Apr-10 12:04
sitebuilderLuc Pattyn13-Apr-10 12:04 
GeneralRe: Running a BackgroundWorker in a Single Threaded Apartment [modified] Pin
William Winner13-Apr-10 12:15
William Winner13-Apr-10 12:15 
GeneralRe: Running a BackgroundWorker in a Single Threaded Apartment Pin
Luc Pattyn13-Apr-10 13:04
sitebuilderLuc Pattyn13-Apr-10 13:04 
GeneralRe: Running a BackgroundWorker in a Single Threaded Apartment Pin
William Winner13-Apr-10 13:18
William Winner13-Apr-10 13:18 
GeneralRe: Running a BackgroundWorker in a Single Threaded Apartment Pin
Luc Pattyn13-Apr-10 13:34
sitebuilderLuc Pattyn13-Apr-10 13:34 
GeneralRe: Running a BackgroundWorker in a Single Threaded Apartment Pin
William Winner16-Apr-10 10:12
William Winner16-Apr-10 10:12 
GeneralRe: Running a BackgroundWorker in a Single Threaded Apartment Pin
Luc Pattyn16-Apr-10 10:26
sitebuilderLuc Pattyn16-Apr-10 10:26 
GeneralRe: Running a BackgroundWorker in a Single Threaded Apartment Pin
William Winner13-Apr-10 11:50
William Winner13-Apr-10 11:50 
QuestionKernelbase error on Server 2008 Pin
Paladin200013-Apr-10 9:05
Paladin200013-Apr-10 9:05 
AnswerRe: Kernelbase error on Server 2008 Pin
Paw Jershauge13-Apr-10 10:45
Paw Jershauge13-Apr-10 10:45 
AnswerRe: Kernelbase error on Server 2008 Pin
mitch_olgren30-Jul-10 5:20
mitch_olgren30-Jul-10 5:20 
GeneralRe: Kernelbase error on Server 2008 Pin
Paladin200030-Jul-10 6:04
Paladin200030-Jul-10 6:04 
QuestionDoes anyone encountered problems with using of multiple TCP channels in .NET remoting app? [modified] Pin
Slava_K13-Apr-10 8:28
Slava_K13-Apr-10 8:28 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.