Click here to Skip to main content
15,885,365 members
Home / Discussions / C#
   

C#

 
GeneralRe: How to import data from OpenOffice to DataTable/DataSet Pin
devchina8-Feb-13 23:15
devchina8-Feb-13 23:15 
GeneralRe: How to import data from OpenOffice to DataTable/DataSet Pin
Richard MacCutchan8-Feb-13 23:42
mveRichard MacCutchan8-Feb-13 23:42 
GeneralRe: How to import data from OpenOffice to DataTable/DataSet Pin
Dave Kreskowiak9-Feb-13 3:36
mveDave Kreskowiak9-Feb-13 3:36 
QuestionShapefile Creations Pin
devchina8-Feb-13 17:52
devchina8-Feb-13 17:52 
AnswerRe: Shapefile Creations Pin
Dave Kreskowiak8-Feb-13 18:29
mveDave Kreskowiak8-Feb-13 18:29 
GeneralRe: Shapefile Creations Pin
devchina8-Feb-13 18:38
devchina8-Feb-13 18:38 
GeneralRe: Shapefile Creations Pin
Dave Kreskowiak9-Feb-13 3:33
mveDave Kreskowiak9-Feb-13 3:33 
QuestionCross threaded operations Pin
MAW308-Feb-13 11:23
MAW308-Feb-13 11:23 
I have recently started to multithread my program and everything seems to work fine with the exception of a form I use to track the progress of data being transfered.

The Progress form is on the main thread, I send data to it as my program is processing it. The problem is that is does not appear on the form, I have used various methods to Invoke the thread but it just goes into a loop and never stops or just goes into oblivian. Some of the methods are as follows or similar:


C#
        public void UpdateStartTime(String text)
        {
            if (textBoxStartTime.InvokeRequired)
            {
                UpdateStartTimeCallback updateStartTimeCallback = new UpdateStartTimeCallback(UpdateStartTime);
                Invoke(updateStartTimeCallback, new object[] { Text });
            }
            else
            {
                textBoxStartTime.Text = text; 
            }
        }

and 

        public void UpdateStartTime(TextBox textBox, String text)
        {
            if (textBoxStartTime.InvokeRequired)
            {
                textBoxStartTime.Invoke(new Action<TextBox, String>(UpdateStartTime), new object[] { textBox, text }); 
            }
            else
            {
                textBoxStartTime.Text = text; 
            }
        }


I also tried a delegate but it just does not see the other thread, I have verified the thread numbers are different and they're being used, it just doesn't make the connection.

Any ideas or suggestions will be greatly appreciated, thanks in advance.
Michael

modified 8-Feb-13 17:41pm.

AnswerRe: Cross threaded operations Pin
Jibesh8-Feb-13 12:40
professionalJibesh8-Feb-13 12:40 
GeneralRe: Cross threaded operations Pin
MAW308-Feb-13 15:25
MAW308-Feb-13 15:25 
GeneralRe: Cross threaded operations Pin
Dave Kreskowiak8-Feb-13 18:31
mveDave Kreskowiak8-Feb-13 18:31 
Questionlibrary for command-line parameters Pin
lukeer8-Feb-13 3:06
lukeer8-Feb-13 3:06 
AnswerRe: library for command-line parameters Pin
PIEBALDconsult8-Feb-13 3:42
mvePIEBALDconsult8-Feb-13 3:42 
AnswerRe: library for command-line parameters Pin
PIEBALDconsult8-Feb-13 14:08
mvePIEBALDconsult8-Feb-13 14:08 
GeneralRe: library for command-line parameters Pin
Dave Kreskowiak8-Feb-13 14:11
mveDave Kreskowiak8-Feb-13 14:11 
GeneralRe: library for command-line parameters Pin
PIEBALDconsult8-Feb-13 14:21
mvePIEBALDconsult8-Feb-13 14:21 
GeneralRe: library for command-line parameters Pin
Dave Kreskowiak8-Feb-13 15:15
mveDave Kreskowiak8-Feb-13 15:15 
GeneralRe: library for command-line parameters Pin
PIEBALDconsult8-Feb-13 16:18
mvePIEBALDconsult8-Feb-13 16:18 
GeneralRe: library for command-line parameters Pin
Dave Kreskowiak8-Feb-13 18:45
mveDave Kreskowiak8-Feb-13 18:45 
Question3D C# windows from Pin
taufiki8-Feb-13 0:04
taufiki8-Feb-13 0:04 
AnswerRe: 3D C# windows from Pin
DaveyM698-Feb-13 0:12
professionalDaveyM698-Feb-13 0:12 
AnswerRe: 3D C# windows from Pin
Pete O'Hanlon8-Feb-13 0:36
mvePete O'Hanlon8-Feb-13 0:36 
AnswerRe: 3D C# windows from Pin
Amir Mohammad Nasrollahi29-Jul-13 22:27
professionalAmir Mohammad Nasrollahi29-Jul-13 22:27 
QuestionStoring folderBrowser.SelectedPath in a String Variable Pin
ASPnoob7-Feb-13 23:56
ASPnoob7-Feb-13 23:56 
AnswerMessage Closed Pin
8-Feb-13 0:00
mveCHill608-Feb-13 0:00 

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.