Search:

Type: Posts; User: j_g; Keyword(s):

Page 1 of 10 1 2 3 4

Search: Search took 0.03 seconds.

  1. Replies
    35
    Views
    2,830

    Re: Any C# programmers?

    A poster asks about C# support in Linux, so he can work on his C# school assignments, and as usual (when the topic can be construed, or often misconstrued, by "linux fanboys" into being all about...
  2. Replies
    2
    Views
    773

    Re: Read from MIDI port

    If you want to try C/C++ programming, using the native MIDI API of Linux (ie, ALSA), then read my article "Linux MIDI and digital audio programming" at:
    ...
  3. Replies
    17
    Views
    788

    Re: C question(noobish c question)

    There is a property that can be set to modify that behavior.
  4. Thread: C/C++ forums

    by j_g
    Replies
    10
    Views
    676

    Re: C/C++ forums

    Including ones who "haven't used C in over 10 years", but will happily give you advice about it in nearly every thread (although the advice is usually "use Python instead").
  5. Thread: C/C++ forums

    by j_g
    Replies
    10
    Views
    676

    Re: C/C++ forums

    Just to let you know, CodeGuru (and Code Project) are very much Windows programming resources.

    Do you have a newsgroup reader (ie, Pan)? If so, check out groups like comp.os.linux.development or...
  6. Re: general how-to on converting old proprietary formats

    Damn you, aks44. You rushed in here and told him everything I was going to say (without needing the OP to be more coherent too!).

    I second every bit of this advice. I've personally used IDA to...
  7. Replies
    44
    Views
    4,551

    Re: Why proper error handling should ALWAYS be done

    Nope. calloc() simply serves the purpose of initializing the memory to 0. It doesn't try to ask the OS if the pages can actually be committed, and then gracefully return a 0 (to the app) if not. It...
  8. Replies
    44
    Views
    4,551

    Re: Why proper error handling should ALWAYS be done

    Wait. Are you saying that his test failed because of memory fragmentation (ie, no "contiguous" address space) or the fact that he's using a 32-bit edition of Ubuntu (and therefore is limited to about...
  9. Replies
    44
    Views
    4,551

    Re: Why proper error handling should ALWAYS be done

    Yep.

    Wy, this may have to do with the differences between the size of your swap file and total RAM, and his. You're probably running under a more constrained system, so you really are hitting the...
  10. Replies
    44
    Views
    4,551

    Re: Why proper error handling should ALWAYS be done

    There's an old saying "You can have it quick. Or you can have it good.".



    If you want to write an MP3 player that does that, fine. (But I'd still prefer one that doesn't). But if you're writing...
  11. Replies
    44
    Views
    4,551

    Re: Why proper error handling should ALWAYS be done

    You got it.

    Here's how to improve it (as I noted in a different thread that a particular moderator chose to lock, making it hard to discuss such pertinent, important programming topics here, and...
  12. Replies
    44
    Views
    4,551

    Re: Why proper error handling should ALWAYS be done

    But Linux over-commits (by default). So you don't know how much memory is enough to cause a 0 return value. All you know for sure is that a 0 return value is possible, and if you "handle" it by...
  13. Replies
    58
    Views
    8,524

    Re: What do you guys think about C# under linux?

    That's disputable. But what isn't disputable is that a discussion of MS' business history is not a discussion about programming. And the OP didn't ask about MS at all. Why are moderators locking...
  14. Replies
    15
    Views
    4,808

    Re: Why Linux has an "OOM killer" and...

    There is no other discussion about how Linux's OOM Killer works, and how to avoid triggering it.



    What "scenario"? Your post fails to identify what "scenario" to which you're referring. I can't...
  15. Replies
    15
    Views
    4,808

    Re: Why Linux has an "OOM killer" and...

    There are advantages and disadvantages. It's so hard to say without looking at a specific application.

    I used the "private memory pool" thing in an interpreter, because it really sped up the...
  16. Replies
    15
    Views
    4,808

    Re: Why Linux has an "OOM killer" and...

    Don't worry. Linux has an "OOM Killer".
  17. Replies
    15
    Views
    4,808

    Why Linux has an "OOM killer" and...

    This thread is about Why Linux has an "OOM killer" and what programmers can do to help get rid of it. If someone thinks it's about something else, he's wrong.

    I'm going to try to explain this for...
  18. Replies
    58
    Views
    8,524

    Re: What do you guys think about C# under linux?

    Much too "dynamic"... when a post in this forum isn't even about programming, and is just an MS bashing "advocacy post".
  19. Replies
    44
    Views
    4,551

    Re: Why proper error handling should ALWAYS be done

    Um.... where??? I don't see any convincing posts detailing why there should be exit()'s in shared libs.

    All we know for sure is that malloc can indeed return a 0 on Linux (I've had it happen to me...
  20. Replies
    98
    Views
    44,802

    Re: How NOT to write a shared library

    That URL above was already posted, and debunked.
  21. Replies
    58
    Views
    8,524

    Re: What do you guys think about C# under linux?

    ...none of it having to do with the OP's question, nor even programming in general.

    Is there something wrong with advocacy newsgroups such that people must instead have those conversations here?
  22. Replies
    98
    Views
    44,802

    Re: How NOT to write a shared library

    How many developers have you "figuratively shot" to test your theory? Or is this yet another attempt to derail a legitimate programming thread with more off-topic posts, just to "bury" others' Linux...
  23. Replies
    98
    Views
    44,802

    Re: How NOT to write a shared library

    I've seen this allegation made numerous times. But it isn't true. We've already seen actual examples of malloc returning a zero, running on actual computers. If your allegation were true, that...
  24. Replies
    11
    Views
    6,128

    Re: C++ - Capture output from externel exe?

    In my preceding example, I did a #define to set OUTPUTBUFSIZE to the maximum size I expected my buffer ever needed to be. And that buffer was allocated as so.

    By "manual" adjustment, I assume you...
  25. Replies
    98
    Views
    44,802

    Re: How NOT to write a shared library

    And you thought correctly. You've already gotten a head start upon certain people who have written shared libs, because you'll be doing it correctly from the beginning.
Results 1 to 25 of 250
Page 1 of 10 1 2 3 4