Re: [Lazarus] Division by zero. with fpc r30855

2015-05-22 Thread Mattias Gaertner
On Thu, 21 May 2015 17:44:53 +0300
FreeMan freema...@delphiturkiye.com wrote:

 for not fill pain, not pay  hate puzzle.
 in terminal
 gdb lazarus
 run
 lazarus IDE started, run or build project, if get error, you can see 
 which file is raised exception

Thanks. Added.

What file raises the error?

Mattias

--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] programming tablets

2015-05-22 Thread Michael Van Canneyt



On Fri, 22 May 2015, duilio foschi wrote:


nowadays tablets come cheap and with a lot of beautiful interactive
objects/features:

touchscreen
bluetooth
memory card
gps
wifi
gsm
usb
etc

These objects and features make a tablet the dream of a programmer.

One can think of 1000 possible applications that will control step
motors, open hotel doors, etc

How hard it is to program a tablet ?

Are there tablet as easy to program using pascal as a controller board ?


You can easily program tablets with pascal, there are several ways to go about 
it.
The main problem is that you need to start over again for each tablet, as there is 
no unified API for them.


Michael.

--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


[Lazarus] Windows CE

2015-05-22 Thread Koenraad Lelong

Hi,

I could be able to purchase a number of second hand intelligent barcode 
scanners. I have project in mind where I could use such devices.
The scanners run Windows CE 5. Is it possible and advisable to develop 
for these devices using Lazarus ?
I know Lazarus has support for Windows CE, but at the moment I don't 
find which versions are supported.


Thanks,

Koenraad.

--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] Windows CE

2015-05-22 Thread A. Fortuny

Le 22/05/2015 08:59, Koenraad Lelong a écrit :

Hi,

I could be able to purchase a number of second hand intelligent 
barcode scanners. I have project in mind where I could use such devices.
The scanners run Windows CE 5. Is it possible and advisable to develop 
for these devices using Lazarus ?
I know Lazarus has support for Windows CE, but at the moment I don't 
find which versions are supported.

Hi Koenraad.

No problem at all. I've been busy until last year with Lazarus and LCL 
on a Vista  workstation, 32bit compiler, cross compiler WinCE. Even Indy 
10 compiled (somes little changes though)  worked fine.
Hardware was hand held computers from Symbol technologies wich became 
Motorola some time ago.

HW
MC900 range (Pocket PC)
PPT 8800 series (WinCE)
All hw equipment was accessible by the means of some specialised DLL's.

Antonio.


Thanks,

Koenraad.

--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus




---
L'absence de virus dans ce courrier électronique a été vérifiée par le logiciel 
antivirus Avast.
http://www.avast.com


--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


[Lazarus] programming tablets

2015-05-22 Thread duilio foschi
nowadays tablets come cheap and with a lot of beautiful interactive
objects/features:

touchscreen
bluetooth
memory card
gps
wifi
gsm
usb
etc

These objects and features make a tablet the dream of a programmer.

One can think of 1000 possible applications that will control step
motors, open hotel doors, etc

How hard it is to program a tablet ?

Are there tablet as easy to program using pascal as a controller board ?

Thank you
Duilio

--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] Windows CE

2015-05-22 Thread Graeme Geldenhuys
On 2015-05-22 07:59, Koenraad Lelong wrote:
 I know Lazarus has support for Windows CE, but at the moment I don't 
 find which versions are supported.

I use fpGUI Toolkit (not via LCL) on WinCE devices. My main device is a
Garmin iQue M5, which runs Microsoft Windows Mobile 2003 SE. As far as I
know others have used fpGUI on Windows CE 5.0 too, all using FPC 2.6.4

Regards,
  - Graeme -

-- 
fpGUI Toolkit - a cross-platform GUI toolkit using Free Pascal
http://fpgui.sourceforge.net/

--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] Windows CE

2015-05-22 Thread Paul Breneman

On 05/22/2015 08:56 AM, Graeme Geldenhuys wrote:

On 2015-05-22 12:38, Paul Breneman wrote:

