Search found 6 matches

Search

by mmarchha
Wed Nov 18, 2020 9:59 am
Forum: Bugs / Problems
Topic: Decode json string to a struct
Replies: 1
Views: 2484

Decode json string to a struct

I have a struct with a few string data members. Encoding this struct to a json string works perfectly fine with jsonEncode(). But when I try to convert this json string back to the struct using jsonDecode I get a warning message that the returned data type does not match my struct data type. WARNING...
by mmarchha
Tue Apr 18, 2017 4:07 pm
Forum: Bugs / Problems
Topic: dpDisconnect() sometimes returns error (maybe due to still pending runs)
Replies: 9
Views: 6770

Re: dpDisconnect() sometimes returns error (maybe due to still pending runs)

Thanks for the info, I'll wait for the outcome of your developers

Just one small detail: I'm currently using WinCC OA 3.13P17 on Windows Server 2008R2
by mmarchha
Tue Apr 18, 2017 2:42 pm
Forum: Bugs / Problems
Topic: dpDisconnect() sometimes returns error (maybe due to still pending runs)
Replies: 9
Views: 6770

Re: dpDisconnect() sometimes returns error (maybe due to still pending runs)

<t>I checked the code but the dpDisconnect gets only called once.<br/> In the meanwhile I figured out that the disconnect does not fail directly when disconnecting while runs are pending but at the subsequent disconnect (of course after a successful connect).<br/> Steps how I'm running into this pro...
by mmarchha
Thu Apr 06, 2017 4:02 pm
Forum: Bugs / Problems
Topic: dpDisconnect() sometimes returns error (maybe due to still pending runs)
Replies: 9
Views: 6770

dpDisconnect() sometimes returns error (maybe due to still pending runs)

<t>I have script in a control manager that is basically calculating an overall status based on a list of status information form devices.<br/> <br/> For that purpose I'm connecting to a list of DPEs and in the CB function I'm calculating the status.<br/> <br/> This calculating is not always active, ...
by mmarchha
Fri May 06, 2016 2:02 pm
Forum: HowTos
Topic: call a given callback function from an control extension (dll)
Replies: 3
Views: 3389

Re: call a given callback function from an control extension (dll)

<r>Works perfectly :woohoo: <br/> <br/> One thing to add is how to get to the pointer of the script.<br/> I'm doing it in the execute function.<br/> e.g.: <CODE><s>[code]</s><i> </i>const Variable *myExternHdl::execute(ExecuteParamRec& param) { .... CtrlScript *script = param.thread->getScript()...
by mmarchha
Wed May 04, 2016 7:45 pm
Forum: HowTos
Topic: call a given callback function from an control extension (dll)
Replies: 3
Views: 3389

call a given callback function from an control extension (dll)

<r>Is there a way that a own control extension can call a callback function?<br/> <br/> One example usescase would be that your control extension has a function that starts a calculation that might take a while an in your code you do not require the result immediately but you like to get a notificat...