Query command in VS 2015

Query command in VS 2015

amerloQ2XZU
Not applicable
30 Views
1 Reply
Message 1 of 2

Query command in VS 2015

amerloQ2XZU
Not applicable

[ FlexSim 16.1.2 ]

Hi,

I encountered a problem while rebuilding a project of my module DLL with visual studio 2015 in FlexSim 16.1.2. The DLL was compiled with VS2013 and now I would like to upgrade to VS2015 without changing FlexSim version, but FlexSim returns an exception with query command.

I reproduced my issue in a very simple project (attached file test.rar) where I implemented a single function "test" which executes the standard FlexSim command "query". In the attached model you can find a table and two scripts. The first script executes the query with FlexScript command, the second one executes an usercommand which recalls my DLL function "test", which I have implemented coping FlexScript.

The first script works perfectly, the second one no because an exception is caught. Does somebody help me? Any suggestion from developers @anthony.johnson, @phil.bobo, @Matt Long, ...?

I try to summarize what I have done to realize the DLL:

1- download SDK for FlexSim 16.1.0 from bitbucket;

2- create a the DLL with VS2015 using FlexSim wizard;

3- change setting of project to compile with VS2015 (screenshoot1.png) and for x64;

4- create the model and execute the script;

I summarize also my system:

- win10;

- FlexSim 16.1.2;

- VS2015;

Any suggestion to solve the problem are very useful. For futher details contact me.

Thanks.

0 Likes
Accepted solutions (1)
31 Views
1 Reply
Reply (1)
Message 2 of 2

matt_long
Not applicable
Accepted solution

Yes the query command does not work. There aren't any plans to fix this at the moment. I think the issue comes down to changes we had to make with the new FlexScript and the use of lambdas. @anthony.johnson might be able to explain more.