Click here to Skip to main content
16,006,001 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralUsing Windows users logon usernames and passwords in applications Pin
nadzzz4-Apr-05 4:09
nadzzz4-Apr-05 4:09 
GeneralRe: Using Windows users logon usernames and passwords in applications Pin
David Crow4-Apr-05 9:44
David Crow4-Apr-05 9:44 
GeneralRe: Using Windows users logon usernames and passwords in applications Pin
nadzzz5-Apr-05 6:01
nadzzz5-Apr-05 6:01 
GeneralRe: Using Windows users logon usernames and passwords in applications Pin
David Crow5-Apr-05 6:25
David Crow5-Apr-05 6:25 
Generalmenu across many views Pin
rgchezhian4-Apr-05 4:02
rgchezhian4-Apr-05 4:02 
GeneralRe: menu across many views Pin
RobJones4-Apr-05 5:30
RobJones4-Apr-05 5:30 
Generalopenvc help Pin
sumo694-Apr-05 3:41
sumo694-Apr-05 3:41 
QuestionError in creating thread in Multithreading Application ? Pin
Amarelia4-Apr-05 3:34
Amarelia4-Apr-05 3:34 
Hi

I have developed one Windows Service which runs after certain interval. It runs on Windows 2000 Professional OS.

Most of the code I have written in C++.

It's a multithreading application in which first when service starts it creates one thread called MasterThread. Then Master thread creates 100 ChildThreads.

First it creates all the 100 ChildThreads in to Suspended mode and when I need it I resume that thread.

The problem is like some time it creates only 20 Threads and it stucks execution over there. Some time it creates 80 threads or something like that and then it stucks. And some time it works fine creating 100 threads....

also sometime it gives error after running successfully for 2 to 3 hours. The error message Showing one dialog box like :

" Runtime Error!
Program : C:\Services|MyService.exe

R6025
-Pure virtual function call "

Does anybody know what these both problems are happening. Is there any limit on how many threads we can create on Windows 2000 and if we want to create more than that limit then what to do ?

Why it gets stuck after creating some number of threads...?

Pls help me...

Thankx in advance

Mahesh

Amarelia Maehsh
Gujarat
India

AnswerRe: Error in creating thread in Multithreading Application ? Pin
Alexander M.,4-Apr-05 4:43
Alexander M.,4-Apr-05 4:43 
GeneralRe: Error in creating thread in Multithreading Application ? Pin
Amarelia4-Apr-05 19:08
Amarelia4-Apr-05 19:08 
GeneralHandling Web Browser Events Pin
Steve Thresher4-Apr-05 3:16
Steve Thresher4-Apr-05 3:16 
Generalsofware deployment API Pin
K@LPESH4-Apr-05 3:03
K@LPESH4-Apr-05 3:03 
GeneralRe: sofware deployment API Pin
ThatsAlok4-Apr-05 18:50
ThatsAlok4-Apr-05 18:50 
GeneralRe: sofware deployment API Pin
Anonymous4-Apr-05 22:36
Anonymous4-Apr-05 22:36 
GeneralRe: sofware deployment API Pin
ThatsAlok4-Apr-05 22:57
ThatsAlok4-Apr-05 22:57 
GeneralcapGrabFrameNoStop Pin
Francis Chau4-Apr-05 2:23
Francis Chau4-Apr-05 2:23 
GeneralKill Command Pin
Anonymous4-Apr-05 0:30
Anonymous4-Apr-05 0:30 
GeneralRe: Kill Command Pin
toxcct4-Apr-05 0:34
toxcct4-Apr-05 0:34 
GeneralRe: Kill Command Pin
Alexander M.,4-Apr-05 2:38
Alexander M.,4-Apr-05 2:38 
GeneralRe: Kill Command Pin
David Crow4-Apr-05 2:48
David Crow4-Apr-05 2:48 
GeneralRe: Kill Command Pin
mpapeo4-Apr-05 10:37
mpapeo4-Apr-05 10:37 
GeneralRe: Kill Command Pin
David Crow4-Apr-05 10:42
David Crow4-Apr-05 10:42 
GeneralRe: Kill Command Pin
mpapeo4-Apr-05 12:13
mpapeo4-Apr-05 12:13 
GeneralMFC MDI Help Menu Pin
Kyudos4-Apr-05 0:09
Kyudos4-Apr-05 0:09 
GeneralRe: MFC MDI Help Menu Pin
Kyudos4-Apr-05 4:01
Kyudos4-Apr-05 4:01 

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.