Coder Social home page Coder Social logo

Compilation fails in DEBUG mode about uos HOT 9 CLOSED

rchastain avatar rchastain commented on July 23, 2024
Compilation fails in DEBUG mode

from uos.

Comments (9)

fredvs avatar fredvs commented on July 23, 2024

Hello Roland.

Ooops indeed, will fix it tonight, thanks to note it.

But are you shure that you use last uos source?

In last source there is this:

procedure Tuos_Player.ReadFile(x : integer);
{$IF DEFINED(neaac) or DEFINED(uos_debug)} // see "uos_debug" in place of "debug"
var
{$endif}
{$IF DEFINED(neaac)}
outBytes: longword;
{$endif}
{$IF DEFINED(uos_debug) and DEFINED(unix)} // see "uos_debug" in place of "debug"
i : integer;
st : string;
{$endif}

Fre;D

from uos.

fredvs avatar fredvs commented on July 23, 2024

Re-hello Roland.

Should be fixed in last commit af34668.

Many thanks to note it.

Fre;D

from uos.

rchastain avatar rchastain commented on July 23, 2024

Hello Fred! No, indeed, I wasn't using the latest code. I will take a new copy.

Glad to help (a little).

Regards.

Roland

from uos.

fredvs avatar fredvs commented on July 23, 2024

Hello Roland.

Note that debugging audio application is not easy.
This because it takes time to the debugger to analyze the code and so break the latency of the sound card.

You will get a weird sound while debugging, maybe the audio driver will stop to work good.

from uos.

rchastain avatar rchastain commented on July 23, 2024

Yes I know. I wanted to compile in DEBUG mode to debug Eschecs under Windows. It doesn't seem to be possible to build the application in DEBUG mode using the libraries built in RELEASE mode.
Eschecs compiled in DEBUG mode doesn't work. It crashes as soon as it starts. I believe it comes from fpGUI.

from uos.

fredvs avatar fredvs commented on July 23, 2024

Hello Roland.

If you use last uos, the debug mode is enabled only with define uos_debug.
If you use only define debug it will not affect uos.

So yes, if compiled in DEBUG mode without define uos_debug and if there are problems, it should not come from uos.

But if compiled with define uos_debug it is possible that it crash when playing a song.

from uos.

fredvs avatar fredvs commented on July 23, 2024

Note too that the sound server (particularly in Windows) dont like gdb.
So if you want to debug Eshcecs with gdb, better to disable sound in Eschecs.

from uos.

rchastain avatar rchastain commented on July 23, 2024

OK Fred. Thank you for the information.

I think we can close the issue.

from uos.

fredvs avatar fredvs commented on July 23, 2024

OK, I close.

from uos.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.