Click here to Skip to main content
15,920,110 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionForcing an allocated Heap to physical memory & not to be swaped to the page file. Pin
ja100128-Oct-05 2:48
ja100128-Oct-05 2:48 
AnswerRe: Forcing an allocated Heap to physical memory & not to be swaped to the page file. Pin
David Crow28-Oct-05 3:04
David Crow28-Oct-05 3:04 
AnswerRe: Forcing an allocated Heap to physical memory & not to be swaped to the page file. Pin
Cedric Moonen28-Oct-05 3:13
Cedric Moonen28-Oct-05 3:13 
AnswerRe: Forcing an allocated Heap to physical memory & not to be swaped to the page file. Pin
Michael Dunn28-Oct-05 3:24
sitebuilderMichael Dunn28-Oct-05 3:24 
AnswerRe: Forcing an allocated Heap to physical memory & not to be swaped to the page file. Pin
Blake Miller28-Oct-05 7:32
Blake Miller28-Oct-05 7:32 
QuestionRe: Forcing an allocated Heap to physical memory & not to be swaped to the page file. Pin
ja100129-Oct-05 4:49
ja100129-Oct-05 4:49 
AnswerRe: Forcing an allocated Heap to physical memory & not to be swaped to the page file. Pin
Blake Miller31-Oct-05 3:21
Blake Miller31-Oct-05 3:21 
QuestionHow to debug an api call that generates an unknown error Pin
Dan Neely28-Oct-05 2:09
Dan Neely28-Oct-05 2:09 
Reposting here since I didn't get any responce in the c# forum.

My app's written in c#, but the error's being generated by a win32 api call. I'm using the following 3 api calls as demonstrated in the msdn article to monitor changes being made to a folder over samba (FileSystemWatcher won't do this). In my test app the water class works perfectly. When I use my watcher class in my main app everything is fine with one copy running. With two copies though, FindNextChangeNotification returns false and generates errorcode 0x64006e as returned by Marshal.GetLastWin32Error(). Win32Exception.Message describes this as an uknown error, and no error codes with this large a value are listed in msdn, or winError.h. Looking at the code between my main app and my tester I'm not seeing any meaningful differences, and with an unknown error I don't know wehre to be looking. The biggest difference between the two is that when a change occurs my tester just throws up a message box, while my main app reloads all the files in the folder. (There're only a handful so the performance hit from loading everything isn't enough to justify the extra work needed to ID which file was modified).

FindFirstChangeNotification
WaitForMultipleObjects
FindNextChangeNotification
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/fileio/fs/obtaining_directory_change_notifications.asp
Questionneed help in TrimStart() Pin
sheshidar28-Oct-05 1:58
sheshidar28-Oct-05 1:58 
AnswerRe: need help in TrimStart() Pin
willy_total28-Oct-05 2:23
willy_total28-Oct-05 2:23 
GeneralRe: need help in TrimStart() Pin
sheshidar28-Oct-05 3:22
sheshidar28-Oct-05 3:22 
GeneralRe: need help in TrimStart() Pin
willy_total31-Oct-05 2:58
willy_total31-Oct-05 2:58 
AnswerRe: need help in TrimStart() Pin
shivditya28-Oct-05 2:52
shivditya28-Oct-05 2:52 
QuestionMessage Pumps in MFC Pin
Eytukan28-Oct-05 1:02
Eytukan28-Oct-05 1:02 
AnswerRe: Message Pumps in MFC Pin
David Crow28-Oct-05 2:54
David Crow28-Oct-05 2:54 
GeneralRe: Message Pumps in MFC Pin
Eytukan28-Oct-05 4:21
Eytukan28-Oct-05 4:21 
GeneralRe: Message Pumps in MFC Pin
Eytukan28-Oct-05 4:23
Eytukan28-Oct-05 4:23 
GeneralRe: Message Pumps in MFC Pin
David Crow28-Oct-05 4:48
David Crow28-Oct-05 4:48 
GeneralRe: Message Pumps in MFC Pin
Eytukan28-Oct-05 5:51
Eytukan28-Oct-05 5:51 
GeneralRe: Message Pumps in MFC Pin
David Crow28-Oct-05 6:16
David Crow28-Oct-05 6:16 
Questioncaret position from ms word Pin
sudeesh28-Oct-05 0:23
sudeesh28-Oct-05 0:23 
QuestionWritePrinter Code to Test Pin
AsimUmair28-Oct-05 0:13
AsimUmair28-Oct-05 0:13 
QuestionUsing CDO in VC6 how to send email Pin
naeemnimi27-Oct-05 23:46
naeemnimi27-Oct-05 23:46 
AnswerRe: Using CDO in VC6 how to send email Pin
ThatsAlok28-Oct-05 0:09
ThatsAlok28-Oct-05 0:09 
GeneralRe: Using CDO in VC6 how to send email Pin
kakan28-Oct-05 0:39
professionalkakan28-Oct-05 0:39 

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.