Click here to Skip to main content
15,893,594 members
Home / Discussions / C#
   

C#

 
GeneralRe: Getting an intersect of a color Pin
Philip Fitzsimons27-Aug-03 2:45
Philip Fitzsimons27-Aug-03 2:45 
GeneralRe: Getting an intersect of a color Pin
Ista27-Aug-03 3:37
Ista27-Aug-03 3:37 
GeneralRe: Getting an intersect of a color Pin
Philip Fitzsimons27-Aug-03 3:54
Philip Fitzsimons27-Aug-03 3:54 
GeneralRe: Getting an intersect of a color Pin
Rein Hillmann27-Aug-03 7:59
Rein Hillmann27-Aug-03 7:59 
GeneralRe: Getting an intersect of a color Pin
Ista27-Aug-03 11:03
Ista27-Aug-03 11:03 
GeneralRe: Getting an intersect of a color Pin
Rein Hillmann27-Aug-03 12:03
Rein Hillmann27-Aug-03 12:03 
GeneralRe: Getting an intersect of a color Pin
Roger Alsing28-Aug-03 2:05
Roger Alsing28-Aug-03 2:05 
Generalthreading and file permissions Pin
Member 46589526-Aug-03 11:26
Member 46589526-Aug-03 11:26 
I am experiencing a problem when trying to open a file using StreamReader inside a newly created thread.

My main program creates the thread as follows:

Thread t = new Thread(new ThreadStart(ProcessFileThreadOperation));
t.Start();

Pretty straight forward. If I remove the thread altogether and simply call

ProcessFileThreadOperation();

then everything works great, so I know that the code inside this method works fine. However when I call the method so that it can be run on a separate thread, I get an error as soon as it tries to open the StreamReader with the error:

Error: Logon failure: unknown user name or bad password.

So now my best guess is that file security permissions are not passed on to threads? If that's the case, anyone have any suggestions on a workaround? Any help would be _greatly_ appreciated...

Thanks,

Julie
GeneralWeird System.IO Related Problems Pin
Ranjan Banerji26-Aug-03 11:03
Ranjan Banerji26-Aug-03 11:03 
Generaldll-dependencies Pin
MeisterBiber26-Aug-03 10:01
MeisterBiber26-Aug-03 10:01 
Generalconstructor calls constructor ( java: this(..) ) Pin
MeisterBiber26-Aug-03 9:45
MeisterBiber26-Aug-03 9:45 
GeneralRe: constructor calls constructor ( java: this(..) ) Pin
Jim Stewart26-Aug-03 10:13
Jim Stewart26-Aug-03 10:13 
GeneralRe: constructor calls constructor ( java: this(..) ) Pin
MeisterBiber26-Aug-03 10:42
MeisterBiber26-Aug-03 10:42 
GeneralCustom control Pin
Lasse Johansen26-Aug-03 9:16
Lasse Johansen26-Aug-03 9:16 
GeneralRe: Custom control Pin
Lasse Johansen26-Aug-03 9:50
Lasse Johansen26-Aug-03 9:50 
GeneralRe: Custom control Pin
Alvaro Mendez27-Aug-03 9:38
Alvaro Mendez27-Aug-03 9:38 
GeneralRe: Custom control Pin
Lasse Johansen27-Aug-03 9:54
Lasse Johansen27-Aug-03 9:54 
Generaldetect the connection Pin
aguest26-Aug-03 8:42
aguest26-Aug-03 8:42 
GeneralRe: detect the connection Pin
Ista26-Aug-03 16:07
Ista26-Aug-03 16:07 
GeneralRe: detect the connection Pin
Anonymous26-Aug-03 21:26
Anonymous26-Aug-03 21:26 
Generalgetting rows in a dataviewmanager Pin
zuhx26-Aug-03 8:27
zuhx26-Aug-03 8:27 
QuestionIgnorant simple data binding ? Pin
Ista26-Aug-03 8:27
Ista26-Aug-03 8:27 
Generalactive directory - DirectoryEntry Pin
devvvy26-Aug-03 7:42
devvvy26-Aug-03 7:42 
GeneralRe: active directory - DirectoryEntry Pin
Ista26-Aug-03 16:09
Ista26-Aug-03 16:09 
GeneralRe: active directory - DirectoryEntry Pin
devvvy26-Aug-03 16:12
devvvy26-Aug-03 16:12 

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.