I've recently started developing my own externals but have stumbled across a problem that I find very strange. If I use a 'while' statement within any function within an external, it either causes Max to crash or causes nothing to happen when an inlet associated with that function receives a message. If anyone knows anything about this please let me know.
Also is it just me or is some of the code in the MaxAPI reference incorrect/ inconsistent? For example in the 'Scheduler' chapter under heading 2 of 'Creating and using Clocks' it has a line of code that reads:
In the list of functions for use with clocks here is no such function.
There is however the function 'scheduler_gettime' or 'clock_getftime'. When I use either of these my code gives me no errors. It took me over a week to realise this because xcode was giving me an error saying that I was trying to link this function from a .o file of the same name as my project so I never thought to check. Maybe I'm missing something?
I am quite new to coding in general so please go easy on me.