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: To my prev question: Seems like /EHa option in VS helped me to catch it without crashing, but now i wonder, how do you handle such stuff on Linux/Mac, looks like i need to figure out, how g++ and clang does it, but maybe there is a better solution? :)
Asked by Pony (78.152.169.x) on September 30 2019, 2:18pm
Reply on September 30 2019, 2:36pm:
    We don't use C++ exceptions, and if it's an exception due to an access violation/etc, it's usually better to crash and get to the root of the problem.


Comments:
  • Posted by Pony (78.152.169.x) on September 30 2019, 2:41pm:
    GUID* track_guid = GetTrackGUID(GetTrack(0,1)); then after deleting track somewhere in a code in some situations: tempstr[64]{}; guidToString(track_guid, tempstr); crashes it, not sure what else can be done here. So i think i'll go with that option. Thanks.

  • Posted by Justin on September 30 2019, 3:00pm:
    Don't save the pointer, save a copy of the GUID. The lifetime that that pointer is valid is limited.


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

    Comment:    

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