Ctrl Extension call startFunc

Discussions about product bugs & problems!
Note: This is no replacement for the Official ETM Support!
20 posts • Page 2 of 2
Merikarhu
Posts:13
Joined: Wed Jun 07, 2017 3:19 pm

Re: Ctrl Extension call startFunc

Post by Merikarhu »

Martin Koller wrote:
"does not work" is usually not enough to describe a problem.
Please be more specific. What does not work ? Does it crash ? Does it show an error ?
Is this a script you run in a CTRL manager or the UI manager ?

You can store the CtrlScript pointer if you KNOW that it is still valid when you need it.
But keep in mind that the UI manager starts a lot of scripts and that these scripts are also stopped (deleted) e.g. when the panel is closed.
Test code:

Code: Select all

	case F_testCall:
	{
 // Call function from ctrl script
	cout

Merikarhu
Posts:13
Joined: Wed Jun 07, 2017 3:19 pm

Re: Ctrl Extension call startFunc

Post by Merikarhu »

Actually i got this idea from this topic https://portal.etm.at/index.php?option ... 6&id=3486
Doing exactly the same in my code..

mkoller
Posts:741
Joined: Fri Sep 17, 2010 9:03 am

Re: Ctrl Extension call startFunc

Post by mkoller »

How does the stack (backtrace) look like when it crashes ?

Merikarhu
Posts:13
Joined: Wed Jun 07, 2017 3:19 pm

Re: Ctrl Extension call startFunc

Post by Merikarhu »

Image

mkoller
Posts:741
Joined: Fri Sep 17, 2010 9:03 am

Re: Ctrl Extension call startFunc

Post by mkoller »

There's something weird here. The param.thread is a null ptr, but since I don't see your code, who knows what's wrong.
Would you mind posting your code here ?
If you'd like to keep it private, just get in contact with our support and send them the source so I'll can have a look.

Merikarhu
Posts:13
Joined: Wed Jun 07, 2017 3:19 pm

Re: Ctrl Extension call startFunc

Post by Merikarhu »

I send source via support, is this the correct link ? https://support.industry.siemens.com/my/ww/en/requests should i mention you in details of support message?

mkoller
Posts:741
Joined: Fri Sep 17, 2010 9:03 am

Re: Ctrl Extension call startFunc

Post by mkoller »

yes, correct link. Mention that we discussed this already in the forum.

Merikarhu
Posts:13
Joined: Wed Jun 07, 2017 3:19 pm

Re: Ctrl Extension call startFunc

Post by Merikarhu »

I have sent project files (exluding 3rd party libs) to the support system.

leoknipp
Posts:2928
Joined: Tue Aug 24, 2010 7:28 pm

Re: Ctrl Extension call startFunc

Post by leoknipp »

Can you please give us the number of the service request you have submitted at the Siemens support system. then I can have a look for the current status.

Best Regards
Leopold Knipp
Senior Support Specialist

Merikarhu
Posts:13
Joined: Wed Jun 07, 2017 3:19 pm

Re: Ctrl Extension call startFunc

Post by Merikarhu »

Leopold Knipp wrote:
Can you please give us the number of the service request you have submitted at the Siemens support system. then I can have a look for the current status.

Best Regards
Leopold Knipp
Senior Support Specialist
Edited. SR number 1-4866652031

20 posts • Page 2 of 2