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

Search:

Type: Posts; User: Red Squirrel

Page 1 of 25 1 2 3 4

Search: Search took 0.02 seconds.

  1. Re: C++ best practices book for large projects

    Thanks for the tips. And yeah think one of my biggest flaws is I tend to not document much. If anything I should at least add way more comments in my code but really I almost need a "coder's...
  2. Replies
    15
    Views
    3,112

    Re: Quick garbage collector question

    Thanks I'll try that.
  3. Re: C++ best practices book for large projects

    Nah, I'll be getting a shift work job soon, so I'll have tons of spare time on my hands. I want to pickup a few projects.
  4. C++ best practices book for large projects

    I have a couple projects that I've written in C++ from small to big, and have some very big ones in mind (like they'll probably hit near 1mil lines of code)

    I've thought myself C++, I've written a...
  5. Replies
    15
    Views
    3,112

    Re: Quick garbage collector question

    Ok so what I'll do is let it run. Once the app is done (I just made it so it closes itself) what do I do? That's where I was stuck last time. There was a log but it basically had 1 line in it,...
  6. Replies
    15
    Views
    3,112

    Re: Quick garbage collector question

    When I tried Equatec the app ran dog slow, an execution that normally takes 15 minutes was running for a week, and at the end I had no idea what to even do. There was no log file or anything that...
  7. Replies
    15
    Views
    3,112

    Re: Quick garbage collector question

    A couple seconds is the worse case, but he spikes are usually around 1s or so, that includes the time of the actual process, mind you (usually takes 50-100ms). Using stop watch and intensive...
  8. Replies
    15
    Views
    3,112

    Re: Quick garbage collector question

    My profiling pretty much points to GC (have not managed to get a true profiler to work but was able to use various perfmon indicators). Basically my app is allocating too much and eventually when GC...
  9. Replies
    15
    Views
    3,112

    Re: Quick garbage collector question

    Cool that's what I figured. Thanks.
  10. Replies
    15
    Views
    3,112

    Quick garbage collector question

    From what I gather, a quick rule of thumb to prevent GC is to try to minimize object allocations. Of course this is not always possible, but things can be redesigned to try to make it better at...
  11. Re: Is there a way to communicate with an external C++ app?

    Thanks, I'll have to Google those and see which is best for my case. Just toying with an idea here for one of my apps.
  12. Is there a way to communicate with an external C++ app?

    This is kinda a C# / C++ question. Is there a way that I can talk to a C++ (unmanaged) app? Basically, call a function from said app, and get a response back.

    The only way I can think of is...
  13. Replies
    20
    Views
    7,136

    Re: Why can't I Dispose of a HashSet?

    Actually my bad, that's really what I meant. The code I posted is used in some places too.

    But even then, it could be done a different way. But my guess is this is why they did it with all these...
  14. Replies
    20
    Views
    7,136

    Re: Why can't I Dispose of a HashSet?

    That actually mirrors some of my thoughts as well, glad I'm not the only one that thinks that. If I had designed this I would have rethinked lot of things and that's one of them. The classes...
  15. Replies
    20
    Views
    7,136

    Re: Why can't I Dispose of a HashSet?

    I'll try the heap profiler and see how that goes. I have not posted code as this is a super huge app and I don't expect anyone to actually sift through all that, but I'll try out general tips. ...
  16. Replies
    20
    Views
    7,136

    Re: Why can't I Dispose of a HashSet?

    It's a string builder during the serialize process and is converted into a string at the end. The string is then put into a SQL query, so it has to be done in one shot. while debugging I removed...
  17. Replies
    20
    Views
    7,136

    Re: Why can't I Dispose of a HashSet?

    Mostly classes but there are some structs and enums as well that are part of those classes. They contain a mix of ints, strings, collections etc. If I had to guess how big they are I'd say 500...
  18. Replies
    20
    Views
    7,136

    Re: Why can't I Dispose of a HashSet?

    It's all custom types, there are a couple thousand different types but they all derrive from 4 master types. There are other separate types that are used to hold information and each object has a...
  19. Replies
    20
    Views
    7,136

    Re: Why can't I Dispose of a HashSet?

    But what if I need to allocate lot of objects? It's just the nature of the program, there's no other way. It's just a very large scale app. So is C# not a good idea for such apps? Should I maybe...
  20. Replies
    20
    Views
    7,136

    Why can't I Dispose of a HashSet?

    I've been trying to troubleshoot why one of my apps randomly gets these huge slow downs durring a repetitious intense process that normally is fast (but needs to happen often). As a troubleshooting...
  21. Re: mysql - Can having too many fields be inefficient?

    In my case I'm not too worried as far as data normalization goes. The app simply writes to the DB so the data is physically somewhere, and never reads from it. When the app starts it does a select...
  22. Replies
    4
    Views
    841

    Re: List and order question

    Often I check something there, and I make an assumption about something which in the end is partially false or there is a factor I don't know about and kicks me in the ***, so that's why I was...
  23. Replies
    4
    Views
    841

    List and order question

    When using Lists, is it safe to assume that when I add an object it will always go at the end, and that the order will always be kept the same? I'm planing on using one in a way where this will be...
  24. mysql - Can having too many fields be inefficient?

    I have an application which consists of a couple thousand different object types, which represent items in a game. Each type has unique variables that need to be saved to disk. From a DB...
  25. Re: Why does the time vary so much in execution of this code?

    1 I'd like to try. Know of any good profilers? I also notice perfmon has lot of .net stuff, anything specific I should be looking at? When the slowdowns happen the "% Time in GC" spikes to 100, if...
Results 1 to 25 of 609
Page 1 of 25 1 2 3 4





Click Here to Expand Forum to Full Width

Featured