DDE with 64-bit

Use this forum to post Vensim related questions.
Post Reply
drw
Member
Posts: 40
Joined: Wed Mar 25, 2009 1:10 pm

DDE with 64-bit

Post by drw »

Hi folks,

We have been using DDE for a while now to interface between Excel and Vensim on a 32-bit system but when using it on the 64-bit version (DSS 8.06) it seems to crash Vensim. I can create the connection using DDEInitiate ok, but when passing a command using DDEExecute (e.g. SPECIAL>LOADMODEL) then Vensim terminates. Wondering if it is possible to use DDE on a 64bit system or are we restricted to DLL (which does work) when interfacing with Excel. Both approaches have pros and cons but just want to understand whether DDE was still a possibility? Error log shown below if of any use.

Thanks,
Dave

Event log
Log Name: Application
Source: Application Error
Date: 08-01-2020 10:07:45
Event ID: 1000
Task Category: (100)
Level: Error
Keywords: Classic
User: N/A
Computer:
Description:
Faulting application name: vendss64.exe, version: 8.0.6.0, time stamp: 0x5db6d883
Faulting module name: USER32.dll, version: 10.0.17134.376, time stamp: 0x17011bdc
Exception code: 0xc0000005
Fault offset: 0x0000000000050e25
Faulting process id: 0x1c8
Faulting application start time: 0x01d5c59e6df674ff
Faulting application path: C:\Program Files\Vensim\vendss64.exe
Faulting module path: C:\WINDOWS\System32\USER32.dll
Administrator
Super Administrator
Posts: 4573
Joined: Wed Mar 05, 2003 3:10 am

Re: DDE with 64-bit

Post by Administrator »

Can you upload a model and spreadsheet that causes the problem?
Advice to posters seeking help (it really helps us to help you)
http://www.ventanasystems.co.uk/forum/v ... f=2&t=4391

Units are important!
http://www.bbc.co.uk/news/magazine-27509559
drw
Member
Posts: 40
Joined: Wed Mar 25, 2009 1:10 pm

Re: DDE with 64-bit

Post by drw »

The example spreadsheet in the Vensim folder does this ("C:\Users\Public\Vensim\DDE\DDESERV.XLS") in conjunction with the example ball model ("C:\Users\Public\Vensim\Models\Sample\EXTRA\BALL.MDL"). You can start the connection (using the macro) and should get the DDE dialog box to connect - NB I seem to have to start Vensim manually first as it doesn't find the Vensim app (might be a path issue). But that aside, once a connection is established, clicking on the "Load Vensim Model" terminates Vensim (i.e. the app closes completely).

Thanks
Dave
Administrator
Super Administrator
Posts: 4573
Joined: Wed Mar 05, 2003 3:10 am

Re: DDE with 64-bit

Post by Administrator »

Thanks for this. I've fixed the bug, it will be in the next Vensim release.
Advice to posters seeking help (it really helps us to help you)
http://www.ventanasystems.co.uk/forum/v ... f=2&t=4391

Units are important!
http://www.bbc.co.uk/news/magazine-27509559
Post Reply