Search:
Type: Posts; User: NigelQ
Search:
Search took 1.40 seconds.
-
December 11th, 2006, 11:20 PM
Did your worker thread create this "class pointer" you're deleting?
//Monitoring Communications Worker thread control function
UINT CNOx1000MonitorDlg::FuintMonitorComm (LPVOID PptrToClass)...
-
Whenever you think there's a solution to something like this, there generally is. You just need to take a big tug of coffee and think it through.
Instead of thinking about it from the part's...
-
April 30th, 2006, 11:54 PM
Sounds like it could be a memory problem.
Are you out of available memory when debugging?
If so, the system will switch over to using (very slow) virtual memory.
Check using your task...
-
November 22nd, 2005, 11:30 PM
You're very welcome :)
Here is one of the best sites describing network programming that I've come across. There are a lot of articles describing how to use sockets, and there are also several...
-
November 22nd, 2005, 11:23 PM
It is not ok to pass MFC objects across thread boundaries as has been described here. It's not really a question of memory leaks, it's more a question of how MFC does it's thing behind the scenes.
...
-
November 22nd, 2005, 11:03 PM
Well, their function is fairly well described in the help, but if you just want a quick comparison, there are a few to add to your list:
Mailslots are unidirectional
Mailslots are easy to...
-
November 22nd, 2005, 10:55 PM
Have you seen the API calls GetLogicalDrives and GetLogicalDriveStrings?
Hope this helps,
- Nigel
-
November 22nd, 2005, 10:47 PM
CSocket is designed to operate in "blocking" mode, this means it will wait until the requested operation completes, or an error occurs.
Specifically, in your example, it looks like the first call...
-
November 21st, 2005, 07:10 PM
...that were not somehow "obscured"
- Nigel
-
November 21st, 2005, 07:08 PM
You didn't mention which compiler or environment you're using, so I'll assume Microsoft (most other compilers and platforms have very similar features)...
It sounds like this page describes what...
-
October 18th, 2005, 11:52 AM
It looks as though you are using DAO to access the database here.
Switching to ADO would have significant benefits, including the ability to perform a GetRecordCount on a recordset.
An...
-
September 13th, 2005, 08:12 PM
I do not beleive this to be correct.
The order by will be called before the top 10 is selected, which should give you what you desire. This will work in Access.
So, as Erick suggested, I think...
-
September 13th, 2005, 02:21 PM
Use sockets wherever possible. DCOM sucks and is very buggy and sensitive to security settings.
I've used DCOM several times - it has never been easy to use. Sockets are much more predictable (and...
-
August 26th, 2005, 11:19 PM
There is space for some summary information within a Word document that often (but not always) goes unused.
This information is displayed when you access the file properties after you've opened...
-
August 26th, 2005, 11:06 PM
...and you really shouldn't include stdafx.h in a header file - only in cpp files.
Hope this helps,
- Nigel
-
August 25th, 2005, 03:42 PM
As you have it, the call is going to the CWinApp derined override of CreatThread, which does not have 6 parameters.
What you need to do is to force the use of the global CreateThread function by...
-
August 25th, 2005, 02:19 PM
The definition was right there too...
typedef struct _MyData {
int val1;
int val2;
} MYDATA, *PMYDATA;
-
August 25th, 2005, 11:59 AM
Is there a question here somewhere?
What error message are you getting?
- Nigel
-
August 24th, 2005, 10:21 PM
...and answering your specific question, PMYDATA is not defined anywhere. This does not appear to be a name that Microsoft would use, so it must be something within your own code (or wherever the...
-
August 24th, 2005, 10:15 PM
Derek buddy,
Look, I don't want to start off all negative or discouraging, but the code you've got here is complete gibberish, clearly pieced together from snippets here and there.
Now I'm all...
-
August 24th, 2005, 11:52 AM
You can signal an event (synchronization object) to notify the first thread of some activity in the second thread.
See:
CreateEvent
SetEvent
ResetEvent
WaitForSingleObject
When...
-
August 24th, 2005, 11:46 AM
I'm not sure if this is possible, however even if it was, why would you want to?
If you want to draw something in the view, why not just draw it from within the view, as it's intended?
It's...
-
August 23rd, 2005, 09:46 PM
Perhaps you are referring to this or perhaps the COleDateTime format member function that uses the same formatting (details here )
As several people have already pointed out however, it is not...
-
August 23rd, 2005, 09:34 PM
A little trick I use frequently when trying to do this type of thing is pass a structure (containing plain old data types - no classes) in the message to the thread and have the structure contain the...
-
August 22nd, 2005, 06:44 PM
The information being displayed is in the context of the currently selected process (the one being debugged).
Clearly if it was displaying the actual contents of the CPU registers whenever you hit...
|
Click Here to Expand Forum to Full Width
|