Type: Posts; User: GeoRanger
Search took 0.01 seconds.
February 3rd, 2016, 05:30 PM
I have a class hierarchy which has an interface at its root. Some of the intermediate classes in the tree do not fully implement the interface, but nonetheless need to be able to create...
November 30th, 2015, 11:44 PM
You just want all possible combinations of one's and zero's only in the positions where the input has a one, right?
If so, think of the zero's and one's as simply being a binary number. If you...
September 20th, 2015, 10:44 PM
I am having a problem in which a program crashes after 2 to 12 hours due to memory fragmentation. I am exploring several options for trying to solve it. I cannot convert it to a 64-bit...
April 13th, 2015, 01:10 AM
This article, "Acquire and release sound like bass fishing terms, but they also apply to memory models" <http://blogs.msdn.com/b/oldnewthing/archive/2008/10/03/8969397.aspx>, seems to provide a good...
October 1st, 2014, 02:27 PM
Thank you both for your interest and responses. :)
Thank you Paul McKenzie for the quote from the Standard. That's the kind of information I was hoping to find.
2kaud, I'm using Visual Studio...
September 30th, 2014, 06:32 PM
I've got the following code which demonstrates a problem and am hoping someone can explain:
September 24th, 2014, 03:08 PM
Thank you three for your responses! :)
My contrived example doesn't do a great job of expressing the real problem. The real problem is an optimization problem where the derived classes...
September 17th, 2014, 04:59 PM
The contrived code below demonstrates a problem I am having in a larger program. I want to have a base class which contains the functionality to assemble a group of objects into a container. ...
September 8th, 2014, 12:19 AM
Are you just looking for the basic but non-obvious syntax?
// The crucial thing to remember here is to read non-trivial pointer declarations backward
// but with grouping by parentheses. So,...
November 19th, 2013, 05:45 PM
Thank you both for your replies! :)
laserlight, I decided to use your idea and it has cured 90% of the issue. I added a small class which is able to give the appearance of being either an array...
November 18th, 2013, 02:34 PM
I have a class in a speed critical program which contains some data to be shared with callers outside the class. The data is reasonably large and copying it should be avoided as much as...
From Paul McKenzie:
Quite true! What fools some programmers into thinking otherwise is that the C Run Time will sometimes check the integrity of the heap in a debug build on calls to delete (or...
April 30th, 2013, 12:46 AM
The only false positives I've ever seen from the CRT leak-checking happen when you allocate and delete memory in a static singleton. Apparently, the CRT initiates the leak-checking when a static...
April 28th, 2013, 08:53 PM
At the risk of sticking my neck out, I wonder if I could give my two cents on the issue of the usage pointers vs. references discussed back in posts 5 through 9 of this thread? (Please excuse me if...
April 19th, 2013, 12:36 AM
This sounds (no pun intended) like it might be a good candidate for offloading to the GPU. If you are using Visual Studio 2012 you can use AMP...
April 17th, 2013, 12:25 PM
I have a dump file from a remote machine which I'm trying to debug. Both the remote machine and my debugger are using Windows 7 with Service Pack 1. The crashing program was built with...
March 29th, 2013, 12:40 AM
Sidebar: How do you get the quote icon and the name of the person who said it inside the box?
This is only my opinion and I know a lot of people, including the designers of the STL, disagree with...
March 1st, 2013, 01:57 AM
Well, it largely boils down to what Paul McKenzie was saying in posts #18 and #19. It's the whole "undefined behavior" idea. If the random variable points outside the program's...
March 1st, 2013, 12:07 AM
Actually, that is quite easy to do in a non-erroneous way, as long as you are careful not to access any member data or the v-table of the possibly NULL class. (MFC code did it...
February 18th, 2013, 04:03 PM
I didn't mean to start a war! :)
Actually, I'm finding the posts from all three of you potentially useful. Unfortunately I've not had the opportunity to try any of these ideas yet four a couple...
February 13th, 2013, 01:28 AM
I am trying to solve a knapsack problem in a time-critical application. I've found I can shave a couple dozen seconds off of some inputs with dynamic programming. The problem is, the...
December 22nd, 2012, 02:34 AM
The best way to fix this depends on whether you normally expect to have steep (nearly vertical) lines or whether they can have any orientation.
In the former case (if lines will always be steep)...
December 22nd, 2012, 12:52 AM
Adding code to force the CRT to check the integrity of the heap before calling the DLL functions might help. I would do this by running it several times and, each time it crashes, add a call before...
November 22nd, 2012, 12:07 AM
Won't this misidentify the square of a prime number as a prime?
For instance, if the argument is 9, then max is 3, the loop iterates only on 2 and doesn't check 3 because of "c < max" (which...
June 13th, 2012, 01:40 PM
I've got this oddball problem in a much larger program which is replicated by the following code in VS 2010:
Click Here to Expand Forum to Full Width
This is a Codeguru.com survey!