Graeme, I hope to get those files updated with the latest fpGUI soon!


In the 'fixes_1.4' branch is the latest stable code, and also contains
fixes (noted after the v1.4 release) that make it WinCE compatible again.


Thanks Graeme.  I added a note to the web page:
  http://www.turbocontrol.com/easyfpgui.htm


--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] Division by zero. with fpc r30855

2015-05-22 Thread Mattias Gaertner
On Fri, 22 May 2015 11:39:35 +0300
FreeMan freema...@delphiturkiye.com wrote:

 On 22.05.2015 10:14, Mattias Gaertner wrote:
  Thanks. Added.
 
  What file raises the error?
 
  Mattias
 dcpcrypt packages has $(PkgOutDir) in other units files (-FU)

Do you mean (-Fu)?


 and I wrote component, it has about.pas, in project has same name unit too. 

Your backtrace shows
../packager/interpkgconflictfiles.pas:182
which is about a ppu file, not a .pas file.

Can you update your svn and see what error message you get now?

 and Ported components has search path same unit name too.
 late you know, in messages window, some time I saw dublicate file 
 xxx.lfm file. compiler copy lfm files to o and ppu files folder, need 
 filter or check path then add to warning.

The IDE should warn if an .lfm file is in two packages (or project and a
package).

Mattias

--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] Division by zero. with fpc r30855

2015-05-22 Thread Mattias Gaertner
On Fri, 22 May 2015 10:54:47 +0100
Lukasz Sokol el.es...@gmail.com wrote:

[...]
  Thanks. Added.
 
 Why not have the RaiseException('') to contain that message instead of 
 adding a DebugLn ? (In each covered case, actually) ?

Actually I did that. I should have written Added with modifications.

Mattias

--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] programming tablets

2015-05-22 Thread Lukasz Sokol
On 22/05/15 09:36, Michael Van Canneyt wrote:
 
 
 On Fri, 22 May 2015, duilio foschi wrote:
 
 nowadays tablets come cheap and with a lot of beautiful interactive
 objects/features:

 touchscreen
 bluetooth
 memory card
 gps
 wifi
 gsm
 usb
 etc

 These objects and features make a tablet the dream of a programmer.

 One can think of 1000 possible applications that will control step
 motors, open hotel doors, etc

 How hard it is to program a tablet ?

 Are there tablet as easy to program using pascal as a controller board ?
 
 You can easily program tablets with pascal, there are several ways to go 
 about it.
 The main problem is that you need to start over again for each tablet, as 
 there is no unified API for them.
 
 Michael.
 

I would point to 
http://wiki.lazarus.freepascal.org/Android_Programming

not tried, and probably not trivial to get e.g. Bluetooth going,
but, I so hate Android Studio, with passion ;) I'm about to get over my
'use Stable luke' deep fear ;)

el es



--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] Division by zero. with fpc r30855

2015-05-22 Thread FreeMan

On 22.05.2015 10:14, Mattias Gaertner wrote:

Thanks. Added.

What file raises the error?

Mattias
dcpcrypt packages has $(PkgOutDir) in other units files (-FU) and I 
wrote component, it has about.pas, in project has same name unit too. 
and Ported components has search path same unit name too.
late you know, in messages window, some time I saw dublicate file 
xxx.lfm file. compiler copy lfm files to o and ppu files folder, need 
filter or check path then add to warning.



--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] programming tablets

2015-05-22 Thread Paul Breneman

On 05/22/2015 02:52 AM, duilio foschi wrote:

nowadays tablets come cheap and with a lot of beautiful interactive
objects/features:

touchscreen
bluetooth
memory card
gps
wifi
gsm
usb
etc

These objects and features make a tablet the dream of a programmer.

One can think of 1000 possible applications that will control step
motors, open hotel doors, etc

How hard it is to program a tablet ?

Are there tablet as easy to program using pascal as a controller board ?

Thank you
Duilio


There are *very* easy ways depending on what you want to do, especially 
if you don't need a GUI program.  See these links:


