Kempelen wrote:Desperado wrote:
Code: Select all
//HERE LOADTYPE IS (SHOULD BE) LOAD_4MEN
loadegbb(mainpath,cachesize,loadtype);
That is how I have it. Maybe it is a problem of mingw which is the compiler I use.
I have copied the engine and bb in an xp I have and it crashs as the same point (in this position: 8/8/8/2p5/8/8/1kP1K3/8 b - -)
No idea what is the problem....
@Fermin
-----------
first check the following checklist:
-correct path
-correct implementation of path (slash issues)
-latest known dlls and data
-Loadlibrary issues
... and some other things
further load the correct dll
Code: Select all
#ifdef _WIN64
#define EGBB_NAME "egbbdll64.dll"
#else
//HERE ALSO "egbbdll.dll" WAS DOING THE JOB
#define EGBB_NAME "egbbdll32.dll"
#endif
@Daniel:
-------------
- egbb loaded correctly (4+5 men)
- egbb probes correctly (4men always ok, 5men has exceptions)
These exceptions look like:
probing position X : ok
probing position Y : ok
probing .... : ok
probing position X : ok
probing position A : ok
probing position X : CRASH ????
Why can position X suddenly crash ?
What can be the matter with the os here ?
while trying to fix this i did the following:
- ignored the return value of my testBitbase function,
which calls the probeEgbb.
Bughunting part1:
fixed input to the probeEgbb function (positionX)
(all params to probeEgbb were const so to say)
everthing worked, no access violations.
Bughunting part2:
- fixed input to the probeEgbb
(all params const, only switched side to move dynamically)
Now access violations were occuring!
this position can be found above in the thread.
(and it was not the only position causing an exception of this kind).
Code: Select all
Bughunting part 1a: ok(no errors)
col = white;
p[0]=6;
p[1]=4;
p[2]=6;
s[0]=17;
s[1]=27;
s[2]=45;
pwk =9;
pbk =30; //all was running fine
Bughunting part 1b: ok(no errors)
col = black;
p[0]=6;
p[1]=4;
p[2]=6;
s[0]=17;
s[1]=27;
s[2]=45;
pwk =9;
pbk =30; //all was running fine
Bughunting part 2: (with access violation)
col = brd->ctm; //color to Move, assert(ctm==black || ctm==white)
p[0]=6;
p[1]=4;
p[2]=6;
s[0]=17;
s[1]=27;
s[2]=45;
pwk =9;
pbk =30; // works n calls, n+1 call is _Access Violation_
Well, at the moment, i cannot test, because i setup my comp last
weekend and dont have the bitbases(and my testproject) at hand at the moment.
(Tommorrow i will reinstall the bitbases and my testproject
to do further tests if someone likes)
My current project doesnt include egbb-handling yet.
Michael