Re: [fpc-pascal] http://wiki.freepascal.org/ web site is totally blank

2019-06-06 Thread DaWorm
There was a thread yesterday about issues with the servers. This may be related. Jeff On Thu, Jun 6, 2019 at 4:58 AM Dennis wrote: > Does it only happen to me? > > Dennis > ___ > fpc-pascal maillist - fpc-pascal@lists.freepascal.org >

Re: [fpc-pascal] unexpected termination with no errors

2019-05-15 Thread DaWorm
Isn't that negative number 0xC005 in hex? If that's the case, it's an Access Violation and not Disk Full. Jeff. On Wed, May 15, 2019 at 11:44 AM James Richters < ja...@productionautomation.net> wrote: > It's a simple single thread console app. I found my problem... years > ago I

Re: [fpc-pascal] FPC code to migrate Outlook PST file to MBOX format?

2019-01-09 Thread DaWorm
Use the tool that gives you the flat view, then create mail filters in Thunderbird to move messages to the appropriate folders, and then apply the filters to the existing messages. It may take a while to build the filters, but you'd want to do that anyway so that new messages go to the right

Re: [fpc-pascal] Order of Precedence: FPC/Delphi vs Java

2018-10-04 Thread DaWorm
On Thu, Oct 4, 2018 at 4:02 AM wrote: > This is one of the most useless collection of floating point myths I > have seen since a long time. > > With rolling a dice you mean, that the comparisons are only > randomly correct or what)? Since the floating-point numbers > are well-defined and exact

Re: [fpc-pascal] Pascal Neopixels

2018-07-29 Thread DaWorm
You should be able to use the library from Pascal directly rather than trying to recreate it from scratch. Jeff On Sun, Jul 29, 2018, 10:20 AM Anthony Walter wrote: > I'm not sure what would be the correct list for this question since it > involves writing Pascal code and not Lazarus, so here

Re: [fpc-pascal] Coercing record fields together

2018-07-09 Thread DaWorm
Just because someone is bound to suggest it, might as well be me. type TRecA = record a: string; b: string; end; type TRecB = record A: TRecA; c: integer; d: integer; end; RecB.A :=

Re: [fpc-pascal] Connecting to a database from a commandline pascal program

2018-02-16 Thread DaWorm
Wouldn't this... MyConnection.Create(Nil); // MyQuery.Create(Nil); ... be more like... MyConnection := TZConnection.Create(); MyQuery := TQuery.Create(); Then at the end you'd need... MyQuery.Free(); MyConnection.Free(); Jeff On Fri, Feb 16, 2018 at 10:25 AM, Terry A. Haimann

Re: [fpc-pascal] Implementing AggPas with PtcGraph

2017-06-16 Thread DaWorm
On Fri, Jun 16, 2017 at 1:49 PM, James Richters < ja...@productionautomation.net> wrote: > > I would like to do something like: > agg^.Font('%windir%\Fonts\ConsolaB.ttf' ,45 ); > > You should be able to use SHGetFolderPath() with CSIDL_WINDOWS. Not sure you can always count on Fonts being a

Re: [fpc-pascal] for loop vs while loop

2017-02-02 Thread DaWorm
On Thu, Feb 2, 2017 at 4:01 AM, Mark Morgan Lloyd < markmll.fpc-pas...@telemetry.co.uk> wrote: > > It's interesting that the real (wallclock) and user times are consistently > in a different sequence. /If/ the user time is to be believed, there's a > very small advantage to counting down even if

Re: [fpc-pascal] How to increase the range ckeck limit?

2015-07-05 Thread DaWorm
What do you mean, your question is not clear ? Since r is set to 256, the [0..r] probably doesn't work, even with the range check turned off. So I assume he's really asking for larger sets. Jeff ___ fpc-pascal maillist -

Re: [fpc-pascal] Warning Local variable seems to be not initialized on dyn array

