question

Mischa Spelt avatar image
0 Likes"
Mischa Spelt asked Phil BoBo commented

Custom code throws exception only when debugging.

Hi,

I added the following code to a Custom Code activity in Process Flow

/**Custom Code*/
Object current = param(1);
treenode activity = param(2);
Token token = param(3);
treenode processFlow = ownerobject(activity);


int streamId = getstream( activity );
int row = 1;
Table distribution = Table("ContainerAttributeDistribution");


return 0;

and get the helpful error message

time: 0.000000 exception: FlexScript exception: MODEL:/Tools/ProcessFlow/ProcessFlow/Sample attributes>variables/codeNode

on the line declaring streamId when I put a breakpoint in the code.

codewithdebugbreaks.fsm

Any idea what goes wrong?

FlexSim 19.2.2
process flowcustom codeexceptiongetstream
5 |100000

Up to 12 attachments (including images) can be used with a maximum of 23.8 MiB each and 47.7 MiB total.

1 Answer

·
Phil BoBo avatar image
1 Like"
Phil BoBo answered Phil BoBo commented
· 2
5 |100000

Up to 12 attachments (including images) can be used with a maximum of 23.8 MiB each and 47.7 MiB total.

Mischa Spelt avatar image Mischa Spelt commented ·

Phil, just out of curiosity: did you also upgrade the Visual Studio project for 19.0 and if so, between which versions? Is it possible that e.g. 19.0.5 and 19.0.6 also have some subtle bugs?

0 Likes 0 ·
Phil BoBo avatar image Phil BoBo ♦♦ Mischa Spelt commented ·

No, it was upgraded on the 19.2 branch.

0 Likes 0 ·

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 12 attachments (including images) can be used with a maximum of 23.8 MiB each and 47.7 MiB total.