Another mxj standalone issues

Léopold Frey's icon

Hello,

first :

MaxSystem.isStandalone() doesn't work for me.
It always return false, in a standalone, in max runtime or in max.

second :

The documentation says there should be a MaxSystem.isRuntime() function and compiler disagrees.

thanks

léo

Emmanuel Jourdan's icon

Which version of Max are you using? You need 5.0.6 or higher to use MaxSystem.isRuntime().

Léopold Frey's icon

Hi Emmanuel,

I'm using MaxMSP 5.0.7

Léo

Emmanuel Jourdan's icon

Mac OS or Windows?

Léopold Frey's icon

Mac Os 10.5.8

léo

Emmanuel Jourdan's icon

That's odd. Make sure that you compile against the latest max.jar. What I did was:

- create an object "mxj quickie toto"
- double click on it
- modify the bang method:

public void bang()
{
outlet(0, MaxSystem.isRuntime());
}

- compiled
- made an object "mxj toto" and connected a numbox to the left outlet
- sent a bang to "mxj toto" it reported 0.

Léopold Frey's icon

Thanks Emmanuel,

And sorry, I made a confusion between two eclipse project, one with max.jar from max4.6, the other with the one from max5.
So everything's fine with MaxSystem.isRuntime().

But MaxSystem.isStandAlone() always returns false for me.
My life doesn't depend on it but if you have time to check...

Thanks again

Leo