Print Page | Close Window

Markup with JScript

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: MarkupLabel Control
Forum Description: Topics Related to Codejock MarkupLabel Control
URL: http://forum.codejock.com/forum_posts.asp?TID=24224
Printed Date: 23 November 2024 at 2:58am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Markup with JScript
Posted By: cpede
Subject: Markup with JScript
Date Posted: 08 October 2021 at 9:17am
What is required for having a JScript executing as part of the Markup?

I have made a working example in the MarkupPad program, but when inserted into my own program, no animation is performed, only the initial static display?

I have stepped through the code and the scripting engine seems to fire up correctly.

Do I need some kind of message loop or styles or flags on the window/control to make it work?


-------------
Product: Xtreme ToolkitPro (24.0.0)
Platform: Windows 10 (x64)
Language: Visual Studio 2017 (C++)



Replies:
Posted By: cpede
Date Posted: 11 October 2021 at 8:58am
Maybe it actually works. But since I'm trying to call this on a splash screen and I'm doing a lot of stuff behind the splash I think that the script cannot run.

Is the markup scripting using the message loop of the main application to do the rendering?

Also, when leaving my program I get an exception in:

XTPActiveScriptEngine.cpp line 583 (v20.1)

public:
~TimeoutTaskRegistry()
{
ASSERT(m_TimeoutTaskMap.IsEmpty());
}

with the call stack:

  ToolkitPro2010vc150D.dll!CXTPActiveScriptStdRuntime::TimeoutTaskRegistry::~TimeoutTaskRegistry() Line 583 C++
  ToolkitPro2010vc150D.dll!CXTPSingleton<CXTPActiveScriptStdRuntime::TimeoutTaskRegistry,CXTPSingletonDependencies<CXTPDummySingletonDependency,CXTPDummySingletonDependency,CXTPDummySingletonDependency,CXTPDummySingletonDependency,CXTPDummySingletonDependency,CXTPDummySingletonDependency,CXTPDummySingletonDependency,CXTPDummySingletonDependency,CXTPDummySingletonDependency,CXTPDummySingletonDependency> >::Destroy(void * ptr) Line 224 C++
  ToolkitPro2010vc150D.dll!CXTPSingletonPointer::Destroy() Line 115 C++
  ToolkitPro2010vc150D.dll!CXTPSingletonPointer::OnApplicationShutdown(CXTPApplication * pApplication) Line 133 C++
  ToolkitPro2010vc150D.dll!CXTPObservable<CXTPApplication,IXTPApplicationEvents>::NotifyReversed(void(IXTPApplicationEvents::*)(CXTPApplication *) method) Line 1592 C++
  ToolkitPro2010vc150D.dll!CXTPApplication::Shutdown() Line 112 C++
  ToolkitPro2010vc150D.dll!XTPShutdown() Line 158 C++



-------------
Product: Xtreme ToolkitPro (24.0.0)
Platform: Windows 10 (x64)
Language: Visual Studio 2017 (C++)


Posted By: cpede
Date Posted: 22 June 2022 at 5:43am
Ping...

Can the JScript code in a Markup control run in a separate thread, so that animations made with the JScript markup code runs event the main UI is blocked?


-------------
Product: Xtreme ToolkitPro (24.0.0)
Platform: Windows 10 (x64)
Language: Visual Studio 2017 (C++)



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.04 - http://www.webwizforums.com
Copyright ©2001-2021 Web Wiz Ltd. - https://www.webwiz.net