Search found 950 matches

by Roland Chastain
Oct 03, 2020 14:38
Forum: Projects
Topic: Eschecs FreeBASIC (UCI chess GUI)
Replies: 445
Views: 70328

Re: Eschecs 1.2.1 (UCI chess GUI)

Do not conclude too quickly, there may be several issues that could lead to the crash. Try to continue debugging with the version without screen locking and with sleep x, 1 . Thank you for the advice. I did like you suggested. I still haven't found the cause of the problem. I made important modific...
by Roland Chastain
Oct 02, 2020 6:01
Forum: Projects
Topic: Eschecs FreeBASIC (UCI chess GUI)
Replies: 445
Views: 70328

Re: Eschecs 1.2.1 (UCI chess GUI)

Could the problem come from here?

Code: Select all

' sgui_systemevents.bas
function GetSysEvents(XButton as integer) as integer 
  ' ...
  KEY=inkey
 
  ScreenEventExists=1
  do
    if (ScreenEvent(@SEvent)) then
by Roland Chastain
Oct 02, 2020 4:50
Forum: Projects
Topic: Eschecs FreeBASIC (UCI chess GUI)
Replies: 445
Views: 70328

Re: Eschecs 1.2.1 (UCI chess GUI)

Otherwise another classic trap (I saw you are using [ScreenLock ... ScreenUnlock] and sGUI which maybe uses screen locking?) All input keywords (like for keyboard, mouse) cannot be safely run when the screen is locked. Indeed sGUI uses screen locking. But it seems that the problem doesn't come from...
by Roland Chastain
Oct 01, 2020 17:39
Forum: Projects
Topic: Eschecs FreeBASIC (UCI chess GUI)
Replies: 445
Views: 70328

Re: Eschecs 1.2.1 (UCI chess GUI)

Thank you fxm. I will study all that.

Today I tested compilation under Windows. I fixed small things relative to line endings. If you or someone would want to take a look, the code is still at the same place: eschecs.zip
by Roland Chastain
Oct 01, 2020 6:38
Forum: Projects
Topic: Eschecs FreeBASIC (UCI chess GUI)
Replies: 445
Views: 70328

Re: Eschecs 1.2.1 (UCI chess GUI)

I tried to put Sleep x, 1 everywhere, even in sGUI, where there is a Sleep 1 . It doesn't seem to solve the problem. The weird thing is that the program begins to work correctly. It would be more easy to understand if it wouldn't work at all. Maybe I will rewrite a simpler version of the program, wi...
by Roland Chastain
Oct 01, 2020 4:31
Forum: Projects
Topic: Eschecs FreeBASIC (UCI chess GUI)
Replies: 445
Views: 70328

Re: Eschecs 1.2.1 (UCI chess GUI)

It is difficult for me to understand what happens where, but what I see, in what I think is that main loop, is: /' if not graph.animationDone then chessboard.Animate continue do end if '/ Should that not be enabled? While doing animation don't do anything else? It's some code that I wrote when I tr...
by Roland Chastain
Sep 30, 2020 20:22
Forum: Projects
Topic: Eschecs FreeBASIC (UCI chess GUI)
Replies: 445
Views: 70328

Re: Eschecs 1.2.1 (UCI chess GUI)

Thank you fxm, I will try that.
by Roland Chastain
Sep 30, 2020 19:04
Forum: Projects
Topic: Eschecs FreeBASIC (UCI chess GUI)
Replies: 445
Views: 70328

Re: Eschecs 1.2.1 (UCI chess GUI)

In fact, the problem is certainly not in the animation. If I disable animation, the problems still happens. Maybe is the following code bad? sub ProcedureThread(byval param as any ptr) DEBUG_LOG("") dim engineOutput as string with *cast(TListener ptr, param) do sleep(20) if .pause then con...
by Roland Chastain
Sep 30, 2020 18:25
Forum: Projects
Topic: Eschecs FreeBASIC (UCI chess GUI)
Replies: 445
Views: 70328

Re: Eschecs 1.2.1 (UCI chess GUI)

Is it possible that a AI 'solver' runs in parallel with the animation? And that not the animation is the problem but the AI? Yes, I was thinking of that. The dialog with the engine is made in a separate thread. Maybe there is something wrong with the thread. Maybe I did something wrong in the threa...
by Roland Chastain
Sep 30, 2020 18:02
Forum: Projects
Topic: Eschecs FreeBASIC (UCI chess GUI)
Replies: 445
Views: 70328

Re: Eschecs 1.2.1 (UCI chess GUI)

I added more debug code. Here is a screenshot of the application after it has frozen, with the console behind. Screenshot So the program seems to crash somewhere here: ' graphics.bi sub TMovingChessImage.MoveTo(byval aX as integer, byval aY as integer) '... do sx += dx sy -= dy screenlock img.Redraw...
by Roland Chastain
Sep 30, 2020 14:01
Forum: Projects
Topic: Eschecs FreeBASIC (UCI chess GUI)
Replies: 445
Views: 70328

Re: Eschecs 1.2.1 (UCI chess GUI)

I made some cleaning and some little improvements in the code. Please use the new version (same link).
by Roland Chastain
Sep 29, 2020 20:33
Forum: Projects
Topic: Eschecs FreeBASIC (UCI chess GUI)
Replies: 445
Views: 70328

Re: Eschecs 1.2.1 (UCI chess GUI)

64-bit seems fine so far... Nice screenshot. :) Yes, same experience here: I used sGUI 2018, compiled to 64-bits and could play several games without trouble. I do get a lot of "eschecs.bas DISPLAYARBITRATORMESSAGE (494)". Not sure if this is normal. Yes, it's just some code that I added ...
by Roland Chastain
Sep 29, 2020 19:56
Forum: Projects
Topic: Eschecs FreeBASIC (UCI chess GUI)
Replies: 445
Views: 70328

Re: Eschecs 1.2.1 (UCI chess GUI)

I am having trouble with fbsound, so I cannot run the code at the moment, but try: Thank you for your help. I will try the modifications that you suggest. What is the trouble with fbsound? As a quick solution, you could remove the sound code: it's just four or five lines to remove (there is only on...
by Roland Chastain
Sep 29, 2020 17:14
Forum: General
Topic: Execute function stored as string literal
Replies: 15
Views: 800

Re: Execute function stored as string literal

Julcar wrote:Well, if you have a webhosting account, yo could upload ./index to your public_html/cgi-bin folder and then execute it from any web browser.


Very interesting. Thank you for sharing.
by Roland Chastain
Sep 29, 2020 14:37
Forum: Projects
Topic: Eschecs FreeBASIC (UCI chess GUI)
Replies: 445
Views: 70328

Eschecs 1.2.2

In fact it doesn't work very well. Sometimes the application freezes, and I have to kill it in the task manager...

Go to advanced search