Code: Select all
Procedure Refresh(MapGadget.i)
Protected *PBMap.PBMap = PBMaps(Str(MapGadget))
*PBMap\Redraw = #True
; Drawing()
EndProcedure
Code: Select all
Procedure Refresh(MapGadget.i)
Protected *PBMap.PBMap = PBMaps(Str(MapGadget))
*PBMap\Redraw = #True
; Drawing()
EndProcedure
Thank you very much, djes! The 2 panel / 2 maps example works like a charm nowdjes wrote:Last bugs should be corrected. I have included your example in the branch, would you agree to include it in the master ?
https://github.com/djes/PBMap/tree/djes
Code: Select all
DrawVectorImage(ImageID(*timg\nImage), 255 * *PBMap\Layers()\Alpha)
No timer (at least I don't know/find one).djes wrote:So bad... Are you using a timer? Debug can be activated by using verbose mode and compiling in console mode...
Code: Select all
PBMap::SetOption(#Map, "Verbose", "1")
I've adapted my GeoWorldEditor to use the threaded combobox filling only optional. I'm currently testing with this threads disabled. No problems so far.... I will report again after some more 'stress tests'...djes wrote:Could you simply try to not create your thread, to easily see if the bug still occurs ? If yes, your thread is not the cause.
Seems right to me.vwidmer wrote:I am trying to get the cords under the mouse but seems to be coming back a little off should this be right?
Debug Pixel2Lat(CanvasMouseX)
Debug Pixel2Lon(CanvasMouseY)
Thank you Andre !Andre wrote:@djes: Just forgot to say, that my GeoWorldEditor is running like a charm after deactivating the threaded listicon filling. So the PBMap include is now running always fine, even in heavy stress-tests / production mode. Thank you for this!
Code: Select all
[09:48:58] Waiting for executable to start...
[09:48:57] Executable type: Windows - x86 (32bit, Unicode, Thread)
[09:48:58] Executable started.
[09:51:23] [ERROR] Line: 1241
[09:51:23] [ERROR] Invalid memory access. (read error at address 4294967293)
[09:53:48] The debugged executable quit unexpectedly.
[09:57:21] Waiting for executable to start...
[09:57:21] Executable type: Windows - x86 (32bit, Unicode, Thread)
[09:57:21] Executable started.
[09:58:19] [ERROR] Line: 1143
[09:58:19] [ERROR] Invalid memory access. (read error at address 4294967293)
[09:58:45] The debugged executable quit unexpectedly.
Code: Select all
x=7
n=6
Debug Mod(Mod(x / n * 360.0, 360.0) + 360.0, 360.0) - 180
Debug Mod(x / n * 360.0+360.0, 360.0) - 180; <<< : )
Debug Mod((1+x/n)*360,360)-180
Debug ""
y=7
Debug Degree(ATan(SinH(#PI * (1.0 - 2.0 * y / n))))
Debug Degree(ASin(TanH(#PI * (1.0 - 2.0 * y / n))))
Debug Degree(2*ATan(Exp(#PI*(1.0- 2.0 * y/n))) -#PI/2)