// JP opened flex table

Click to See Complete Forum and Search --> : multithreading


wopgne
April 13th, 2004, 05:05 AM
hi,

i have been trying to write a program using multithreading. but it seens that i have problems when using it with InsertItems.

there is no problem compiling but when running the program, a error related to memory occurs.

anyone can help me solve the problem?

VictorN
April 13th, 2004, 05:15 AM
Please read the last post in this thread: http://www.codeguru.com/forum/showthread.php?s=&postid=930209#post930209

Andreas Masur
April 13th, 2004, 07:04 AM
[Moved thread]

Andreas Masur
April 13th, 2004, 07:06 AM
Take a look at the following FAQ (http://www.codeguru.com/forum/showthread.php?s=&threadid=231250)...

wopgne
April 13th, 2004, 11:18 PM
with regards to previous qn
- facing problems while using worker thread to do InsertItem

have some query about the solutions suggested:

1) does it mean that when using InsertItem, workers thread cant be used? as it will create problems?


2) if workers thread cant be used. what are the reasons?

3) what are different and usage between worker thread and user interface thread?

4) will using user interface thread solve the following problems

Andreas Masur
April 14th, 2004, 01:20 AM
Originally posted by wopgne
1) does it mean that when using InsertItem, workers thread cant be used? as it will create problems?

No, they can be used...did you actually read the FAQ I pointed you to?

Originally posted by wopgne
2) if workers thread cant be used. what are the reasons?

There are none...

Originally posted by wopgne
3) what are different and usage between worker thread and user interface thread?

Multithreading with C++ and MFC (http://msdn.microsoft.com/library/default.asp?url=/library/en-us/vccore98/html/_core_multithreading_with_c.2b2b_.and_mfc.asp)...

Originally posted by wopgne
4) will using user interface thread solve the following problems
There is no need for a user-interface thread (at least not based on your provided description).

//JP added flex table