[fpc-pascal] Same code from LCL project throw error in console application

Michael Van Canneyt michael at freepascal.org
Tue Apr 16 22:38:38 CEST 2013



On Tue, 16 Apr 2013, Krzysztof wrote:

> Hi,
> I have strange issue. Simple mpg123 player which work fine on LCL project, on console application throw floating error in line "mh_e := mpg123_read(mh,
> @outbuf[0], buffer_size, done);"
> 
> Here you can download demo:
> http://ubuntuone.com/34XmBk7Lr2yCliPPTxcYI1
> 
> You find two projects in zip file. LCL and console.
> 
> Before you run project:
> 1. Copy shared libs from libs folder for your OS (I attached for linux only) into project folder
> 2. Copy "Michita - Aurapporo.MP3" into your project folder
> 
> When you run console application it should play music and crash at 10 second. Please ignore code style etc. I just copied and modified source from my original
> project

It seems to work fine here.
It stops after 10 seconds, but no errors are reported.

Michael.



More information about the fpc-pascal mailing list