[Tool code] Run 2 IDE versions = Tool code Fail?

Working on new editor enhancements?
User avatar
skywalk
Addict
Addict
Posts: 3972
Joined: Wed Dec 23, 2009 10:14 pm
Location: Boston, MA

[Tool code] Run 2 IDE versions = Tool code Fail?

Post by skywalk »

Can anyone confirm running a tool in 2 separate IDE's works?
I installed PB v57b4 in "c:\PureBasic-x64-try\".
Then ran v562 and v57b4 with the "/portable" switch and identical prefs files.
My tools work in the v562 IDE, but fail in the 2nd v57b4 IDE?
I added some MessageRequester() prompts to the tool code and saw the 2nd IDE environment variables were empty?
My antivirus was disabled.
Running the same tool code in the v57b4 IDE alone worked.

Code: Select all

    hSci = Val(GetEnvironmentVariable("PB_TOOL_Scintilla"))
    hIDE = Val(GetEnvironmentVariable("PB_TOOL_MainWindow"))
    exe$ = GetEnvironmentVariable("PB_TOOL_IDE")

Code: Select all

PB_TOOL_Compiler                C:\PureBasic-x64\Compilers\pbcompiler.exe
PB_TOOL_Cursor                  1106x12
PB_TOOL_Debugger                0
PB_TOOL_Executable              C:\PB-Tools\ct_sci_all.exe
PB_TOOL_FileList                C:\dev\tools\ct_sci_all.pb
PB_TOOL_IDE                     C:\PureBasic-x64\PureBasic.exe
PB_TOOL_InlineASM               0
PB_TOOL_Language                English
PB_TOOL_MainWindow              1378128
PB_TOOL_OnError                 0
PB_TOOL_Preferences             C:\PureBasic-x64\PureBasic.prefs
PB_TOOL_Scintilla               2360576
PB_TOOL_Selection               1106x12x1106x12
PB_TOOL_SubSystem               
PB_TOOL_Thread                  0
PB_TOOL_Unicode                 1
PB_TOOL_Word                    ExamineEnvironmentVariables
PB_TOOL_XPSkin                  1
The nice thing about standards is there are so many to choose from. ~ Andrew Tanenbaum