http://turbocontrol.com/gnuroot.htm

http://forum.lazarus.freepascal.org/index.php/topic,23927.0.html


--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] Division by zero. with fpc r30855

2015-05-22 Thread Mattias Gaertner
On Fri, 22 May 2015 12:39:11 +0200
Mattias Gaertner nc-gaert...@netcologne.de wrote:

 On Fri, 22 May 2015 10:54:47 +0100
 Lukasz Sokol el.es...@gmail.com wrote:
 
 [...]
   Thanks. Added.
  
  Why not have the RaiseException('') to contain that message instead of 
  adding a DebugLn ? (In each covered case, actually) ?
 
 Actually I did that. I should have written Added with modifications.

P.S.: the raiseexception is only a consistency check. If the code is
bug free it is never called.

Mattias

--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] Windows CE

2015-05-22 Thread Paul Breneman
Koenraad, there is an easy way to try older versions of Free Pascal and 
fpGUI on WinCE at the bottom of this page:

  http://www.turbocontrol.com/easyfpgui.htm

Graeme, I hope to get those files updated with the latest fpGUI soon!


On 05/22/2015 02:06 AM, Graeme Geldenhuys wrote:

On 2015-05-22 07:59, Koenraad Lelong wrote:

I know Lazarus has support for Windows CE, but at the moment I don't
find which versions are supported.


I use fpGUI Toolkit (not via LCL) on WinCE devices. My main device is a
Garmin iQue M5, which runs Microsoft Windows Mobile 2003 SE. As far as I
know others have used fpGUI on Windows CE 5.0 too, all using FPC 2.6.4

Regards,
   - Graeme -




--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] Division by zero. with fpc r30855

2015-05-22 Thread Lukasz Sokol
On 22/05/15 08:14, Mattias Gaertner wrote:
 On Thu, 21 May 2015 17:44:53 +0300
 FreeMan freema...@delphiturkiye.com wrote:
 
 for not fill pain, not pay  hate puzzle.
 in terminal
 gdb lazarus
 run
 lazarus IDE started, run or build project, if get error, you can see 
 which file is raised exception
 
 Thanks. Added.
 
 What file raises the error?
 
 Mattias
 

Why not have the RaiseException('') to contain that message instead of 
adding a DebugLn ? (In each covered case, actually) ?


el es


--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] Division by zero. with fpc r30855

2015-05-22 Thread FreeMan



On 22.05.2015 13:57, Mattias Gaertner wrote:

dcpcrypt packages has $(PkgOutDir) in other units files (-FU)

Do you mean (-Fu)?

Yes, (-Fu) wrong typo, sorry



and I wrote component, it has about.pas, in project has same name unit too.

Your backtrace shows
../packager/interpkgconflictfiles.pas:182
which is about a ppu file, not a .pas file.

Can you update your svn and see what error message you get now?

I redo error, and I get this error lines in r49131
UGS_About.ppu same name in my wrote component and in project, I renamed 
in component so problem fixed for me
ERROR in IDE: bug: src is compiled file: 
SrcFile.Filename=/opt/proje_laz/projeler/Dental/lib/x86_64-darwin-qt/UGS_About.ppu

Creating gdb catchable error:
[New Thread 0x1d17 of process 4733]

Program received signal SIGFPE, Arithmetic exception.
0x000100696c51 in RAISEEXCEPTION (
MSG=0x11cd73f58 'bug: src is compiled file: 
SrcFile.Filename=/opt/proje_laz/projeler/Dental/lib/x86_64-darwin-qt/UGS_About.ppu') 
at ideprocs.pp:2278

2278  if (length(Msg) div (length(Msg) div 1))=0 then ;
(gdb) bt
#0  0x000100696c51 in RAISEEXCEPTION (
MSG=0x11cd73f58 'bug: src is compiled file: 
SrcFile.Filename=/opt/proje_laz/projeler/Dental/lib/x86_64-darwin-qt/UGS_About.ppu') 
at ideprocs.pp:2278
#1  0x000100b51dbb in ADD (this=0x11d731ea0, SRCFILE=0x11dd10c80, 
PPUFILE=0x0) at ../packager/interpkgconflictfiles.pas:182
#2  0x000100b53a35 in CHECKDUPLICATESRCFILES 
(parentfp=0x7fff5fbfdb10) at ../packager/interpkgconflictfiles.pas:993
#3  0x000100b537a4 in CHECKINTERPKGFILES (IDEOBJECT=0x10fb57310, 
PKGLIST=0x11793c680, FILESCHANGED=false)

