Re: [fpc-pascal] TFPGObjectList error

2018-06-30 Thread Jim Lee
On 06/30/18 21:14, Ryan Joseph wrote: I know of http://docs.getlazarus.org which has some helpful stuff but it’s mainly Lazarus which I personally don’t use. Otherwise it’s just hunting around in https://www.freepascal.org/docs-html/rtl/ for me. There’s no searching feature though. :( FPC b

Re: [fpc-pascal] Daemon using TTimer on Windows

2018-06-30 Thread Martin Schreiber
On Saturday 30 June 2018 22:57:47 Marcos Douglas B. Santos wrote: >If not, which could be a possible > solution? > You could use a MSEgui application, instead of " uses msegui; " write " uses msenogui; " in "program" source file. It will have an event queue and the usual event driven programmin

Re: [fpc-pascal] TFPGObjectList error

2018-06-30 Thread Ryan Joseph
> On Jun 30, 2018, at 10:03 PM, Jim Lee wrote: I know of http://docs.getlazarus.org which has some helpful stuff but it’s mainly Lazarus which I personally don’t use. Otherwise it’s just hunting around in https://www.freepascal.org/docs-html/rtl/ for me. There’s no searching feature though.

Re: [fpc-pascal] TFPGObjectList error

2018-06-30 Thread Jim Lee
On 06/30/18 19:42, Ryan Joseph wrote: Is that part of the RTL and if so what’s the unit name? I had a hard time finding good resources on classes the RTL provides. That has been my experience as well.  Is there a definitive source of documentation for both Free Pascal and Lazarus?  Anyone

Re: [fpc-pascal] TFPGObjectList error

2018-06-30 Thread Michalis Kamburelis
Ryan Joseph wrote: > > > Or you could use Generics.Collections unit with generic TList for > > records. It by default compares records by comparing memory contents. > > Is that part of the RTL and if so what’s the unit name? I had a hard time > finding good resources on classes the RTL provides.

Re: [fpc-pascal] TFPGObjectList error

2018-06-30 Thread Ryan Joseph
> On Jun 30, 2018, at 8:14 PM, Michalis Kamburelis > wrote: > > The solution is to use TFPGList instead of TFPGObjectList. You should > also define an equality operator if TVec3 is a record. See e.g. my > example in > https://castle-engine.io/modern_pascal_introduction.html#_operator_overload

Re: [fpc-pascal] TFPGObjectList error

2018-06-30 Thread Michalis Kamburelis
2018-07-01 4:01 GMT+02:00 Vojtěch Čihák : > this seems to be misleading error message. TFPGObjectList works well for > objects (classes). When I tried to push record to it, I got the same error > message. TVec3 is not class, right? Indeed, it's a misleading message. The message ...identifier

Re: [fpc-pascal] TFPGObjectList error

2018-06-30 Thread Vojtěch Čihák
Hi,   this seems to be misleading error message. TFPGObjectList works well for objects (classes). When I tried to push record to it, I got the same error message. TVec3 is not class, right?   Vojtěch __ Od: Ryan Joseph Komu: FPC-Pasca

[fpc-pascal] TFPGObjectList error

2018-06-30 Thread Ryan Joseph
I’m trying to use TFPGObjectList but I get an error. Is the unit busted? If so is there another generic list class in the RTL? type TVec3List = specialize TFPGObjectList; var list: TVec3List; begin list := TVec3List.Create; list.Add(V3(1,1,1)); list.Free;

Re: [fpc-pascal] Daemon using TTimer on Windows

2018-06-30 Thread R0b0t1
On Sat, Jun 30, 2018 at 3:57 PM, Marcos Douglas B. Santos wrote: > Hi, > > I need to build a daemon app on Windows. It will need a timer to > performe some tasks. This timer could be big among 15 min, 30 min, 2 > hours, etc. > > I thought that I can use TTimer but I've always heard that it's not >

[fpc-pascal] Daemon using TTimer on Windows

2018-06-30 Thread Marcos Douglas B. Santos
Hi, I need to build a daemon app on Windows. It will need a timer to performe some tasks. This timer could be big among 15 min, 30 min, 2 hours, etc. I thought that I can use TTimer but I've always heard that it's not possible because some problems related with "NoGUI" stuff. I've found a thread