Search found 950 matches

by Roland Chastain
Oct 05, 2020 16:54
Forum: Projects
Topic: Eschecs FreeBASIC (UCI chess GUI)
Replies: 445
Views: 70328

Re: Eschecs 1.2.1 (UCI chess GUI)

I tried to remove it for both. The application still seems to work. It looks like the problem was with the inkey . But I cannot be absolutely certain, because I experienced that the bug could stay hidden for a long time (several games). Indeed ! If only 'KEY = Inkey' (in 'GetSysEvents&#...
by Roland Chastain
Oct 05, 2020 16:06
Forum: Projects
Topic: Eschecs FreeBASIC (UCI chess GUI)
Replies: 445
Views: 70328

Re: Eschecs 1.2.1 (UCI chess GUI)

Before, it would be interesting to determine if the [MutexLock...MutexUnlock] block is mandatory for only 'engineOutput = ReadEngineOutput' , or for only '.procedure(engineOutput)' , or for the both as now is. I tried to remove it for both. The application still seems to wor...
by Roland Chastain
Oct 05, 2020 15:09
Forum: Projects
Topic: Eschecs FreeBASIC (UCI chess GUI)
Replies: 445
Views: 70328

Re: Eschecs 1.2.1 (UCI chess GUI)

Thank you fxm. I am afraid to shout "victory" too soon, but it seems to work. I uploaded the code so that the volunteers can test: eschecs.zip

I could also try to restore the screenlocking in sGUI, using the same trick?
by Roland Chastain
Oct 05, 2020 13:19
Forum: Projects
Topic: Eschecs FreeBASIC (UCI chess GUI)
Replies: 445
Views: 70328

Re: Eschecs 1.2.1 (UCI chess GUI)

xsleep() is called from the main code loop do : event->xSleep(1) ..... end if : loop until event->EXITEVENT ). Now my precise question is: But is xsleep() also called indirectly from the ProcedureThread() execution ? No, xSleep() is called nowhere else than i...
by Roland Chastain
Oct 05, 2020 10:50
Forum: Projects
Topic: Eschecs FreeBASIC (UCI chess GUI)
Replies: 445
Views: 70328

Re: Eschecs 1.2.1 (UCI chess GUI)

Is 'GetSysEvents()' executed from the other thread 'ProcedureThread()' than from the main thread ? It's only called by sGui itself, in xSleep procedure: ' sgui_eventhandle.bas sub EventHandle.xSleep (eventmode as integer,XButton as integer=1) dim as integer eventoccu...
by Roland Chastain
Oct 05, 2020 10:42
Forum: Projects
Topic: Mosquito (UCI chess engine)
Replies: 22
Views: 3471

Re: Mosquito (UCI chess engine)

Today I manually played against Mosquito, and I won . And that means: This engine urgently needs an improvement!!! ;-) Sorry, I didn't see your message before. Congratulations for your victory. :) A new version is available, not stronger, but compatible with Linux. Download Mosquito (A new version ...
by Roland Chastain
Oct 05, 2020 9:30
Forum: Projects
Topic: Eschecs FreeBASIC (UCI chess GUI)
Replies: 445
Views: 70328

Re: Eschecs 1.2.1 (UCI chess GUI)

I did not find other 'Inkey' in the code (neither 'Screenlock' ), but on the other hand I found at least one 'Sleep(x)' not fixed in 'Sleep(x, 1)' . (I stopped at the first one found) Thank you for your answer. Yes, I see there is a Sleep 10 in wconne...
by Roland Chastain
Oct 05, 2020 3:57
Forum: General
Topic: Project of a multiplatform version of FreeBasic Miner
Replies: 37
Views: 2088

Re: Project of a multiplatform version of FreeBasic Miner

badidea wrote:Can you put your git-version link in the first post? Then it is easier to find.

Good idea. Done.
by Roland Chastain
Oct 05, 2020 3:54
Forum: Projects
Topic: Eschecs FreeBASIC (UCI chess GUI)
Replies: 445
Views: 70328

Re: Eschecs 1.2.1 (UCI chess GUI)

I still have fbsound issues. Thank you for the feedback. I replaced FBSound binaries (in eschecs.zip and also on freebasic-miner repository), with a copy taken in Joshy's package. So far no freezes here. I played (and lost) a few games 32 and 64 bit (with debug). Good new. So, I have to find now ho...
by Roland Chastain
Oct 04, 2020 20:58
Forum: Projects
Topic: Eschecs FreeBASIC (UCI chess GUI)
Replies: 445
Views: 70328

Re: Eschecs 1.2.1 (UCI chess GUI)

A new pieces set is available. Start the application with the following parameter: --squareWidth=48

Image

The pictures come from the Warlord chess program by William H. Rogers.
by Roland Chastain
Oct 04, 2020 15:29
Forum: Projects
Topic: Eschecs FreeBASIC (UCI chess GUI)
Replies: 445
Views: 70328

Re: Eschecs 1.2.1 (UCI chess GUI)

It seems that I found the origin of the problem. I tried to remove this line: ' sgui_systemevents.bas function GetSysEvents(XButton as integer) as integer ' ... KEY=inkey ' <--- Since I did that, I can't make the application crash anymore. Please test the new code: eschecs.zip (Don't pay attention t...
by Roland Chastain
Oct 04, 2020 6:50
Forum: Beginners
Topic: LCase UCase ANSI Characters
Replies: 14
Views: 800

Re: LCase UCase ANSI Characters

robert wrote:but as you can see LCase and UCase did not function as expected.

Hello! You could try this:

Code: Select all

Print LCase(Wstr("ÀÁÂÃÄÅ"))
Print UCase(Wstr("àáâãäå"))
by Roland Chastain
Oct 03, 2020 16:51
Forum: Projects
Topic: Eschecs FreeBASIC (UCI chess GUI)
Replies: 445
Views: 70328

Re: Eschecs 1.2.1 (UCI chess GUI)

fxm wrote:Inside sub EventHandle.xSleep (eventmode as integer,XButton as integer=1), maybe try:
if eventmode>-1 then sleep 1, 1

Ah yes, I had forgotten that one. Correction done. But it doesn't solve the problem...
by Roland Chastain
Oct 03, 2020 15:49
Forum: Projects
Topic: Eschecs FreeBASIC (UCI chess GUI)
Replies: 445
Views: 70328

Re: Eschecs 1.2.1 (UCI chess GUI)

I just took a very quick look at "eschecs.bas" and found that a mutex destruction was missing in the main loop: (341) threadwait(listener->handle) : mutexdestroy(listener->sync) Thank you, correction done. I see in the task manager that the program, even when it is...
by Roland Chastain
Oct 03, 2020 14:58
Forum: Projects
Topic: Eschecs FreeBASIC (UCI chess GUI)
Replies: 445
Views: 70328

Re: Eschecs 1.2.1 (UCI chess GUI)

I see in the task manager that the program, even when it is supposed not to do anything, uses 18% of the processor. I wonder what it does...

Go to advanced search