When the files are included my program crashes after 5-10 seconds, I suspect it's the files themselves but I wanted to ask the question anyway in case I was overlooking something or potentially discovered a bug. The strange thing is when running with the debugger or from the compiled EXE the issue is not present, only when launching the program from the IDE (with debugger disabled).
This took me a while to track down as I thought I'd added some other logic to the program causing the crashes but when I reverted changes I'd recently made and commented out the include binary statements the problem was fixed.
I recreated the two problem BMP files as PNG and this seems to resolve the crashing so I'm guessing there was something problematic with the original two BMP files.
EDIT: The program is still crashing with the PNGs, but only the two below... very strange.
Code: Select all
; inline toolstrip bmps
ToolStripMain: : IncludeBinary #PB_Compiler_FilePath + "/ART_TOOL_Buttons_02.BMP"
ToolStripMain2: : IncludeBinary #PB_Compiler_FilePath + "/ART_TOOL_Palette_01.BMP"
ToolStripSubDraw: : IncludeBinary #PB_Compiler_FilePath + "/ART_TOOL_Sub_Draw_01.BMP"
; these two files cause the program to crash
;ToolStripSubLine: : IncludeBinary #PB_Compiler_FilePath + "/ART_TOOL_Sub_Line_01.BMP"
;ToolStripSubBox: : IncludeBinary #PB_Compiler_FilePath + "/ART_TOOL_Sub_Box_01.BMP"