Its a scripting engine im working on, its using printf to print its output...
I think i found the error btw. i register native functions, and it seems using a c function defined via an extern block and calling it from c (or assembler which i am realy doing) is what bugs.
If i register it via C it works perfectly, so its something the extern block does to the signature of the function perhaps?
<edit> this just gets wierder and wierder, if i put a Print anywhere in max code before calling any c code, it works!
I think i found the error btw. i register native functions, and it seems using a c function defined via an extern block and calling it from c (or assembler which i am realy doing) is what bugs.
If i register it via C it works perfectly, so its something the extern block does to the signature of the function perhaps?
<edit> this just gets wierder and wierder, if i put a Print anywhere in max code before calling any c code, it works!