2015-03-09 Thread DaWorm
I would think this part answers that question: The warning means that no value has been *explicitly* assigned to these variables (which *may indicate a logic error* in the code), not necessarily that they contain an unpredictable value. (emphasis mine) Jeff.

Re: [fpc-pascal] New Get Lazarus Initiative

2015-02-04 Thread DaWorm
Also, please make a ZIP version available for download on Windows. Many corporate firewalls completely block downloading EXE files from non-trusted sites (and getting a site on the trusted list is non-trivial, to say the least). Thanks, Jeff. ___

Re: [fpc-pascal] Can We use CRT and Video Unit in Single Unit In free pascal

2014-06-23 Thread DaWorm
Or you can do the right thing and not use the contents of the video memory as if it were a variable to be used to check if you have or have not done a particular thing, which is what it looks like your original code does. This would require understanding more of what the program you are porting

Re: [fpc-pascal] fp libraries do not like cmem ?

2014-02-14 Thread DaWorm
Or always allocate and free the buffer in the calling program and load the contents into the buffer in the dll. This way you never have to worry about allocating in one place and freeing in the other. Windows API does stuff like this a lot. In the DLL: Procedure GetSomeString(StringPointer:

Re: [fpc-pascal] How to stop a HttpApp via request?

2013-10-06 Thread DaWorm
Thumbs up. ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] Re: StrUtils.RomanToInt oddities

2013-09-24 Thread DaWorm
Just a guess here, but I would think there have now been more posts in this thread than the total number of programs to use this function. Probably by a wide margin. ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org

Re: [fpc-pascal] Re: Fpc Access Violation if AppConfigDir doesn't exist.

2013-02-18 Thread DaWorm
On Mon, Feb 18, 2013 at 8:02 AM, Lukasz Sokol el.es...@gmail.com wrote: Maybe he one and true answer for all of the above would be to have: try vs try try except try finally except except end;

Re: [fpc-pascal] Re: Fpc Access Violation if AppConfigDir doesn't exist.

2013-02-11 Thread DaWorm
Lost in the shuffle, wasn't this originally found in Lazarus? Sounds like a bug report for incorrect handling of INI files when the config directory is missing needs to be filed in their bug tracker. Jeff. ___ fpc-pascal maillist -

Re: [fpc-pascal] Re: Fpc Access Violation if AppConfigDir doesn't exist.

2013-02-11 Thread DaWorm
On Mon, Feb 11, 2013 at 1:48 PM, Giuliano Colla giuliano.co...@fastwebnet.it wrote: On 02/11/2013 04:45 PM, DaWorm wrote: Lost in the shuffle, wasn't this originally found in Lazarus? Sounds like a bug report for incorrect handling of INI files when the config directory is missing needs

Re: [fpc-pascal] How to avoid namespace name clashes after USES ?

2012-08-21 Thread DaWorm
Very tedious, but you could create a wrapper unit and/or class for each library, and expose a prefixed name instead of the original. Jeff, On Aug 21, 2012 3:31 AM, Jonas Maebe jonas.ma...@elis.ugent.be wrote: On 20 Aug 2012, at 18:15, Timothy Madden wrote: This story is inspired from a real

Re: [fpc-pascal] Re: Why is Random(255) some 529x slower compared to Delphi7?

2011-12-08 Thread DaWorm
Why sprinkle ifdefs everywhere? Change all calls to Random with calls to FastRandom, and have one ifdef there that uses Random in Delphi and a fast substitute in FPC. Still readable, still fast, and you would be done by now instead of spending so much time arguing about it. Plus, should Delphi

Re: [fpc-pascal] ARM STM32F Processor

2011-09-24 Thread DaWorm
You can also use one of the serial ports along with the BOOT0, BOOT1 and RESET lines to program. A TTL to RS232 adapter, or FTDI USB chip will also be needed. The protocol is easy, took me about a day to get working from Delphi (using the serial handshake lines as IO to drive RESET and BOOT0).

Re: RE : [fpc-pascal] Timezone information in a dataset datetime field?- updated

