justin = { main feed , music , code , askjf , pubkey };
Ask Justin Frankel
No reasonable question unanswered since 2009!

Suggested topics: programming, music, sleep, coffee, etc.

Note: please do not ask questions about REAPER features, bugs or scheduling, use the forums instead.


Name: Ask: Human (enter yes):
[back to index] | [unreplied] | [replied] | [recent comments] | [all]

Question: Do you always check if it is success when calling "new" operator?
Asked by dave (222.90.231.x) on July 1 2010, 12:37am
Reply on July 1 2010, 9:25am:
    Not really. We pretty much only use new for single objects (and use malloc/free/WDL_HeapBuf-based storage for everything else).

    We do verify that our allocations succeed, when it is likely that they are for enough RAM where the heap could conceivably not have a block big enough. I love x86_64, btw. mmm.

Comment:
    Your Name:   -- Site Owner's Name:  (for human-verification)

    Comment:    

    
  
[back to index] | [unreplied] | [replied] | [recent comments] | [all]
Copyright 2025 Justin Frankel. | RSS