Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
J

JackDingler

@JackDingler
About
Posts
99
Topics
0
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • Gibberish
    J JackDingler

    ROTFLMAO! Louis Armstrong would've laughed too!

    The Lounge com tutorial

  • Crazy Management Speak
    J JackDingler

    I never saw those drives. But I never saw an Apple Lisa either, outside of magazines... I do remember coming across a floppy drive that had two heads on each side of the armature.

    The Lounge html help

  • Crazy Management Speak
    J JackDingler

    I've seen each of those issues, just not all at the same time. :) With the system I was working on, the users were telling me that they wanted the bugs fixed and workflow changed, but my manager didn't hear it, so it didn't happen.

    The Lounge html help

  • Crazy Management Speak
    J JackDingler

    To be fair, 'flippies' were something we actually used for a time....

    The Lounge html help

  • Crazy Management Speak
    J JackDingler

    Reminds me of someone who once told me, "Our users aren't asking us to improve our internal processes, fix bugs or improve our code. When they start asking for that, you can work on it."

    The Lounge html help

  • I just spent 10 years making this work.
    J JackDingler

    Though it annoys me that compilers are smart enough to replace what you tell them to do, with what you meant to tell them to do (even if you didn't know you meant to do it), that is a good safety feature. printf's can be very unsafe....

    The Lounge c++ linux

  • I just spent 10 years making this work.
    J JackDingler

    How about simplifying the effort and use puts()?

    The Lounge c++ linux

  • There's no memory leak in my code(rather sure), then how to find out those codes who eat up my memory?
    J JackDingler

    If the memory is returned, then it's not leaking. If you had a leak, then then the memory usage would keep growing until your application crashes. If you want your application to use less memory, then you'll have to look at how you use your data and the lifetime in which you keep it.

    C / C++ / MFC c++ debugging tools performance help

  • Moire effect
    J JackDingler

    It looks like someone has given you a solution, so I'll explain a bit why this happens. The resizing of your image using GDI is a simple re-sampling algorithm. When you shrink it, pixels in a horizontal and vertical direction are removed, at a semi regular spacing, to make the image fit the new size. This has the effect of producing a horizontal and vertical waveform in your image. Your parallel lines in the image, also make up a wave pattern. When these two wave patterns interact, you get an interference pattern and see the Moire' effect. http://en.wikipedia.org/wiki/Moire_effect[^]

    C / C++ / MFC graphics help question

  • Convertin from c++ 6 to Visual studio C++ 10
    J JackDingler

    bool _tagXMLNode::RemoveChild( LPXNode node )
    {
    XNodes::iterator it = GetChildIterator( node );
    if( it != childs.end() ) // Fixed it
    {
    delete *it;
    childs.erase( it );
    return true;
    }
    return false;
    }

    C / C++ / MFC help csharp c++ visual-studio tutorial

  • The latest dull fad - SOLID
    J JackDingler

    I'm, just now getting exposure to the Domain Model. From what I'm seeing in action at the moment, is that all hierarchies appear to be flat and relationships between objects are a mess to unravel and understand. It looks like spaghetti glue for OOD. I hope this isn't what the model is about... Gotta order that book today...

    The Lounge oop architecture c++ css design

  • The latest dull fad - SOLID
    J JackDingler

    Sounds like they are taking the method's responsibility and applying it to the class level....

    The Lounge oop architecture c++ css design

  • The latest dull fad - SOLID
    J JackDingler

    "Reading through your 3rd and 4th paragraph, it would seem to me that SOLID is not the problem, the developers that built the system do not understand how to apply SOLID." That's the impression I got. I can see how a narrow vision of what 'single use' or 'single responsibility' means, can lead to some bad design work.

    The Lounge oop architecture c++ css design

  • How to avoid thrid party lib(no source codes) to allocate memory from physical memory?
    J JackDingler

    If the leak is due to a bug in a third party library then there may be no workaround to your issue. The operating system already caches out memory to a page file on disk. If you're exceeding the 1 or 3gig limit set by the linker, then you're hitting the wall on addressable memory. You can't allocate more memory than you can address. With 32 bit pointers the theoretical limit is 2^32 bytes or 4gig. In practical terms it's less because some of the bits in the upper end of the pointer can have a special meaning. I've seen server side systems live with leaks like this, by periodically restarting. If you can prove that the third party library is leaking the memory with a simple test case, then I would raise this issue with your vendor.

    C / C++ / MFC c++ help json performance tutorial

  • How to avoid thrid party lib(no source codes) to allocate memory from physical memory?
    J JackDingler

    I meant it for the thread anyway...

    C / C++ / MFC c++ help json performance tutorial

  • How to avoid thrid party lib(no source codes) to allocate memory from physical memory?
    J JackDingler

    That's the best place to start. Make sure you have no memory leaks. If there is some reason that you need gigabytes of data in memory to do some heavy complex processing (perhaps DNA analysis, simulations etc...,) then upgrade your hardware and go 64 bit.

    C / C++ / MFC c++ help json performance tutorial

  • How to avoid thrid party lib(no source codes) to allocate memory from physical memory?
    J JackDingler

    If you're dynamically creating the objects in your app, you can overload the 'new' operator. But that's not really going to do the trick. As others have mentioned data has to be in memory to be used.

    C / C++ / MFC c++ help json performance tutorial

  • How to avoid thrid party lib(no source codes) to allocate memory from physical memory?
    J JackDingler

    What is the problem that you are trying to solve?

    C / C++ / MFC c++ help json performance tutorial

  • DAO Database classes are not supported for Win64 platforms error help
    J JackDingler

    From this, it looks like something is including it in stdafx.h Comment out includes in this file until you find it. It's likely a third party library header, or a header file that is local to you project.

    C / C++ / MFC help c++ database

  • Detecting memory leaks in BOOST test cases.
    J JackDingler

    If you're using MFC, add this snippet above your code:

    #ifdef _DEBUG
    #undef THIS_FILE
    static char THIS_FILE[]=__FILE__;
    #define new DEBUG_NEW
    #endif

    Your memory leaks will then appear in the output window. Note that it doesn't work correctly with overloaded new constructors, so for those you may need some $ifdef guards.

    C / C++ / MFC performance help question
  • Login

  • Don't have an account? Register

  • Login or register to search.
  • First post
    Last post
0
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups