If InitEngine3D() is successful, does anyone know what can make CreateMesh fail with:
[ERROR] Invalid memory access (read error at address 0)


Strangely (to me at least), #PB4.40 does not produce an Ogre.log file, whereas I did have one from #PB4.31Comtois wrote:Have a look at Ogre.log in your folder , may be you will find some informations ?

A ton of code, which has led to the issue by way of how the code is organized. It boils-down to this, InitEngine3D() should be initialized just before the Window is defined. I had the initialization at the top of my "Main.pb" (home of global values) and the Window Form built via a procedure in a separate .pb file (the project has several .pb files, I got used to organizing code into logical files in this way using C/CPP). So, I have moved InitEngine3D() into the procedure itself and that has removed the fault. To me, the compiler should "see" all the .pb files as one file, but I'm finding that although it does so for "regular window apps", it's less forgiving when the Ogre engine is involved.rsts wrote:Got code?
cheers

Hello Fred. Most of the time I do have a screen opened and the ManualMesh.pb sample works fine. As I have explained in my reply to rsts, I seem to have corrected the problem.Fred wrote:Do you have opened a screen ? Does the manualmesh.pb example works ?