Type: Posts; User: UnderDog
Search took 0.03 seconds.
October 8th, 2008, 03:25 AM
Can you provide your file writing code?
October 7th, 2008, 11:26 PM
As a first step you should try capturing a crash dump for such 'random app crashes in production'. Dr Watson can help you get a crash dump. If you can get the crash dump, then you can at least point...
June 10th, 2008, 02:31 PM
The way a debugger may implement 'break on memory write' is as follows
1. Set the memory protection on the (virtual memory) page of interest.
2. Trap the interrupt that is generated.
December 28th, 2007, 06:09 AM
ofstream is inside of namespace std. Use it like this
December 28th, 2007, 05:33 AM
I do not see anything wrong with the code. I tried on my machine and FunctionMain should be called. How did you verify that it is not called?
On a side note, while(true) is the common paradigm for...
November 15th, 2007, 11:14 PM
One 'hack' is to raise the thread priority to Real Time for that portion of the code. But there are no gaurantees even then because
1. There may be other (system) threads running at that priority....
November 13th, 2007, 11:13 PM
The file name (with a space in it) needs to be enclosed in qoutes.
October 16th, 2007, 04:38 AM
Is there any multithreading involved, by any chance?
October 16th, 2007, 02:28 AM
Are you making copies/multiple objects of MyDoc?
October 16th, 2007, 02:24 AM
I do not see anything wrong with the code that you have pasted so far. You will have to send in more code to show us where that rectangle list is coming from - how it is created, how it was...
October 16th, 2007, 01:36 AM
Would "int i = 0" line execute if you write the following in any of your thread?
int i = 0;
October 16th, 2007, 01:26 AM
CWinThread invalidates the handle when the thread ceases to exist. That would explain it.
October 16th, 2007, 01:09 AM
When you say the app runs slowly what exactly do you mean? Slowly as in running the app in one shot is slow, OR slowly as in application is used over a period of time and it runs slowly during that...
October 16th, 2007, 01:03 AM
No issues. Infact you always create a thread from within a thread; there is no other way/place to create a thread.
Is there a specific issue that you are expecting? Of course you will take care...
October 16th, 2007, 01:00 AM
Paste more code to show where/how rects is coming from.
October 15th, 2007, 07:07 AM
You can use __int64 variables. It is NOT part of standard and is microsoft specific, but may get your job done if you are working with Visual Studio.
October 9th, 2007, 05:14 AM
Try this - Delete the /Zc:wchar_t compiler option in your project settings. Then see if it compiles with original unsigned short* and if your other problems go away. Please let us know what you find...
October 8th, 2007, 06:17 AM
1. You are going in a very roundabout way of doing things.
2. Your code works because you have ** force ** treated your integer variable as a literal binary representation of your input (which it...
October 8th, 2007, 01:07 AM
The exercise exists because they want you to read up a binary (string) and convert it into a Decimal (number).
e.g. read this 011 as string, interpret it as binary, and transform it into decimal...
September 8th, 2007, 07:43 AM
You can pass data by passing in pointers to lists or Qs and then can implement your own synchronization mechanisms. That is what I also said as one of the mechanisms. But why would you want to go to...
September 7th, 2007, 03:16 PM
Any type of producer/consumer problem can be neatly solved by using thread messages. Just passing the this pointer works only in cases where the worker thread just munges on some data from the class...
September 7th, 2007, 06:16 AM
You do not need to make it a friend. That sort of does not even make sense. If a function is part of a class, it is part of the class. It is more than a friend. Real life analogy - if you are part of...
September 7th, 2007, 05:57 AM
You do not necessarily need to make the operator as friend. You need to make it a friend only if both of the following cases are true
1. Your operator (function) is not part of your class.
September 7th, 2007, 01:26 AM
Passing the this pointer works in some cases.
For other cases, the easiest, and most straightforward way is to use thread messsage Qs and send windows messages to your worker thread. Remember to...
September 7th, 2007, 01:12 AM
Jeffery Richter book - 'Programming Applications for Microsoft Windows' has a whole page dedicated to this. It is a good read. Basically, the reasons are same as the ones pointed to by kirants.
Click Here to Expand Forum to Full Width
This is a Codeguru.com survey!