Hi,
nach langem ist es wieder mal Zeit Gernot zu ärgern. =D
Ich hab mal gemütlich v14.003 angetestet und scheinbar gibt es ein Problemchen mit dem Debug - Modus.
Hier ist der Originalcode:
// --------------------------------- //
// Project: gal
// Start: Tuesday, August 18, 2015
// IDE Version: 14.003
// SETCURRENTDIR("Media") // go to media files
TYPE gui_TYPE
FUNCTION drawMouse: x, y
STARTPOLY
POLYVECTOR x, y, 0, 0, RGB(255, 255, 255)
POLYVECTOR x + 5, y + 10, 0, 0, RGB(64, 128, 255)
POLYVECTOR x + 10, y + 5, 0, 0, RGB(64, 128, 255)
ENDPOLY
ENDFUNCTION
ENDTYPE
TYPE galaxyz_TYPE
gui AS gui_TYPE
mouse AS wpx_mouse_TYPE
startupInit
FUNCTION init:
ENDFUNCTION
FUNCTION drawWindows:
IF self.startupInit = FALSE
self.init()
self.startupInit = TRUE
ENDIF
updateMouse()
self.gui.drawMouse(self.mouse.x, self.mouse.y)
ENDFUNCTION
ENDTYPE
TYPE wpx_mouse_TYPE
x
y
b1
b2
b1_press
b2_press
ENDTYPE
GLOBAL gal AS galaxyz_TYPE
main()
FUNCTION main:
WHILE TRUE
gal.drawWindows()
SHOWSCREEN
WEND
ENDFUNCTION
// --------------------------------- //
// Mouse
// --------------------------------- //
FUNCTION updateMouse:
LOCAL x, y, b1, b2, b1_press, b2_press
STATIC b1_tmp, b2_tmp, press_init, press_timer_old
MOUSESTATE x, y, b1_press, b2_press
gal.mouse.x = x
gal.mouse.y = y
IF b1_press = FALSE
b1 = FALSE
press_init = FALSE
ENDIF
IF b1_press = TRUE
b1_tmp = TRUE
IF press_init = FALSE
press_timer_old = GETTIMERALL() + 500
press_init = TRUE
ENDIF
ENDIF
IF b1_press = FALSE AND b1_tmp = TRUE AND GETTIMERALL() <= press_timer_old
b1 = TRUE
b1_tmp = FALSE
ENDIF
IF b2_press = FALSE THEN b2 = FALSE
IF b2_press = TRUE THEN b2_tmp = TRUE
IF b2_press = FALSE AND b2_tmp = TRUE
b2 = TRUE
b2_tmp = FALSE
ENDIF
gal.mouse.b1 = b1
gal.mouse.b2 = b2
gal.mouse.b1_press = b1_press
gal.mouse.b2_press = b2_press
ENDFUNCTION
Starte ich mein kleines Programm, funktioniert es ohne Probleme.
Starte ich es jedoch im Debug - Modus, bekomme ich diese Schneise:
_______________________________________
*** Configuration: WIN32 ***
precompiling:
GPC - GLBasic Precompiler V.10.037 SN:75706ccf - 3D, NET
Wordcount:50 commands
compiling:
In file included from C:\Users\WPORTS~1\AppData\Local\Temp\glbasic\gpc_tempg.cpp:2:
C:\Users\WPORTS~1\AppData\Local\Temp\glbasic\gpc_temp.h: In member function `virtual void __GLBASIC__::galaxyz_TYPE::dbg() const':
C:\Users\WPORTS~1\AppData\Local\Temp\glbasic\gpc_temp.h:171: error: no match for 'operator+' in 'DGStr(((const char*)"gui:")) + ((const __GLBASIC__::galaxyz_TYPE*)this)->__GLBASIC__::galaxyz_TYPE::gui'
C:/Program Files (x86)/GLBasic_v14/Compiler/platform/Include/glb.h:278: note: candidates are: __GLBASIC__::DGStr __GLBASIC__::operator+(int, __GLBASIC__::CGStr)
C:/Program Files (x86)/GLBasic_v14/Compiler/platform/Include/glb.h:278: note: __GLBASIC__::DGStr __GLBASIC__::operator+(int, const __GLBASIC__::DGStr&)
C:/Program Files (x86)/GLBasic_v14/Compiler/platform/Include/glb.h:278: note: __GLBASIC__::DGStr __GLBASIC__::operator+(int64, __GLBASIC__::CGStr)
C:/Program Files (x86)/GLBasic_v14/Compiler/platform/Include/glb.h:278: note: __GLBASIC__::DGStr __GLBASIC__::operator+(int64, const __GLBASIC__::DGStr&)
C:/Program Files (x86)/GLBasic_v14/Compiler/platform/Include/glb.h:278: note: __GLBASIC__::DGStr __GLBASIC__::operator+(float, __GLBASIC__::CGStr)
C:/Program Files (x86)/GLBasic_v14/Compiler/platform/Include/glb.h:278: note: __GLBASIC__::DGStr __GLBASIC__::operator+(float, const __GLBASIC__::DGStr&)
C:/Program Files (x86)/GLBasic_v14/Compiler/platform/Include/glb.h:278: note: __GLBASIC__::DGStr __GLBASIC__::operator+(double, __GLBASIC__::CGStr)
C:/Program Files (x86)/GLBasic_v14/Compiler/platform/Include/glb.h:278: note: __GLBASIC__::DGStr __GLBASIC__::operator+(double, const __GLBASIC__::DGStr&)
C:/Program Files (x86)/GLBasic_v14/Compiler/platform/Include/glb.h:278: note: __GLBASIC__::DGStr __GLBASIC__::operator+(__GLBASIC__::CGStr, __GLBASIC__::CGStr)
C:/Program Files (x86)/GLBasic_v14/Compiler/platform/Include/glb.h:278: note: __GLBASIC__::DGStr __GLBASIC__::operator+(__GLBASIC__::CGStr, const __GLBASIC__::DGStr&)
C:/Program Files (x86)/GLBasic_v14/Compiler/platform/Include/glb.h:278: note: __GLBASIC__::DGStr __GLBASIC__::operator+(__GLBASIC__::CGStr, int)
C:/Program Files (x86)/GLBasic_v14/Compiler/platform/Include/glb.h:278: note: __GLBASIC__::DGStr __GLBASIC__::operator+(__GLBASIC__::CGStr, int64)
C:/Program Files (x86)/GLBasic_v14/Compiler/platform/Include/glb.h:278: note: __GLBASIC__::DGStr __GLBASIC__::operator+(__GLBASIC__::CGStr, float)
C:/Program Files (x86)/GLBasic_v14/Compiler/platform/Include/glb.h:278: note: __GLBASIC__::DGStr __GLBASIC__::operator+(__GLBASIC__::CGStr, double)
C:/Program Files (x86)/GLBasic_v14/Compiler/platform/Include/glb.h:278: note: __GLBASIC__::DGStr __GLBASIC__::operator+(const __GLBASIC__::DGStr&, __GLBASIC__::CGStr)
C:/Program Files (x86)/GLBasic_v14/Compiler/platform/Include/glb.h:278: note: __GLBASIC__::DGStr __GLBASIC__::operator+(const __GLBASIC__::DGStr&, const __GLBASIC__::DGStr&)
C:/Program Files (x86)/GLBasic_v14/Compiler/platform/Include/glb.h:278: note: __GLBASIC__::DGStr __GLBASIC__::operator+(const __GLBASIC__::DGStr&, int)
C:/Program Files (x86)/GLBasic_v14/Compiler/platform/Include/glb.h:278: note: __GLBASIC__::DGStr __GLBASIC__::operator+(const __GLBASIC__::DGStr&, int64)
C:/Program Files (x86)/GLBasic_v14/Compiler/platform/Include/glb.h:278: note: __GLBASIC__::DGStr __GLBASIC__::operator+(const __GLBASIC__::DGStr&, float)
C:/Program Files (x86)/GLBasic_v14/Compiler/platform/Include/glb.h:278: note: __GLBASIC__::DGStr __GLBASIC__::operator+(const __GLBASIC__::DGStr&, double)
C:\Users\WPORTS~1\AppData\Local\Temp\glbasic\gpc_temp.h:172: error: no match for 'operator+' in 'DGStr(((const char*)"mouse:")) + ((const __GLBASIC__::galaxyz_TYPE*)this)->__GLBASIC__::galaxyz_TYPE::mouse'
C:/Program Files (x86)/GLBasic_v14/Compiler/platform/Include/glb.h:278: note: candidates are: __GLBASIC__::DGStr __GLBASIC__::operator+(int, __GLBASIC__::CGStr)
C:/Program Files (x86)/GLBasic_v14/Compiler/platform/Include/glb.h:278: note: __GLBASIC__::DGStr __GLBASIC__::operator+(int, const __GLBASIC__::DGStr&)
C:/Program Files (x86)/GLBasic_v14/Compiler/platform/Include/glb.h:278: note: __GLBASIC__::DGStr __GLBASIC__::operator+(int64, __GLBASIC__::CGStr)
C:/Program Files (x86)/GLBasic_v14/Compiler/platform/Include/glb.h:278: note: __GLBASIC__::DGStr __GLBASIC__::operator+(int64, const __GLBASIC__::DGStr&)
C:/Program Files (x86)/GLBasic_v14/Compiler/platform/Include/glb.h:278: note: __GLBASIC__::DGStr __GLBASIC__::operator+(float, __GLBASIC__::CGStr)
C:/Program Files (x86)/GLBasic_v14/Compiler/platform/Include/glb.h:278: note: __GLBASIC__::DGStr __GLBASIC__::operator+(float, const __GLBASIC__::DGStr&)
C:/Program Files (x86)/GLBasic_v14/Compiler/platform/Include/glb.h:278: note: __GLBASIC__::DGStr __GLBASIC__::operator+(double, __GLBASIC__::CGStr)
C:/Program Files (x86)/GLBasic_v14/Compiler/platform/Include/glb.h:278: note: __GLBASIC__::DGStr __GLBASIC__::operator+(double, const __GLBASIC__::DGStr&)
C:/Program Files (x86)/GLBasic_v14/Compiler/platform/Include/glb.h:278: note: __GLBASIC__::DGStr __GLBASIC__::operator+(__GLBASIC__::CGStr, __GLBASIC__::CGStr)
C:/Program Files (x86)/GLBasic_v14/Compiler/platform/Include/glb.h:278: note: __GLBASIC__::DGStr __GLBASIC__::operator+(__GLBASIC__::CGStr, const __GLBASIC__::DGStr&)
C:/Program Files (x86)/GLBasic_v14/Compiler/platform/Include/glb.h:278: note: __GLBASIC__::DGStr __GLBASIC__::operator+(__GLBASIC__::CGStr, int)
C:/Program Files (x86)/GLBasic_v14/Compiler/platform/Include/glb.h:278: note: __GLBASIC__::DGStr __GLBASIC__::operator+(__GLBASIC__::CGStr, int64)
C:/Program Files (x86)/GLBasic_v14/Compiler/platform/Include/glb.h:278: note: __GLBASIC__::DGStr __GLBASIC__::operator+(__GLBASIC__::CGStr, float)
C:/Program Files (x86)/GLBasic_v14/Compiler/platform/Include/glb.h:278: note: __GLBASIC__::DGStr __GLBASIC__::operator+(__GLBASIC__::CGStr, double)
C:/Program Files (x86)/GLBasic_v14/Compiler/platform/Include/glb.h:278: note: __GLBASIC__::DGStr __GLBASIC__::operator+(const __GLBASIC__::DGStr&, __GLBASIC__::CGStr)
C:/Program Files (x86)/GLBasic_v14/Compiler/platform/Include/glb.h:278: note: __GLBASIC__::DGStr __GLBASIC__::operator+(const __GLBASIC__::DGStr&, const __GLBASIC__::DGStr&)
C:/Program Files (x86)/GLBasic_v14/Compiler/platform/Include/glb.h:278: note: __GLBASIC__::DGStr __GLBASIC__::operator+(const __GLBASIC__::DGStr&, int)
C:/Program Files (x86)/GLBasic_v14/Compiler/platform/Include/glb.h:278: note: __GLBASIC__::DGStr __GLBASIC__::operator+(const __GLBASIC__::DGStr&, int64)
C:/Program Files (x86)/GLBasic_v14/Compiler/platform/Include/glb.h:278: note: __GLBASIC__::DGStr __GLBASIC__::operator+(const __GLBASIC__::DGStr&, float)
C:/Program Files (x86)/GLBasic_v14/Compiler/platform/Include/glb.h:278: note: __GLBASIC__::DGStr __GLBASIC__::operator+(const __GLBASIC__::DGStr&, double)
In file included from C:\Users\WPORTS~1\AppData\Local\Temp\glbasic\gpc_temp0.cpp:1:
C:\Users\WPORTS~1\AppData\Local\Temp\glbasic\gpc_temp.h: In member function `virtual void __GLBASIC__::galaxyz_TYPE::dbg() const':
C:\Users\WPORTS~1\AppData\Local\Temp\glbasic\gpc_temp.h:171: error: no match for 'operator+' in 'DGStr(((const char*)"gui:")) + ((const __GLBASIC__::galaxyz_TYPE*)this)->__GLBASIC__::galaxyz_TYPE::gui'
C:/Program Files (x86)/GLBasic_v14/Compiler/platform/Include/glb.h:278: note: candidates are: __GLBASIC__::DGStr __GLBASIC__::operator+(int, __GLBASIC__::CGStr)
C:/Program Files (x86)/GLBasic_v14/Compiler/platform/Include/glb.h:278: note: __GLBASIC__::DGStr __GLBASIC__::operator+(int, const __GLBASIC__::DGStr&)
C:/Program Files (x86)/GLBasic_v14/Compiler/platform/Include/glb.h:278: note: __GLBASIC__::DGStr __GLBASIC__::operator+(int64, __GLBASIC__::CGStr)
C:/Program Files (x86)/GLBasic_v14/Compiler/platform/Include/glb.h:278: note: __GLBASIC__::DGStr __GLBASIC__::operator+(int64, const __GLBASIC__::DGStr&)
C:/Program Files (x86)/GLBasic_v14/Compiler/platform/Include/glb.h:278: note: __GLBASIC__::DGStr __GLBASIC__::operator+(float, __GLBASIC__::CGStr)
C:/Program Files (x86)/GLBasic_v14/Compiler/platform/Include/glb.h:278: note: __GLBASIC__::DGStr __GLBASIC__::operator+(float, const __GLBASIC__::DGStr&)
C:/Program Files (x86)/GLBasic_v14/Compiler/platform/Include/glb.h:278: note: __GLBASIC__::DGStr __GLBASIC__::operator+(double, __GLBASIC__::CGStr)
C:/Program Files (x86)/GLBasic_v14/Compiler/platform/Include/glb.h:278: note: __GLBASIC__::DGStr __GLBASIC__::operator+(double, const __GLBASIC__::DGStr&)
C:/Program Files (x86)/GLBasic_v14/Compiler/platform/Include/glb.h:278: note: __GLBASIC__::DGStr __GLBASIC__::operator+(__GLBASIC__::CGStr, __GLBASIC__::CGStr)
C:/Program Files (x86)/GLBasic_v14/Compiler/platform/Include/glb.h:278: note: __GLBASIC__::DGStr __GLBASIC__::operator+(__GLBASIC__::CGStr, const __GLBASIC__::DGStr&)
C:/Program Files (x86)/GLBasic_v14/Compiler/platform/Include/glb.h:278: note: __GLBASIC__::DGStr __GLBASIC__::operator+(__GLBASIC__::CGStr, int)
C:/Program Files (x86)/GLBasic_v14/Compiler/platform/Include/glb.h:278: note: __GLBASIC__::DGStr __GLBASIC__::operator+(__GLBASIC__::CGStr, int64)
C:/Program Files (x86)/GLBasic_v14/Compiler/platform/Include/glb.h:278: note: __GLBASIC__::DGStr __GLBASIC__::operator+(__GLBASIC__::CGStr, float)
C:/Program Files (x86)/GLBasic_v14/Compiler/platform/Include/glb.h:278: note: __GLBASIC__::DGStr __GLBASIC__::operator+(__GLBASIC__::CGStr, double)
C:/Program Files (x86)/GLBasic_v14/Compiler/platform/Include/glb.h:278: note: __GLBASIC__::DGStr __GLBASIC__::operator+(const __GLBASIC__::DGStr&, __GLBASIC__::CGStr)
C:/Program Files (x86)/GLBasic_v14/Compiler/platform/Include/glb.h:278: note: __GLBASIC__::DGStr __GLBASIC__::operator+(const __GLBASIC__::DGStr&, const __GLBASIC__::DGStr&)
C:/Program Files (x86)/GLBasic_v14/Compiler/platform/Include/glb.h:278: note: __GLBASIC__::DGStr __GLBASIC__::operator+(const __GLBASIC__::DGStr&, int)
C:/Program Files (x86)/GLBasic_v14/Compiler/platform/Include/glb.h:278: note: __GLBASIC__::DGStr __GLBASIC__::operator+(const __GLBASIC__::DGStr&, int64)
C:/Program Files (x86)/GLBasic_v14/Compiler/platform/Include/glb.h:278: note: __GLBASIC__::DGStr __GLBASIC__::operator+(const __GLBASIC__::DGStr&, float)
C:/Program Files (x86)/GLBasic_v14/Compiler/platform/Include/glb.h:278: note: __GLBASIC__::DGStr __GLBASIC__::operator+(const __GLBASIC__::DGStr&, double)
C:\Users\WPORTS~1\AppData\Local\Temp\glbasic\gpc_temp.h:172: error: no match for 'operator+' in 'DGStr(((const char*)"mouse:")) + ((const __GLBASIC__::galaxyz_TYPE*)this)->__GLBASIC__::galaxyz_TYPE::mouse'
C:/Program Files (x86)/GLBasic_v14/Compiler/platform/Include/glb.h:278: note: candidates are: __GLBASIC__::DGStr __GLBASIC__::operator+(int, __GLBASIC__::CGStr)
C:/Program Files (x86)/GLBasic_v14/Compiler/platform/Include/glb.h:278: note: __GLBASIC__::DGStr __GLBASIC__::operator+(int, const __GLBASIC__::DGStr&)
C:/Program Files (x86)/GLBasic_v14/Compiler/platform/Include/glb.h:278: note: __GLBASIC__::DGStr __GLBASIC__::operator+(int64, __GLBASIC__::CGStr)
C:/Program Files (x86)/GLBasic_v14/Compiler/platform/Include/glb.h:278: note: __GLBASIC__::DGStr __GLBASIC__::operator+(int64, const __GLBASIC__::DGStr&)
C:/Program Files (x86)/GLBasic_v14/Compiler/platform/Include/glb.h:278: note: __GLBASIC__::DGStr __GLBASIC__::operator+(float, __GLBASIC__::CGStr)
C:/Program Files (x86)/GLBasic_v14/Compiler/platform/Include/glb.h:278: note: __GLBASIC__::DGStr __GLBASIC__::operator+(float, const __GLBASIC__::DGStr&)
C:/Program Files (x86)/GLBasic_v14/Compiler/platform/Include/glb.h:278: note: __GLBASIC__::DGStr __GLBASIC__::operator+(double, __GLBASIC__::CGStr)
C:/Program Files (x86)/GLBasic_v14/Compiler/platform/Include/glb.h:278: note: __GLBASIC__::DGStr __GLBASIC__::operator+(double, const __GLBASIC__::DGStr&)
C:/Program Files (x86)/GLBasic_v14/Compiler/platform/Include/glb.h:278: note: __GLBASIC__::DGStr __GLBASIC__::operator+(__GLBASIC__::CGStr, __GLBASIC__::CGStr)
C:/Program Files (x86)/GLBasic_v14/Compiler/platform/Include/glb.h:278: note: __GLBASIC__::DGStr __GLBASIC__::operator+(__GLBASIC__::CGStr, const __GLBASIC__::DGStr&)
C:/Program Files (x86)/GLBasic_v14/Compiler/platform/Include/glb.h:278: note: __GLBASIC__::DGStr __GLBASIC__::operator+(__GLBASIC__::CGStr, int)
C:/Program Files (x86)/GLBasic_v14/Compiler/platform/Include/glb.h:278: note: __GLBASIC__::DGStr __GLBASIC__::operator+(__GLBASIC__::CGStr, int64)
C:/Program Files (x86)/GLBasic_v14/Compiler/platform/Include/glb.h:278: note: __GLBASIC__::DGStr __GLBASIC__::operator+(__GLBASIC__::CGStr, float)
C:/Program Files (x86)/GLBasic_v14/Compiler/platform/Include/glb.h:278: note: __GLBASIC__::DGStr __GLBASIC__::operator+(__GLBASIC__::CGStr, double)
C:/Program Files (x86)/GLBasic_v14/Compiler/platform/Include/glb.h:278: note: __GLBASIC__::DGStr __GLBASIC__::operator+(const __GLBASIC__::DGStr&, __GLBASIC__::CGStr)
C:/Program Files (x86)/GLBasic_v14/Compiler/platform/Include/glb.h:278: note: __GLBASIC__::DGStr __GLBASIC__::operator+(const __GLBASIC__::DGStr&, const __GLBASIC__::DGStr&)
C:/Program Files (x86)/GLBasic_v14/Compiler/platform/Include/glb.h:278: note: __GLBASIC__::DGStr __GLBASIC__::operator+(const __GLBASIC__::DGStr&, int)
C:/Program Files (x86)/GLBasic_v14/Compiler/platform/Include/glb.h:278: note: __GLBASIC__::DGStr __GLBASIC__::operator+(const __GLBASIC__::DGStr&, int64)
C:/Program Files (x86)/GLBasic_v14/Compiler/platform/Include/glb.h:278: note: __GLBASIC__::DGStr __GLBASIC__::operator+(const __GLBASIC__::DGStr&, float)
C:/Program Files (x86)/GLBasic_v14/Compiler/platform/Include/glb.h:278: note: __GLBASIC__::DGStr __GLBASIC__::operator+(const __GLBASIC__::DGStr&, double)
*** FATAL ERROR - Bitte die Compiler-Ausgabe ins Forum kopieren
_______________________________________
*** Fertig ***
Dauer: 2.0 sek. Zeit: 10:07
Erstellen: 0 erfolgreich.
*** 1 FEHLGESCHLAGEN ***
Irgendeine Idee, wo es da aufschlägt?
LG
W.
Ich hatte jetzt noch kurz Zeit zu graben und es scheint irgendwo in der Änderung von 14.003 zu hacken, nämlich im Debugger in Kombination mit den Types...
Mein Verdacht fällt da auf t.dbg() =D
#ifdef WANT_GLB_DEBUGGER
DGStr out;
out+=DGStr("gui:")+gui+DGStr("\n");
out+=DGStr("mouse:")+mouse+DGStr("\n");
out+=DGStr("init:")+init+DGStr("\n");
out+=DGStr("startupInit:")+startupInit+DGStr("\n");
DEBUG(out+DGStr("\n"));
#endif
}
Bug report liegt doch bereits vor: http://www.glbasic.com/forum/index.php?topic=10429.0
NOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOO... :'(
Ich war zu langsam... :D
Egal, doppelt hält besser!
Und gefixt!
Danke Gernot! :good: