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

Search:

Type: Posts; User: sszd

Page 1 of 15 1 2 3 4

Search: Search took 0.02 seconds.

  1. Replies
    1
    Views
    709

    Casting clarification

    I've read that using reinterpret_cast<> should rarely (if ever) be used. So, what is the proper thing to do in a case like this...


    uint64_t u = ; // Some unsigned int64 calculation
    int64_t* i =...
  2. Replies
    3
    Views
    532

    Re: Releasing heap memory???

    If this is true, then there may not actually be a memory leak. There is definitely high levels of workload on occasaions. Data comes in in spurts... there'll be nothing for periods of time, then...
  3. Replies
    3
    Views
    532

    Releasing heap memory???

    On a linux system at work, there is this one particular process that many of us have observed on occasion that will continue to grow in memory during specific processing periods, and never shrink. ...
  4. Replies
    44
    Views
    2,538

    Re: std::string and contiguous memory?

    I'm still having difficulty with this conversation between this one code reviewer and myself. I think I'm going to simply stop trying to convince him and just move on.

    The code review, as well as...
  5. Replies
    44
    Views
    2,538

    Re: std::string and contiguous memory?

    This is a good argument. Thanks.
  6. Replies
    44
    Views
    2,538

    Re: std::string and contiguous memory?

    I agree with this 100%. Sometimes I feel like I'm talking to a wall on some of these issues though. One of the arguments used by this "primary" code reviewer was "...the maintenance burden of using...
  7. Replies
    44
    Views
    2,538

    Re: std::string and contiguous memory?

    Thanks for the link. One question though, under the notes section it says... "Writing to the character array accessed through data is undefined behavior." Does this apply even to the C++11 standard...
  8. Replies
    44
    Views
    2,538

    Re: std::string and contiguous memory?

    Well, unless we were using a compiler that supports C++11, I am reluctant to use that construct regardless. And yes, I agree it's better to be safe than sorry. That's why I moved the contents into a...
  9. Replies
    44
    Views
    2,538

    Re: std::string and contiguous memory?

    Thank you for the reply. However, I was actually looking for quotes from the standards previous to C++11 since we are using older gnu compilers and have no intention on upgrading any time soon. ...
  10. Replies
    44
    Views
    2,538

    std::string and contiguous memory?

    I need some help arguing a point. Here's the situation. I recently wrote some code that required making several calls into a COTS API library where the function calls required one of the arguments...
  11. Replies
    6
    Views
    666

    Re: Client writing to itself???

    Sorry, the code is at work on a private network, so there is no way to post it.

    I guess I don't know what you mean by how did I implement it. The client simply establishes a socket and then waits...
  12. Replies
    6
    Views
    666

    Re: Client writing to itself???

    I did have one thought on this later that evening. I was actually running both the client and server on the same machine and had established socket connections for both the client and server to...
  13. Replies
    6
    Views
    666

    Client writing to itself???

    It's been several years since I've done any socket programming, so when I started messing with something recently I became very confused by some affects occurring that I thought should have worked. ...
  14. Replies
    1
    Views
    646

    Re: Embedded python using boost

    I'm still stuck on this. I've tried to post this on the boost users email list but am getting no responses there either. Does anyone have any thoughts on this at all. Thank you for your help.
  15. Replies
    1
    Views
    646

    Embedded python using boost

    I'm in the process of learning python, and embedding python into C++. I know very little about python so I've been playing around with many different types of interfaces and API's, with varying...
  16. Replies
    7
    Views
    548

    Re: Simple classes question

    I agree with GCDEF, it would be much easier to just make it an instance. If you insist on using pointers, you'll have to allocate them. You'll do this in your constructors (which you have neglected...
  17. Replies
    4
    Views
    1,761

    Re: Dynamic/static linking question

    Sorry for not getting back to you sooner on this (just been extremely busy lately). Anyway, thanks for the info, it worked perfect. I didn't realize you could directly specify the library name in...
  18. Replies
    4
    Views
    1,761

    [RESOLVED] Dynamic/static linking question

    On a linux system, is it possible to link with both static and dynamic libraries (different libraries, of course) at the same time? I used to do this on a Solaris platform but have been unsuccessful...
  19. Replies
    2
    Views
    393

    Re: Passing program arguments

    Thank you for the response. Although my post wasn't my exact scenario, I tried to simplify it as much as possible to get to the root of the problem. And yes, your answer not only solved my post,...
  20. Replies
    2
    Views
    393

    [RESOLVED] Passing program arguments

    This is probably more of a unix bash shell question, but I didn't know where else to post. My apologies if this is the wrong forum for this question.

    Here is a file with the following contents (4...
  21. Replies
    3
    Views
    825

    Re: Linker error with purify

    Thanks for your responses but I think I figured out what the problem was. I don't know why it appears to be doing this, but it looks like it's completely ignoring the LD_LIBRARY_PATH environment...
  22. Replies
    3
    Views
    825

    Linker error with purify

    Are there any purify experts out there? Iím trying to run a newly installed version of purify on a Solaris 8 system and am having problems. Iíve tried to go to the IBM site to get help on this, but...
  23. Replies
    1
    Views
    465

    Obtaining process size

    Does anyone know how to "programmatically" obtain the size of a process in memory on a Solaris 8 operating system? What I'm trying to do is obtain something similar to what you get from the "top" or...
  24. Thread: const pointers

    by sszd
    Replies
    3
    Views
    536

    Re: const pointers

    Think of it this way...

    const always refers to the "thing" just before it.

    Someclass_t const* says you have a pointer to a const Someclass_t object.

    Someclass_t* const says you have a const...
  25. Replies
    2
    Views
    531

    Re: Memory mapping & process size

    Without going into a lot of detail, since I don't know much yet, I don't believe the program mindlessly reads every file it can get its hands on. The data read in is from flat files that were...
Results 1 to 25 of 354
Page 1 of 15 1 2 3 4


Azure Activities Information Page

Windows Mobile Development Center


Click Here to Expand Forum to Full Width

This is a CodeGuru survey question.


Featured


HTML5 Development Center