2011-07-25 Thread DaWorm
On Mon, Jul 25, 2011 at 11:53 AM, Mark Morgan Lloyd markmll.fpc-pas...@telemetry.co.uk wrote: Link below looks directly relevant: it contains polygon data for each timezone, subject to knowing the current location. http://efele.net/maps/tz/world/ I've confirmed that files are accessible

Re: RE : RE : [fpc-pascal] Installing FPC 2.4.4 for Ubuntu / Mint +otherthoughts

2011-06-15 Thread DaWorm
On Wed, Jun 15, 2011 at 5:08 PM, Ludo Brands ludo.bra...@free.fr wrote: We were talking to make fpc easier to install for the average ubuntu user. This is as clear as mud for the average user I would say. Well, one would hope the average developer would be a bit farther along the learning curve

Re: Re[6]: [fpc-pascal] TIniFile crash/memory loss

2011-04-01 Thread DaWorm
On Fri, Apr 1, 2011 at 6:28 AM, José Mejuto joshy...@gmail.com wrote: An exception in free is an extreme rare condition, but it could happend, and is better that your software stops to work than notify 2 years later that your 2 zillions of INI files were not written at all because the user

Re: Re[6]: [fpc-pascal] TIniFile crash/memory loss

2011-04-01 Thread DaWorm
On Fri, Apr 1, 2011 at 9:09 AM, Bart bartjun...@gmail.com wrote: The test case was an invalid filename.  Is this the primary failure method? This was merely to demonstrate the possibility of the destructor failing. What other things would make the destructor of the TIniFile fail? It seems to

Re: [fpc-pascal] Function to know if WIN is 32 or 64

2011-03-16 Thread DaWorm
On Wed, Mar 16, 2011 at 8:45 AM, Marcos Douglas m...@delfire.net wrote: The program was compiled in 32-bits but I have to know what kind of OS is running because my program needs to install somethings. That's why I needed it too. In my case, my code is always 32 bit, but to install a smart

Re: [fpc-pascal] Function to know if WIN is 32 or 64

2011-03-16 Thread DaWorm
On Wed, Mar 16, 2011 at 11:25 AM, Marcos Douglas m...@delfire.net wrote: I also had to make sure the code was being ran as an administrator. That's nice. Can you share the function? Again, don't remember where I found this, Google or MSDN probably. Only tested in Delphi. function IsAdmin:

Re: [fpc-pascal] Function to know if WIN is 32 or 64

2011-03-15 Thread DaWorm
I've used this in Delphi 32 and it seems to work. Forgot where I pulled the basic info. Probably doesn't do much on native 64 bit. function Is64BitOS: Boolean; type TIsWow64Process = function(Handle:THandle; var IsWow64 : BOOL) : BOOL; stdcall; var hKernel32 : Integer; IsWow64Process :

Re: Re[4]: [fpc-pascal] Text scan in text files - (was: Full text scan - PDF files)

2010-11-02 Thread DaWorm
On Tue, Nov 2, 2010 at 11:45 AM, Marcos Douglas m...@delfire.net wrote: If I found a match, I need to know which page the token was found... That may prove most difficult, since I doubt your pdf to text will preserve that very well. Jeff. ___

Re: [fpc-pascal] TEventLog.FileName location: Change default file location for filename without change unit code.

2010-09-21 Thread DaWorm
On Tue, Sep 21, 2010 at 9:39 AM, Michael Van Canneyt mich...@freepascal.org wrote: begin Result:=ChangeFileExt(Paramstr(0),'.log'); end; Function TEventLog.DefaultFileName : String; On Windows, this can be problematic. Win7 for sure, usually Vista, and any version of

Re: [fpc-pascal] PC/SC

2010-09-01 Thread DaWorm
Project Jedi has translations for Delphi. I don't know how easily they could be used for Linux and the PC/SC Lite used there, but it could be a helpful start. If you don't mind me asking, which Mifare reader supports PC/SC? I use both chipcard and Mifare readers, but hadn't seen a PC/SC Mifare