at ../packager/interpkgconflictfiles.pas:1064




and Ported components has search path same unit name too.
late you know, in messages window, some time I saw dublicate file
xxx.lfm file. compiler copy lfm files to o and ppu files folder, need
filter or check path then add to warning.

The IDE should warn if an .lfm file is in two packages (or project and a
package).

Mattias
I have one unit1.lfm, but after compile project, compiler copied it to 
ppu file(s)'s folder. so 2 lfm files been in path, I'm talk about this.


--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] programming tablets

2015-05-22 Thread Paul Breneman

On 05/22/2015 06:49 AM, Paul Breneman wrote:

On 05/22/2015 02:52 AM, duilio foschi wrote:

nowadays tablets come cheap and with a lot of beautiful interactive
objects/features:

touchscreen
bluetooth
memory card
gps
wifi
gsm
usb
etc

These objects and features make a tablet the dream of a programmer.

One can think of 1000 possible applications that will control step
motors, open hotel doors, etc

How hard it is to program a tablet ?

Are there tablet as easy to program using pascal as a controller board ?

Thank you
Duilio


There are *very* easy ways depending on what you want to do, especially
if you don't need a GUI program.  See these links:

http://turbocontrol.com/gnuroot.htm

http://forum.lazarus.freepascal.org/index.php/topic,23927.0.html


My goal in the next month is to port www.ctrlterm.com to both console 
and FreeVision (for gnuroot).  Then communication testing should be easy 
and fun!



--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] Windows CE

2015-05-22 Thread Graeme Geldenhuys
On 2015-05-22 12:38, Paul Breneman wrote:
 Graeme, I hope to get those files updated with the latest fpGUI soon!

In the 'fixes_1.4' branch is the latest stable code, and also contains
fixes (noted after the v1.4 release) that make it WinCE compatible again.

Regards,
  - Graeme -

-- 
fpGUI Toolkit - a cross-platform GUI toolkit using Free Pascal
http://fpgui.sourceforge.net/

--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


[Lazarus] DLL unicode value

2015-05-22 Thread aradeonas
Hi,

I want to get unicode value from an mp3 file and I used MediaInfo
library for this and its unicode support and I used unicode methods.
Code is simple :

 MediaInfoDLL_Load('MediaInfo.dll'); HND := MediaInfo_New();
 MediaInfo_Open(HND, 'test.mp3'); ListBox.Items.Add(MediaInfo_Get(HND,
 Stream_General, 0, 'Title', Info_Text, Info_Name)); //MediaInfo_Get:
 function (Handle: Cardinal; StreamKind: TMIStreamKind; StreamNumber:
 Integer; Parameter: PWideChar; KindOfInfo: TMIInfo; KindOfSearch:
 TMIInfo): PWideChar cdecl stdcall;

It work if Title value is ansi but if it is unicode it returns
??? ! But if I debug andset value to an string it's deug it shows
me correct value.
 s:=MediaInfo_Get(HND, Stream_General, 0, 'Title', Info_Text,
   Info_Name);//in debug s hint shows correct value but ListBox add ???
   ListBox.Items.Add(s);

Regards, Ara


-- 
http://www.fastmail.com - Access your email from home and the web

--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] DLL unicode value

2015-05-22 Thread aradeonas
Thanks but it didnt work.It just now show ? instead of  but still
debug hint of us is correct.

Ara



-- 
http://www.fastmail.com - Same, same, but different...

