Page 1 of 1

CreateMesh invalid memory access

Posted: Sat Nov 04, 2006 7:29 pm
by banban73
Hello,

I tried to use the CreateMesh() command, but its execution returns an "invalid memory access" even in its simplest form :

Code: Select all

If InitEngine3D()=0
  End
EndIf

CreateMesh(0,10) -----> Invalid memory access

FreeMesh(0)

End
According to the doc, first parameter is mesh Id, second is max number of vertices.
I tried several values for these two parameters with no success.

Can anyone please help me understand what happens ?

Thank you in advance

Posted: Sat Nov 04, 2006 8:34 pm
by Kale
You must add a 3DArchive using the 'Add3DArchive' PB command. This one stumped me a while when writing my book. :wink:

Posted: Sun Nov 05, 2006 1:02 pm
by banban73
Thank You Kale for answering.
I added 3DArchive and opened a screen before calling createMesh and now, it works fine.

Best regards