question

Alessio Merlo avatar image
0 Likes"
Alessio Merlo asked Matt Long answered

Query command in VS 2015

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.

FlexSim 16.1.2
querydllflexsim 16.1.visual studio 2015
screenshoot1.png (228.5 KiB)
test.rar (371.1 KiB)
query-test.fsm (13.2 KiB)
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

Matt Long avatar image
1 Like"
Matt Long answered

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.

5 |100000

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