CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com

Search:

Type: Posts; User: katastrofa

Search: Search took 0.02 seconds.

  1. Re: Debugger hangs in Visual Studio 2008 Professional

    Thanks for trying :) I didn't expect any definite answer, just some pointers in a probable direction.
  2. Re: Debugger hangs in Visual Studio 2008 Professional

    This is a DLL which is used by an Excel XLL addin. The breakpoints are usually in the middle of some computations. No dialogs are called, in fact it's not linking to any Windows libraries (except the...
  3. Re: Debugger hangs in Visual Studio 2008 Professional

    The IDE simply hangs up - stops reacting to key presses or mouse clicks.

    Another thing which also happens sometimes (before the hangup) is that "Locals" window of the debugger does not display any...
  4. Debugger hangs in Visual Studio 2008 Professional

    Hi,

    I have a weird problem: when debugging the code in Visual Studio 2008 C++ Professional, the debugger hangs when I stop at a breakpoint and do nothing for a few minues. It only happens in one...
  5. Re: Replacing compile-time polymorphism with run-time polymorphism

    I'm not sure about the tightness, but I think that templates make it easier to create an entangled mess of dependencies. If my class implements an abstract OO interface, I see it here and now because...
  6. Re: Replacing compile-time polymorphism with run-time polymorphism

    @superbonzo

    That's not what I mean. In the code below,



    template <class X> class A
    {
    public:
    void do();
  7. Re: Replacing compile-time polymorphism with run-time polymorphism

    I think the argument about monolithicity of templated code can be justified as follows: if my code uses *only* templates (no OO) the dependencies on template parameters are viral, i.e. if code A is...
  8. Re: Replacing compile-time polymorphism with run-time polymorphism

    Thanks. The code does need additional refactoring to make it simpler, I plan this as Phase 2.



    Thanks, I didn't think about this -- I was rather treating the template parameters as...
  9. Re: Replacing compile-time polymorphism with run-time polymorphism

    Hi Paul,

    the problem is not with using the library per se (we had some issues with its interface but we're fixing them and it's a much easier problem to solve). The problem is with modifying it --...
  10. Re: Replacing compile-time polymorphism with run-time polymorphism

    We have already noticed a decrease in build times after removing some templates. We expect that it will be the case after more changes as well.

    The code is so hard to maintain now that leaving it...
  11. Re: Replacing compile-time polymorphism with run-time polymorphism

    15-20 minutes for debug build, about 1h for release build. There is also the cost of a really big DLL coming out at the end.

    I don't think so: we removed some of the templates already and there...
  12. Re: Replacing compile-time polymorphism with run-time polymorphism

    The decision to re-factor the code has been already made. For a number of reasons I think it is the correct one.



    In most cases, the whole class is templated. Splitting out the code which could...
  13. Re: Replacing compile-time polymorphism with run-time polymorphism

    @superbonzo

    Thanks for the answer, but don't I just increase my problem of long build times? I had Calculator<Socket> template (N classes), now I have PolymorphicCalculator<Socket> and...
  14. Replacing compile-time polymorphism with run-time polymorphism

    Hi,

    I am working on a quite complex C++ code base which was designed around the principle of compile-time polymorphism (using template instead of virtual despatch to implement interfaces). A...
Results 1 to 14 of 14





Click Here to Expand Forum to Full Width

Featured