Hi guys I have a working demo of my
DarkMachine Scripting Engine w/BASIC Syntax written in DarkBasic.
Unfortunately, I've ran into some quirky-ness with the DBP IDE when I separated the MAIN Execution Loop from the DarkMachine Lib. There are 5 files that are included with the MAIN prog from within the DBP IDE. The code compiles with no errors. However, when it attempts to run it crashes with the Send Error Report Alert.
The 5 files are:
DarkMachine.dba - DarkMachine Compiler & Virtual Machine Engine Lib
String.Lib.dba -
Coin's 12 Text Function Lib
dmcvm.h - Contains True DB Source Code Functions use by the functions below
dmcvm_CompilerCallIndex.dba - Contains Compiler Command Lookup Function generated by Code Wizard
dmcvm_ThreadCallIndex.dba - Contains VM Command Select Function generated by Code Wizard
Prior to separating the MAIN from DarkMachine Lib, the code compiled and ran flawlessly. The DarkMachine Lib and MAIN execution prog resided in a single file and all other files were included via IDE. As a single file The MAIN execution prog was located between the Declarations and Functions like so:
DMCVM Consts, Globals, UDTs, Arrays
|
MAIN Prog
|
DMCVM Functions
I read at least one hours worth of Forum-searched Posts to get a grip on the DBP IDE include behavior

I could never get the #Include directive to work. Including the files via IDE eventually worked! But needless to say, I desire the DarkMachine Lib to be independent from the MAIN.
Separation was simple. I merely pulled out the MAIN prog between DMCVM Declarations and Functions. I then saved the two as separate files. I created a new project that loads the MAIN prog as the Main Source and includes the 5 files I mentioned aboved via IDE. Now it will compile, but will not run
Get the WIP here:
http://www.hpquest.com/techlord/apps/DarkMORG/code/DarkMachine.WIP.zip
Inside the WIP you will find two versions of the *.dbpro file. I reconstructed the working version as DarkMachine.v2.dbpro. The bad version is DarkMachine.v1.dbpro.
Any and all help with this issue will be greatly appreciated.