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

C#

 
GeneralRe: Problems with network interfaces Pin
Heath Stewart20-Feb-04 2:53
protectorHeath Stewart20-Feb-04 2:53 
GeneralRe: Problems with network interfaces Pin
Chen Pang20-Feb-04 4:19
Chen Pang20-Feb-04 4:19 
GeneralCheck if a web service is available Pin
Boogie19-Feb-04 15:03
Boogie19-Feb-04 15:03 
GeneralRe: Check if a web service is available Pin
Heath Stewart19-Feb-04 17:36
protectorHeath Stewart19-Feb-04 17:36 
GeneralRe: Check if a web service is available Pin
Boogie20-Feb-04 11:37
Boogie20-Feb-04 11:37 
GeneralRe: Check if a web service is available Pin
Heath Stewart20-Feb-04 13:13
protectorHeath Stewart20-Feb-04 13:13 
GeneralRe: Check if a web service is available Pin
Boogie20-Feb-04 13:24
Boogie20-Feb-04 13:24 
GeneralDataGrid crashes when data comes from sub threads Pin
Franz Pentenrieder19-Feb-04 11:57
Franz Pentenrieder19-Feb-04 11:57 
hi,

i have a datagrid bound on a dataset which i fill whith a method running in a threadpool. showed simple:
<br />
private void begin(object sender, System.EventArgs e)<br />
{<br />
    ThreadPool.QueueUserWorkItem( new WaitCallback( work ) );<br />
}<br />
<br />
public void work( object n )<br />
{<br />
    for ( int i = 0; i < 20; i++)<br />
    {<br />
        lock(this)<br />
        {<br />
        DataLayer.add( i );<br />
        }<br />
    }<br />
}<br />

after 3 items or when the thread ends the programm hangs or im getting a exeption on Appliaction.Run(). how can i do that without a programm crash?

i have read on MSDN DataSet doc "You must synchronize any write operations" but it seems the to be the datagrid? i also have tryed a workaround whit delegates, events and a static adding but same problems here.

i can't find the problem, i think i know not enough about this threadsave stuff. any idea how to do that, or is it simply not possible to fill a datagrid from a thread?
GeneralRe: DataGrid crashes when data comes from sub threads Pin
Heath Stewart19-Feb-04 12:05
protectorHeath Stewart19-Feb-04 12:05 
GeneralRe: DataGrid crashes when data comes from sub threads Pin
Franz Pentenrieder19-Feb-04 12:47
Franz Pentenrieder19-Feb-04 12:47 
GeneralStruct Question Pin
rbarzallo19-Feb-04 11:04
rbarzallo19-Feb-04 11:04 
GeneralRe: Struct Question Pin
Christian Graus19-Feb-04 11:20
protectorChristian Graus19-Feb-04 11:20 
GeneralRe: Struct Question Pin
rbarzallo19-Feb-04 11:35
rbarzallo19-Feb-04 11:35 
QuestionWhere is CPropertyPage? Pin
RNEELY19-Feb-04 9:53
RNEELY19-Feb-04 9:53 
AnswerRe: Where is CPropertyPage? Pin
Mazdak19-Feb-04 10:03
Mazdak19-Feb-04 10:03 
GeneralRe: Where is CPropertyPage? Pin
RNEELY19-Feb-04 11:00
RNEELY19-Feb-04 11:00 
GeneralRe: Where is CPropertyPage? Pin
Heath Stewart19-Feb-04 11:59
protectorHeath Stewart19-Feb-04 11:59 
GeneralSwitch from hyperlink and no hyperlink with datagrid Pin
Skooter19-Feb-04 8:48
Skooter19-Feb-04 8:48 
GeneralRe: Switch from hyperlink and no hyperlink with datagrid Pin
Heath Stewart19-Feb-04 12:10
protectorHeath Stewart19-Feb-04 12:10 
Generalno databases Pin
Ashwin C19-Feb-04 7:49
Ashwin C19-Feb-04 7:49 
GeneralRe: no databases Pin
Mazdak19-Feb-04 8:10
Mazdak19-Feb-04 8:10 
GeneralRe: no databases Pin
Ashwin C19-Feb-04 8:20
Ashwin C19-Feb-04 8:20 
GeneralVersion numbering Pin
quilkin19-Feb-04 7:32
quilkin19-Feb-04 7:32 
GeneralRe: Version numbering Pin
Nick Parker19-Feb-04 7:42
protectorNick Parker19-Feb-04 7:42 
GeneralRe: Version numbering Pin
Anonymous19-Feb-04 9:23
Anonymous19-Feb-04 9:23 

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.