|
Cliff Hatch wrote: All the threads close down cleanly when I halt - I assume you mean "pause"?
:-> Ummm, terminology stuff... Yes, I meant "pause", otherwise the rest of my suggestions would not be of any use.
Find the menu option 'Threads...', in VC6 it's under the 'Debug' menu.
Inside the small thread window you can choose which thread you'd like to see the context for. As I understood it there will be three whereas you'll recognize the top of the call stack for two of them since it most likely will be your own code. The third is the unknown and it would help a lot if you can provide information about the call stack for that thread.
Cliff Hatch wrote: I don't see how the call stack or anything else will be affected when the application is paused.
Of course the call stack won't change during the application pause, but the contents of the call stack are important: what's at the bottom and what's at the top of the call stack.
Cliff Hatch wrote: Apologies for this - I think I must be completely mis-interpreting your suggestion
No worries!
--
Roger
"It's supposed to be hard, otherwise anybody could do it!" - selfquote
"No one remembers a coward!" - Jan Elfström 1998 "...but everyone remembers an idiot!" - my lawyer 2005 when heard of Jan's saying above
|
|
|
|
|
Many thanks for this Roger.
I didn't know the "Threads" window existed. I found it under "Debug", "Windows", "Threads" in .NET 2002, and suddenly your original post makes perfect sense.
The unknown thread has the generic sounding title "Win32 Thread", and the call stack contains just two entries:
ntdll.dll!7c90eb94()
kernel32.dll!7c80b683()
I'm still curious about what it does, but it is clearly a system thing (see also reply from David Crow below). I'm happy to accept that - and even happier to have discovered a new Visual Studio feature along the way.
Best Regards
Cliff
-- modified at 12:11 Tuesday 5th December, 2006
|
|
|
|
|
The other thread could come from code other than yours. For example, use Task Manager to watch Visual Studio's thread count. Now open a file, and watch the thread count increase by several.
"Approved Workmen Are Not Ashamed" - 2 Timothy 2:15
"Judge not by the eye but by the heart." - Native American Proverb
|
|
|
|
|
Thanks David
Yes, I see the thread count changing. There seem to be a number of short-lived threads in addition to the persistent one I noticed.
Best Regards
Cliff
|
|
|
|
|
Hi!!
How i can load my srting in resource file..
ie in my method, i have created one messagebox like
Messagebox(NULL,_T("There is no selected text" + pmy + "in my section "),_T("Error message"),MB_OK);
now i want this string in my resource file.. ie in resource file i have created IDS_ABOUTBOX.
Can any body help me??
Thanking you..
Shah Satish
|
|
|
|
|
use
CString::LoadString(IDS_MY_STRING); for instance, or
CString::Format(IDS_MY_STRING, _T("optional parameter if required"), 3);
|
|
|
|
|
But in my method...ie where declred my message box, there is no class...
but in Tools.cpp there is one function called..GetString but first of all i have to load.
shah satish
|
|
|
|
|
first of all, i'll ask you to make an effort because i don't really understand your english. i only guess what you're trying to do.
as i already explicited the methods to use, here is an illustration :
CString strMessage, strTitle;
strTitle.LoadString(IDS_ERROR_MESSAGE);
strMessage.Format(IDS_NO_SELECTED_TEXT, pmy);
Messagebox(NULL, strMessage, strTitle, MB_OK); with the following asserts :
IDS_NO_SELECTED_TEXT : "There is no selected text %s in my section"
change the %s consequently if your parameter is not a string
IDS_ERROR_MESSAGE : "Error message"
|
|
|
|
|
Hello sir,
Sorry for my English language...but this is the exactly what i want to do..
Thank you very much for your help..
Shah
|
|
|
|
|
Hi All,
I don't understand when i need\can use the function select in TCP\IP develop
( winsock use) i understand how to use it - but when to do it i don't know.
If there is some example - i will happy to have the link.
Thanks for any help.
|
|
|
|
|
AFAIK you need the select "to pump" the TCP/IP traffic. So you got to call select in a timed loop. You should do the winsock stuff in a separate thread.
Thats the most I know about this.
Greetings from Germany
|
|
|
|
|
I need to distinguish between the windows shutdown and restart commands given by the user ,using VC++ code. Can anyone help me with that? To identify which event is taking place.
Thanks for ur help and time !!!
|
|
|
|
|
I think the WM_ENDSESSION message will help you. Another interesting WM ist WM_POWERBROADCAST for power events.
Greetings from Germany
|
|
|
|
|
sir,
we are not able to access part-ii and part-iii.
we didt get any link to access above mentioned.
please suggests to do the necessary
Geetha.P
|
|
|
|
|
WTF are you talking about ?
|
|
|
|
|
p.geetha wrote: we are not able to access part-ii and part-iii.
What about part-i?
"Approved Workmen Are Not Ashamed" - 2 Timothy 2:15
"Judge not by the eye but by the heart." - Native American Proverb
|
|
|
|
|
DavidCrow wrote: What about part-i
part-i has been deprecated. Users developing new applications should use part-ii and part-iii
Mark
|
|
|
|
|
Hi all,
I am working with backup application and i am new with this.I have little bit idea about storage domain.
now I have to implement differential and increamental backup policies.
that is why i want to study with that.
can any body provide me links for these algorithm document.
Thanks & Regards
Bankey khandelwal
|
|
|
|
|
The "standard" way when you do a full backup is to clear (reset) the Archive flag for every file backed up.
Then, when you do an incremental backup, you just backup the files who has got its Archive flag set (because those files has changed since the archive flag was cleared by the last backup).
Alcohol. The cause of, and the solution to, all of life's problems - Homer Simpson
|
|
|
|
|
thanks for quick reply,
is there any application which is allready implemented these policies.
so i can implement these policies with the help of this application.
Thanks & Rgards
Bankey Khandelwal.
|
|
|
|
|
As far as I know: All of the existing backup programs!
Backup policies is the reason for the sheer existance of the Archive flag.
The OS always sets the archive flag when writing to a file (of any kind).
The reason for that is to signal that the file is altered/created and in need of a backup, incremental or not.
Alcohol. The cause of, and the solution to, all of life's problems - Homer Simpson
|
|
|
|
|
I am trying to create text using OpenGL in a VC++ project, but i am not able to do it.I created text using device context,but it is not relevant.So if anybody can provide me some important link or code for that,please forward it as soon as possible.
My ID: pankaj_theangel@yahoo.com
|
|
|
|
|
|
what is wrong ? what is wrong with my code ? is not working !! Please help me !!!!!
pBun->Edit();
sTemp = m_list.GetItemText(i,21);
sTemp.TrimLeft();
sTemp.TrimRight();
pBun->m_rcd12 = sTemp;
pBun->Update();
pBun->Move(AFX_MOVE_REFRESH);
m_log2.SetWindowText(pBun->m_rcd12);
pBun->Close();
delete pBun;
is not working !!!!please help me , all i whant is to edit a field in my column->table!!!!!
Bravoone
|
|
|
|
|
What does 'not working' mean ? This is full of MFC calls, without knowing what the objects are, it's very hard to comment. Even harder when we don't know what's going wrong.
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
|
|
|
|