← Back to team overview

leaningtech-dev team mailing list archive

[Question #506912]: Error while creating offscreen canvas element

 

New question #506912 on Cheerp:
https://answers.launchpad.net/cheerp/+question/506912

Hi,
the program below crasches when I create the HTMLCanvasElement, only the first console log message shows up  on the console.

Regards Johan


void webMain() [[cheerp::client]]
{
  // OnDomLoaded
  auto OnDomLoaded = [=](){
    console.log("Before creating client::HTMLCanvasElement()");
    auto canvas = new client::HTMLCanvasElement();
    console.log("After creating client::HTMLCanvasElement()");
  };
  document.addEventListener("DOMContentLoaded",cheerp::Callback(OnDomLoaded));
}


-- 
You received this question notification because your team Leaningtech
Team is an answer contact for Cheerp.