Click here to Skip to main content
15,903,201 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: GetItemText returns bad CString & can't change subitem color in CustomDraw Pin
Tomasz Sowinski5-Aug-04 9:27
Tomasz Sowinski5-Aug-04 9:27 
GeneralRe: GetItemText returns bad CString & can't change subitem color in CustomDraw Pin
Mike Landis5-Aug-04 9:57
Mike Landis5-Aug-04 9:57 
GeneralRe: GetItemText returns bad CString & can't change subitem color in CustomDraw Pin
Tomasz Sowinski5-Aug-04 10:14
Tomasz Sowinski5-Aug-04 10:14 
GeneralRe: GetItemText returns bad CString & can't change subitem color in CustomDraw Pin
Mike Landis5-Aug-04 10:49
Mike Landis5-Aug-04 10:49 
GeneralRe: GetItemText returns bad CString & can't change subitem color in CustomDraw Pin
Tomasz Sowinski5-Aug-04 11:03
Tomasz Sowinski5-Aug-04 11:03 
GeneralRe: GetItemText returns bad CString & can't change subitem color in CustomDraw Pin
Tomasz Sowinski6-Aug-04 1:17
Tomasz Sowinski6-Aug-04 1:17 
GeneralRe: GetItemText returns bad CString & can't change subitem color in CustomDraw Pin
Tomasz Sowinski5-Aug-04 2:18
Tomasz Sowinski5-Aug-04 2:18 
Generalthread stack overflow problem.. Pin
TssPrasad4-Aug-04 17:47
sussTssPrasad4-Aug-04 17:47 
We have a multithreaded application, in which multiple threads call a function which has an win32 api CreateDirectory( ).

We observe a stack overflow at a location in ntdll.dll which raises from createdirectory( ) api further calling many other functions in Kernel32.dll and ntdll.dll...

When I attach the process to debugger(windbg ) and put a breakpoint at CreateDirectory( ) ,the control of the execution comes there and when proceeded, stack overflow is not observed..

without a breakpoint, if we try to proceed after attaching to the process, we get a stack overflow from this api at the internal function in ntdll.dll..

we tried out two options

1) By increasing this thread stack size from default 1MB to 10MB(as we saw, one system needs more than 3MB which was sufficient in many system). This increases the stack size of the thread and the Stack overflow is overcome..

Here the question is How a thread of a particular stack size undergoes a stack overflow in one h/w configuration and doesn't stack overflow in other hardware configurations...OS in all the h/w configuration is Win2K_English..
same case with winXP OS too..

2) By putting a sleep(1) ,delay of 1ms before the CreateDirectory( ) api on assumption of a timing issue..

These two options seems to work, but we are not sure on how it circumvents the stack overflow problem..

Any lights on this issue is highly appreciated.

Regards,

Shiva P

GeneralRe: thread stack overflow problem.. Pin
palbano4-Aug-04 18:04
palbano4-Aug-04 18:04 
GeneralRe: thread stack overflow problem.. Pin
TssPrasad4-Aug-04 18:13
sussTssPrasad4-Aug-04 18:13 
GeneralRe: thread stack overflow problem.. Pin
Jijo.Raj4-Aug-04 19:01
Jijo.Raj4-Aug-04 19:01 
GeneralHelp needed!!!! Pin
pundit4-Aug-04 17:47
pundit4-Aug-04 17:47 
GeneralRe: Help needed!!!! Pin
Antti Keskinen4-Aug-04 22:15
Antti Keskinen4-Aug-04 22:15 
QuestionHow to distinguish file from directory ? Pin
Amarelia4-Aug-04 17:23
Amarelia4-Aug-04 17:23 
AnswerRe: How to distinguish file from directory ? Pin
PJ Arends4-Aug-04 17:52
professionalPJ Arends4-Aug-04 17:52 
AnswerRe: How to distinguish file from directory ? Pin
Shiva Prasad4-Aug-04 17:59
Shiva Prasad4-Aug-04 17:59 
GeneralRe: How to distinguish file from directory ? Pin
PJ Arends4-Aug-04 18:16
professionalPJ Arends4-Aug-04 18:16 
GeneralSpy ++ , Thread and Message Pin
Danny Gilbert4-Aug-04 17:23
Danny Gilbert4-Aug-04 17:23 
GeneralRe: Spy ++ , Thread and Message Pin
Ryan Binns4-Aug-04 18:21
Ryan Binns4-Aug-04 18:21 
GeneralRe: Spy ++ , Thread and Message Pin
Danny Gilbert5-Aug-04 4:12
Danny Gilbert5-Aug-04 4:12 
GeneralRe: Spy ++ , Thread and Message Pin
Ryan Binns5-Aug-04 17:15
Ryan Binns5-Aug-04 17:15 
GeneralRe: Spy ++ , Thread and Message Pin
Danny Gilbert5-Aug-04 18:23
Danny Gilbert5-Aug-04 18:23 
QuestionHow to use a functin in ANSI which is taking UNICODE standard ? Pin
Amarelia4-Aug-04 17:17
Amarelia4-Aug-04 17:17 
AnswerRe: How to use a functin in ANSI which is taking UNICODE standard ? Pin
PJ Arends4-Aug-04 17:37
professionalPJ Arends4-Aug-04 17:37 
GeneralButton Pin
Archer2824-Aug-04 16:59
Archer2824-Aug-04 16:59 

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.