We closed this forum 18 June 2010. It has served us well since 2005 as the ALPHA forum did before it from 2002 to 2005. New discussions are ongoing at the new URL http://forum.processing.org. You'll need to sign up and get a new user account. We're sorry about that inconvenience, but we think it's better in the long run. The content on this forum will remain online.
IndexProgramming Questions & HelpOpenGL and 3D Libraries › OPENGL AND MAXLINK BUG
Page Index Toggle Pages: 1
OPENGL AND MAXLINK BUG? (Read 605 times)
OPENGL AND MAXLINK BUG?
Sep 9th, 2007, 11:58pm
 
when this receives the signal from max

import processing.opengl.*;
import maxlink.*;


MaxLink link = new MaxLink(this, "beat_detection");

void setup()
{
 size(200, 200, OPENGL);
 link.declareMaxFunction("hello");
}

public void hello()    

{

rect(0,0,width,height);
}

void draw(){
}




i get this

Invalid memory access of location 00000ac0 eip=92b22d2e
Re: OPENGL AND MAXLINK BUG?
Reply #1 - Sep 19th, 2007, 2:02pm
 
"invalid memory access" is a problem in native code, so likely to be something in max / maxlink.

though i'd move your "MaxLink link =" line to after size() inside setup(). it's never a good idea to initialize a library outside setup() (or before size()).
Page Index Toggle Pages: 1