30.07.2018, 18:59
Here I cannot get an answer from the developer of CA.
I want to create a PathFinder plugin like this using your plugin instead of MapAndreas. I need using CA functions in other thread. How much safely to use Invoke? Tell me how best. I know nothing, this is my first developing
Tell me something about using CA plugin in a other thread. I have created a plugin long ago for calculating a route for bot system and it doesn't work well because of some troubles related to using of CA in another thread through Invoke. I am creating AI in samp, for example the bot police system!
Let it be for now, but crashes occurs:
https://github.com/Fleynaro/PathFind...9/path.cpp#L91
Crash of my plugin:
I want to create a PathFinder plugin like this using your plugin instead of MapAndreas. I need using CA functions in other thread. How much safely to use Invoke? Tell me how best. I know nothing, this is my first developing
Tell me something about using CA plugin in a other thread. I have created a plugin long ago for calculating a route for bot system and it doesn't work well because of some troubles related to using of CA in another thread through Invoke. I am creating AI in samp, for example the bot police system!
Let it be for now, but crashes occurs:
https://github.com/Fleynaro/PathFind...9/path.cpp#L91
Crash of my plugin:
PHP код:
backtrace:
#0 0xf621ae9b in ColAndreasNatives::CA_RayCastLine(tagAMX*, int*) () from plugins/ColAndreas.so
No symbol table info available.
#1 0xf5629eec in Invoke::callNative(PAWN::Native const*, ...) () from plugins/PathFinderCA.so
No symbol table info available.
#2 0xf56244b0 in Invoke::CA_RayCastLine(float, float, float, float, float, float, float*, float*, float*) () from plugins/PathFinderCA.so
No symbol table info available.
#3 0xf562297a in Path::CheckWall(mapPoint*, mapPoint*) () from plugins/PathFinderCA.so
No symbol table info available.
#4 0xf5622d58 in Path::Find() () from plugins/PathFinderCA.so
No symbol table info available.
#5 0xf5628221 in Thread::PathCalculator(void*) () from plugins/PathFinderCA.so
No symbol table info available.
#6 0xf562816c in Thread::RunPathCalculator(void*) () from plugins/PathFinderCA.so
No symbol table info available.
#7 0xf7f9d27a in start_thread () from /lib/i386-linux-gnu/libpthread.so.0
No symbol table info available.
#8 0xf7cdaae6 in clone () from /lib/i386-linux-gnu/libc.so.6
No symbol table info available.