30 views
in Platform Packages by
When I export to the profile WebGL which is set as:

PlatformPackage: Web.WebGL.RGBA8888
ApplicationClass: Application::Application

I get no errors but when I open with Firefox the resulting EmWiApp.html I get a blank page and in the Console:

Uncaught SyntaxError: private names aren't valid in this context Application.js:35:9
Uncaught TypeError: B.Application is undefined
    _Init file:///C:/git/trinity-ui/GeneratedWebGL/code/_project.js:33
    <anonymous> file:///C:/git/trinity-ui/GeneratedWebGL/EmWiApp.html:87
_project.js:33:37

Looking Inside of _project.js I have:

var EmWiCompr_14_02;var EmWiApp;if(!EmWiCompr_14_02)throw new Error("The Embedded Wizard runtime environment file 'emwi_compr_14_02.js' isn't yet loaded!"
);if(EmWiApp)throw new Error("The application file '_project.js' included twice!"
);EmWiApp=(function(){var B={__proto__:EmWiCompr_14_02};
B.Default=0;B.Italian=1;B.French=2;B.German=3;B.Polish=4;B.Dutch=5;
B.acW=[1024,600];B.r3=function(){return B.Application.FQ;};B.aa4="";B.pA=0;B.xi=0;
B.kc=[];B._Init=function(){B.Core._Init();B.adK._Init();B.Graphics._Init();B.adE.
_Init();B.adH._Init();B.adO._Init();B.Application._Init();B.adN._Init();B.fu._Init(
);B.adI._Init();B.adL._Init();B.adG._Init();B.adM._Init();B.adF._Init();B.adJ._Init(
);this.__proto__._Init.apply(this,arguments);};B._ReInit=function(){B.Core._ReInit(
);B.adK._ReInit();B.Graphics._ReInit();B.adE._ReInit();B.adH._ReInit();B.adO._ReInit(
);B.Application._ReInit();B.adN._ReInit();B.fu._ReInit();B.adI._ReInit();B.adL._ReInit(
);B.adG._ReInit();B.adM._ReInit();B.adF._ReInit();B.adJ._ReInit();};B.acU=function(
D){B.Core.AH(D);B.adK.AH(D);B.Graphics.AH(D);B.adE.AH(D);B.adH.AH(D);B.adO.AH(D);
B.Application.AH(D);B.adN.AH(D);B.fu.AH(D);B.adI.AH(D);B.adL.AH(D);B.adG.AH(D);B.
adM.AH(D);B.adF.AH(D);B.adJ.AH(D);};return B;})();

Is there a workaround?

1 Answer

+1 vote
by
 
Best answer

Hello giuspen,

to narrow down the error source I would recommend to generate the code with switched off obfuscation. Then try again. In case of an error the source code can be better analyzed with deactivated obfuscation.

Best regards

Paul Banach

by
Thanks Paul that did it.

I had an InLine in my Application with Generator=true

/* include the device driver header file to get access for the device class */
#include "DeviceDriver.h"

This was not exactly proper javascript.

Ask Embedded Wizard

Welcome to the question and answer site for Embedded Wizard users and UI developers.

Ask your question and receive answers from the Embedded Wizard support team or from other members of the community!

Embedded Wizard Website | Privacy Policy | Imprint

...