[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[sc-dev] Re: Attn Tim Re: trying to build sc for iPhone



Assertion failed: (IsInt(slot)), function slotRawInt, file
/Users/jonatan/SuperCollider3/Headers/lang/PyrSlot32.h, line 319.
Program received signal:  “SIGABRT”.

it means, that a slot is accessed as integer, although its type is not integer. my type safety patches add these assertion checks. sclang was not type safe before (imo the main reason, why the 64bit port was not trivial), which makes it very difficult to assure the program logic.

in this case, it seems, that integers are used to store pointers:
SCView *view = (SCView*)slotRawInt(slotRawObject(&args[0])->slots);

this is just wrong, since sizeof(int) can be different than sizeof(void*). if the slot stores a pointer, one has to use slotRawPtr instead.

hth, tim

--
tim@xxxxxxxxxx
http://tim.klingt.org

The price an artist pays for doing what he wants is that he has to do
it.
  William S. Burroughs


_______________________________________________
sc-dev mailing list

info (subscription, etc.): http://www.beast.bham.ac.uk/research/sc_mailing_lists.shtml
archive: https://listarc.bham.ac.uk/marchives/sc-dev/
search: https://listarc.bham.ac.uk/lists/sc-dev/search/