--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] DLL unicode value

2015-05-22 Thread Balazs Szekely
Can you please attach a small project(MediaInfo.dll and test.mp3 included) so I 
can run a few tests?

 

 From: aradeonas aradeo...@operamail.com
 To: lazarus@lists.lazarus.freepascal.org 
 Sent: Friday, May 22, 2015 7:24 PM
 Subject: Re: [Lazarus] DLL unicode value
   
 Thanks but it didnt work.It just now show ? instead of  but still debug 
hint of us is correct.


 Ara
  -- 
http://www.fastmail.com - Same, same, but different...

--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] DLL unicode value

2015-05-22 Thread Balazs Szekely
Hi Ara,
Try this:uses lazutf8;var  us: unicodestring;//alternatively you can use 
widestring
begin   //...   us := MediaInfo_Get(HND, Stream_General, 0, 'Title', Info_Text, 
Info_Name);   ListBox.Items.Add(UTF16ToUTF8(us);
end;
  From: aradeonas aradeo...@operamail.com
 To: lazarus@lists.lazarus.freepascal.org 
 Sent: Friday, May 22, 2015 6:34 PM
 Subject: [Lazarus] DLL unicode value
   
Hi,
 I want to get unicode value from an mp3 file and I used MediaInfo library for 
this and its unicode support and I used unicode methods.
Code is simple :
 
MediaInfoDLL_Load('MediaInfo.dll');
HND := MediaInfo_New(); 
MediaInfo_Open(HND, 'test.mp3');  
ListBox.Items.Add(MediaInfo_Get(HND, Stream_General, 0, 'Title', Info_Text, 
Info_Name));
//MediaInfo_Get:    function  (Handle: Cardinal; StreamKind: TMIStreamKind; 
StreamNumber: Integer; Parameter: PWideChar; KindOfInfo: TMIInfo; KindOfSearch: 
TMIInfo): PWideChar cdecl stdcall;

 It work if Title value is ansi but if it is unicode it returns ???  !
But if I debug andset value to an string it's deug it shows me correct value.

s:=MediaInfo_Get(HND, Stream_General, 0, 'Title', Info_Text, Info_Name);//in 
debug s hint shows correct value but ListBox add ???
ListBox.Items.Add(s);

 Regards,
Ara
 -- 
http://www.fastmail.com - Access your email from home and the web

--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


  --
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] programming tablets

2015-05-22 Thread Michael Schnell

On 05/22/2015 12:00 PM, Lukasz Sokol wrote:
I would point to 
http://wiki.lazarus.freepascal.org/Android_Programming not tried,


There are also Apple and Windows Tablets.

As the goal of fpc and Lazarus is write once compile everywhere, and 
(other than Delhi) as well fpc and the LCL does a great job on that 
behalf, unifying CPU architectures and OS / GUI APIs for the user, 
enhancing the LCL by objects that in a unified way take care of the said 
features would make a lot of sense.


-Michael

--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] DLL unicode value

2015-05-22 Thread aradeonas
I was preparing test files for you but I found a missed typing in my
code else where that cause this problem ;)
Thank you very much.

Balazs do you have expediencies with MediaInfo?

Regards,
Ara


-- 
http://www.fastmail.com - Send your email first class


--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] DLL unicode value

2015-05-22 Thread Balazs Szekely
I'm glad it's working now. No, I don't have experience with MediaInfo, but I 
seen this Windows(UTF16) --Lazarus(UTF8) conversion problem so many times that 
I thought I put my two cents in.
regards,Balazs
 
  From: aradeonas aradeo...@operamail.com
 To: lazarus@lists.lazarus.freepascal.org 
 Sent: Friday, May 22, 2015 8:03 PM
 Subject: Re: [Lazarus] DLL unicode value
   
I was preparing test files for you but I found a missed typing in my
code else where that cause this problem ;)
Thank you very much.

Balazs do you have expediencies with MediaInfo?

Regards,
Ara


-- 
http://www.fastmail.com - Send your email first class




--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


   --
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus