Hi Kev,
Is it correct the drawing function in wb3d have a memory leak?
I'm talking about WB3D_CreateWB3DRect/Line/Circle/Plot(), or am misunderstanding how to use them? I understand you typically use them on a PAINT_EVENT; and they don't return any 'gadget handles' you typically would have to purge after use.
Run the following example and check blitzcc.exe's memory consumption in the TaskManager, which simply keeps increasing..
Also after a minute or so it slows down when weird graphic flashes start appearing and the runtime window becomes unresponsive..
It would be a tremendous shame if we couldn't use these functions :((
Thanks,
Danny.
Is it correct the drawing function in wb3d have a memory leak?
I'm talking about WB3D_CreateWB3DRect/Line/Circle/Plot(), or am misunderstanding how to use them? I understand you typically use them on a PAINT_EVENT; and they don't return any 'gadget handles' you typically would have to purge after use.
Run the following example and check blitzcc.exe's memory consumption in the TaskManager, which simply keeps increasing..
Also after a minute or so it slows down when weird graphic flashes start appearing and the runtime window becomes unresponsive..
Include "WB3DStyles.bb" Graphics3D 640,480,16,2 Global RuntimeWindow_hWnd = WB3D_InitializeGUI(SystemProperty("AppHwnd"),10,10,500,500) example_window = WB3D_CreateWindow("test",200,100,448,310,0,0) QUIT = 0 While Not QUIT = 1 Cls Text 10,10,"Queue Size: "+WB3D_QueueSize() Flip ;test! Check memory consumption in TaskManager! WB3D_CreateWB3DRect( example_window,150,50,40,40,0,0,255,0,0,0 ) WB3D_CreateWB3DLine example_window,50,50,100,100,255,0,0 WB3D_CreateWB3DCircle example_window,200,200,70,255,0,0,0,0,0 event = WB3D_WaitEvent() Select event Case WB3D_EVENT_WINDOW_CLOSE quit = 1 End Select Wend WB3D_EndGUI() EndGraphics End
It would be a tremendous shame if we couldn't use these functions :((
Thanks,
Danny.