Search found 8 matches
- 04 Feb 2014
- Forum: MultiCharts
- Topic: PureBasic Simple DLL - MC Crashes on Exit [SOLVED]
- Replies: 2
- Views: 2126
Re: PureBasic Simple DLL - MC Crashes on Exit [SOLVED]
Yes, I concur. I did the same test with same results as you. It seems that PureBasic is simply not fully compatible in writing DLLs. I have had other problems with PureBasic incompatibilities in the past as well. So I will be switching to Microsoft Visual Studio C++. Thank you for your rapid response.
- 03 Feb 2014
- Forum: MultiCharts
- Topic: PureBasic Simple DLL - MC Crashes on Exit [SOLVED]
- Replies: 2
- Views: 2126
PureBasic Simple DLL - MC Crashes on Exit [SOLVED]
Hello Experts, I am using PureBasic x64 to create a very simple DLL for MC x64. It works fine until I close the Workspace, then it crashes MC. The same DLL works fine from Excel x64 and PureBasic claims it is also working fine for them. So I am stumped and hope you can help. Here's what happens: 1. ...
- 19 Jun 2012
- Forum: MultiCharts
- Topic: Multithreading details with DLL
- Replies: 4
- Views: 1568
Re: Multithreading details with DLL
Dave, Thank you for your reply. Here are a few more question to help me clarify the handling of multithreading and MC64: 1) Using the previously mentioned "First Scenerio" example, what is the approach so there is no chance another chart or another insertion of same indicator on same chart will inte...
- 16 Jun 2012
- Forum: MultiCharts
- Topic: Multithreading details with DLL
- Replies: 4
- Views: 1568
Multithreading details with DLL
I am trying to understand more about exactly how MC64 handles multithreading. FIRST SCENARIO: a) I have 2 identical charts. b) Both charts have same identical study which calls DLL functions "SetDLLVariable", "IncrementDLLVaraible", "GetDLLVariable". One function sets a variable inside the DLL to th...
- 09 Jun 2012
- Forum: MultiCharts
- Topic: Simple 64-bit DLL for MC64
- Replies: 7
- Views: 2620
Re: Simple 64-bit DLL for MC64
Hi Emmanuel, Here is my PureBasic x64 v4.61 code: EnableExplicit #DebugLog = 1 ; Off=0, On=1 Procedure PrintToFile( MyOut.s) Define Tempstr.s Define FileNum.l FileNum = OpenFile (#PB_Any,"c:\IEC_Log.txt") If FileNum > 0 FileSeek(FileNum, Lof(FileNum)) Tempstr= FormatDate("%yyyy-%mm-%dd, %hh:%ii:%ss:...
- 09 Jun 2012
- Forum: MultiCharts
- Topic: Simple 64-bit DLL for MC64
- Replies: 7
- Views: 2620
Re: Simple 64-bit DLL for MC64
Emmanuel, thank you very much for the tip on PB64 v4.61. That has solved part of the problem and I'm hoping you will share your expertise to solve the remaining problem. Here's the current output from the test: - - - 1120609, 1006 - - - AddLong performs 5+7=12, Actual = 12.00 --> AddFloat performs 3...
- 08 Jun 2012
- Forum: MultiCharts
- Topic: Simple 64-bit DLL for MC64
- Replies: 7
- Views: 2620
Re: Simple 64-bit DLL for MC64
It is also doubles that fail. Do you have a C++ example demonstrating that MC64 works with a 64-bit DLL using doubles and floats? I would greatly appreciate it because then I can apply the technique that you use in C++ to PureBasic. Here are the one's that I need because they don't work for me. Defi...
- 06 Jun 2012
- Forum: MultiCharts
- Topic: Simple 64-bit DLL for MC64
- Replies: 7
- Views: 2620
Simple 64-bit DLL for MC64
I'm trying to get some very simple 64-bit DLL functions to work with MC64. Some of them work and other fail. Does anyone have a working sample of a 64-bit DLL which works with MC64 that can do something very simple like simply adding two numbers? Any language is fine so that I can see the declaratio...