if (Session.Variables['UserID']='') then
Response.SendRedirect('Yourloginurl');
Redirect the request back to its referer (I could get the referer from
ARequest.Referer)
Do something like this:
if LoginSuccesfull then
begin
Session.Variables['UserID
> On 04/13/2014 09:02 AM, Michael Van Canneyt wrote:
>>
>
>>
>> You are right. A logic error. ReallocMem is the more tricky one.
>> Revised.
>
> In case of a block move, the memory (OP) is already freed when you
> clear/scramble it. I'm afraid you can
sily get useful info from
an ISO SQL 92+ compliant database..
Anybody against this? Michael? Joost?
Not against.
Has anybody used this functionality in sqldb at all?
No. For a simple reason:
I implemented all this information in fpdatadict;
I think it belongs more there, and definitely
to the information_schema standard seems like a good idea -
especially because it will make it easier to easily get useful info from
an ISO SQL 92+ compliant database..
Anybody against this? Michael? Joost?
Not against.
Has anybody used this functionality in sqldb at all?
No. For a simple r
int if I hear that word ;) )
But adding some aliases and add new features such as octet_length should
not be a problem (NUMERIC_SCALE exists in precision).
Michael.
___
fpc-pascal maillist - fpc-pascal@lists.freepascal.org
http://lists.freepascal.or
nes;
Maybe it will gain wider acceptance, and the same then for the lazarus data
database desktop. I use it daily, but then, I use firebird...
Michael.
___
fpc-pascal maillist - fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal
confusing, but I blame Borland employees for that ;-)
Like I said: adding some aliases should take care of this.
Michael.
___
fpc-pascal maillist - fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal
ionary is the schema ?
Unless I misunderstand the meaning of schema :-)
Michael.
___
fpc-pascal maillist - fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal
from within a program, I was not able to find any
information.
Is this possible? If yes, how should I proceed?
It is currently not possible.
FPC always reads from and writes to files.
Michael.
___
fpc-pascal maillist - fpc-pascal@
and where to find
it? Perhaps something to do with TSQLConnection.LogEvents?
That's the one.
Michael.
___
fpc-pascal maillist - fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal
cript location? Is there an alternative way?
The solution can be found on
http://www.freepascal.org/docs-html/prog/progsu38.html
Const
ScriptName = {$INCLUDE FILE};
Michael.
___
fpc-pascal maillist - fpc-pascal@lists.freepascal.org
n the name of the temporary script file.
Michael.
___
fpc-pascal maillist - fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal
bably running into http://bugs.freepascal.org/view.php?id=12974
Wasn't Sergei working on SEH under windows ?
Michael.
___
fpc-pascal maillist - fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal
On Thu, 31 May 2012, Mattias Gaertner wrote:
Hi,
Is there a function to blur an entire fpimage or a rectangular
area?
Not to my knowledge.
Michael.
___
fpc-pascal maillist - fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman
7;s hardly necessary to create a wrapper.
Michael.
___
fpc-pascal maillist - fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal
a way to make at some point of my code execution, that Bar will be
a method of TTest ?
Or maybe for a specific instance of TTest ?
As far as I know there is no language structure for this, unless the
objective C classes support offers this.
Michael.
__
I can see, or is made easier by dynamically adding methods.
So finally, what is gained by adding them dynamically ?
Or what forces you to even consider this path ?
Michael
___
fpc-pascal maillist - fpc-pascal@lists.freepascal.org
http://lists.free
d, and not to touch other stuff, and that requires me to design
an engine instead.
This is understandable, but none of this explains why you would need to add
a method to a class ? I have a similar system, but do not need to add
methods to a class ?
Michael.
fixed the issue,
recommend to enable SEH by default on Win64.
Michael.
___
fpc-pascal maillist - fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal
vented yet another technology/API.
Their partners must go crazy :/
Michael.
___
fpc-pascal maillist - fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal
e
new developer is faced with the choice: which one ? if you're in it for the
long term, this is a crucial decision.
Michael.
___
fpc-pascal maillist - fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal
ure.
I am not sure the problem can be solved correctly with the compiler as-is,
but the compiler people should confirm or deny this.
Michael.___
fpc-pascal maillist - fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal
) would it be better to split the
documentation as well?
No, it's better to keep it together:
1. to have an overview of what is available.
2. cross-referencing across packages in documentation is not easy.
Michael.
___
fpc-pascal maillist - fpc-p
ables.
Should I set the console codepage back to the one in use before the
program ran? Should I also mess with SetConsoleCP and/or SetTextCodePage?
These don't exist on non-windows ?
Michael.
___
fpc-pascal maillist - fpc-pascal@lists.free
TIBConnection from the registercomponents call as
well.
If that works, we'll put it in the sources in SVN.
Michael.
___
fpc-pascal maillist - fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal
t make it "not supported". Firebird rocks! :)
That means we should compile & distribute IBase and ibconnection in FPC,
because I think currently they are not.
Michael.
___
fpc-pascal maillist - fpc-pascal@lists.freepascal.org
http://lis
to be x86-only.
Apparently, it is available for your platform too.
Strange that it was removed from trunk, though. We'll need to re-enable it.
Maybe it is the switch to fpmake that caused this.
Michael.
___
fpc-pascal maillist - fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal
t on unix, and on windows a Windows window
handle to copy data.
Michael.
___
fpc-pascal maillist - fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal
s no defense").
No need to apologize, I'm just curious where you got your info from.
The implementation has been the same since day 1, which means your
statement puzzles me.
So instead of re-inventing the wheel, maybe have a closer look again at the
sta
meant the SimpleIPC unit from the FCL:
http://lazarus-ccr.sourceforge.net/docs/fcl/simpleipc/index.html
Michael.
___
fpc-pascal maillist - fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal
program e30;
{$mode objfpc}{$H+}
uses
fptemplate, classes;
var
T : TTemplateParser;
BEGIN
T := TTemplateParser.create;
try
T.StartDelimiter:='<#';
T.EndDelimiter:='>';
T.values['name'] := 'freevox';
T.values['
On Fri, 27 Jul 2012, Luciano de Souza wrote:
Michael,
Your example is very clear. I am not very good to understand source codes.
But this style seems to be very good and logical.
It's really wonderful: FPC owns units for everything!
Well, I use FPC for everything. So, I need tool
is in overrided constructor, but above example
is much faster.
Object Pascal currently does not support this, except maybe for static class
variables. The compiler people should confirm this.
Michael.
___
fpc-pascal maillist - fpc-pascal@lists.freepascal.org
does not say what happens when passing nil.
Both the generic and assembler implementation return 0.
Thanks.
Can this be added to the docs?
Done. rev. 930.
Michael.
___
fpc-pascal maillist - fpc-pascal@lists.freepascal.org
http://lists.freepascal.org
. (the
definition of the first day of the week differs from region to region iirc)
But the FPC docs don't mention what the first day of the week is for that
function, OR its compliance.
It is monday=1..sunday=7, and the whole unit is supposed to be ISO
ne
in packages\fcl-res\xml) but not in the bin directory.
IIRC, fpdoc picks up fpdoc.css when generating HTML/CHM output.
Shouldn't fpdoc.css be also present under the bin directory then?
No.
You're responsible for putting this file wherever it needs to be
file.
You can perfectly create one from scratch, or adapt the existing one.
Since we do not know what you want to do, we do not 'automagically'
copy it to the output.
Michael.
___
fpc-pascal maillist - fpc-pascal@lists.freepascal.org
ht
If you do not specify the location with --css-file, then fpdoc does not
look in the bin directory, only in the current working directory.
That we should distribute the file somewhere is something I agree on,
but I do not think it should be in the bin directory;
ide on the bin dir anyway, then so be it...
Michael.
___
fpc-pascal maillist - fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal
fpdoc.css should be distributed.
The only question is: where should we put it ?
Michael.
___
fpc-pascal maillist - fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal
hers in other versions...
What about the fpc root directory then?
I think it is better to have it in fpc/docs.
Michael.
___
fpc-pascal maillist - fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal
k.
So:
\docs for Windows and
on Linux/Unix/(OSX??) Jonas' suggestion
$PREFIX/share/doc/fpc-$fpcversion/
Seems like the reasonable thing, yes.
Michael.
___
fpc-pascal maillist - fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/li
n file for fpdoc than its
documentation, isn't it? From this point of view, shouldn't
SysUtils.GetAppConfigDir serve as the most reasonable location?
It is definitely not a config file. It is a file that must be copied to
every project you want to document
)
Thinking about it, I will change fpdoc so it does not need the file
installed, but generates it if not present, as Graeme suggested.
That will be far easier, and causes less headaches and discussion.
Michael.
___
fpc-pascal maillist - fpc-pascal
erested in
changing the design of our FPC documentation.
The file in the docs dir is there so they can copy it.
It will never be used directly.
Anyway, it's all moot now, I will let fpdoc generate the file.
Michael.
___
fpc-pascal maillist
Am Thursday 16 August 2012 14:53:05 schrieb microc...@zoho.com:
> Is anybody else receiving mailformed emails from the list?
>
> I've received several, most or all from Marco, with all with most of the
> headers appearing as text since there is an extra blank line between the
> X-Mailer header and
On Mon, 20 Aug 2012, Bart wrote:
Hi,
Does fpc have a function that determines if a given paths is the root
(e.g. '/' in Linux, 'F:\' in Windows)?
I could not find such a thing.
There is no such function.
Michael.
___
fpc-pas
?id=22691
Applied, thank you.
Michael.
___
fpc-pascal maillist - fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal
more serious
problem, IMHO. (and one which would exist even if I had followed your
suggestion of implementing the property in TSQLConnection).
Michael.
___
fpc-pascal maillist - fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/lis
of Loaded, I will see for some kind of hook mechanism.
Michael.
___
fpc-pascal maillist - fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal
On Wed, 22 Aug 2012, Tomas Hajny wrote:
On 22 Aug 12, at 19:03, Michael Van Canneyt wrote:
Hi Michael,
As you know, FPC uses fpmake to compile everything in packages.
As I've been steadily improving fcl-passrc for fpdoc,
(it's now almost on par with the compiler, barring
On Wed, 22 Aug 2012, Martin wrote:
On 22/08/2012 18:08, Michael Van Canneyt wrote:
Hi,
for those that do unit testing, I committed a small tool "pas2ut" which
analyses a unit, and creates a unit with a number of (empty) test cases.
Obviously, the unit should be compileable (well
us functions,
then Pascal is simply not for you.
Michael.___
fpc-pascal maillist - fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal
feature. Especially
such an abomination as lambda functions, which totally destroys readability.
Michael.
___
fpc-pascal maillist - fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal
in a pascal-ish way, i.e. rather verbose.
Simply because it is Pascal, after all, and not some C derivative language
(java, C#, Javascript, PHP, Perl whatnot...)
Michael.
___
fpc-pascal maillist - fpc-pascal@lists.freepascal.org
http
reading docs, i admired it. Like probably you
do.
Not really: it breaks my eyes, just as it does in JavaScript :(
Michael.
___
fpc-pascal maillist - fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal
I once did tests with that (600.000 records) and did not notice any influence
of the transaction control.
Michael.
___
fpc-pascal maillist - fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal
d it, thanks.
I thought sqldb would prepare automatically if you are using
parameters though?
If it prepares the statement automatically, it also unprepares it.
(at least, it should :) )
Michael.
___
fpc-pascal maillist - fpc-pascal@lists.free
more tests.
2. Presumably sdfdataset is used to exchange data with Delphi systems
using tstrings.delimitedtext. Therefore I'm stressing Delphi
compatibility in my tests. Do you think this is justified?
No, definitely not. The two are totally unrelated.
Michael.
___
On Tue, 25 Sep 2012, Reinier Olislagers wrote:
On 24-9-2012 18:43, Michael Van Canneyt wrote:
On Mon, 24 Sep 2012, Reinier Olislagers wrote:
On 24-9-2012 17:22,
michael.vancanneyt-0is9kj9sb0a-xmd5yjdbdmrexy1tmh2...@public.gmane.org
wrote:
On Mon, 24 Sep 2012, Reinier Olislagers wrote
because that is how I perceived
the original question :-)
Michael.
___
fpc-pascal maillist - fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal
nect then.
I've responded to your other mail ;)
Friends? ;)
I have never thought otherwise :-)
Michael.
___
fpc-pascal maillist - fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal
On Tue, 25 Sep 2012, Reinier Olislagers wrote:
On 25-9-2012 10:11, michael.vancann...@wisa.be wrote:
On Tue, 25 Sep 2012, Reinier Olislagers wrote:
On 24-9-2012 18:43, Michael Van Canneyt wrote:
On Mon, 24 Sep 2012, Reinier Olislagers wrote:
On 24-9-2012 17:22,
michael.vancanneyt
.
We are working on removing this requirement (Inoussa created a native Object
Pascal widestring manager), but we're currently stuck on dealing with a
copyright requirement of the Unicode group.
Michael.
___
fpc-pascal maillist - fpc-p
pecialized listeners.
All you need to do is create a listener that inserts into a database instead
of writing XML/txt/latex...
Michael.
___
fpc-pascal maillist - fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal
d clarification of the unicode group, but got no reply yet.
(whether we ever will is another matter)
Michael.
___
fpc-pascal maillist - fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal
data from Unicode.org - repackaging it is
irrelevant as far as I'm concerned.
Well, the matter is not entirely clear.
That is why we decided to ask the unicode group what their opinion is on this
matter.
Michael.
___
fpc-pascal maillist
ose 5 ITestListerner methods will then insert records into the
database as needed.
Ah, Listeners thanks. Is this listener concept something that's
common to more xunit frameworks (junit... etc) or is it an fpcunit
invention?
It is common to NNNunit testing frameworks
2-bit systems, it is a DWord. The docs were generated on such a system,
so you get this definition.
Michael.
___
fpc-pascal maillist - fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal
gned or not).
2) Same size as a pointer type on all platforms.
If we start specifying when it is of what type, then
a) we need to maintain this.
b) people will start making assumptions.
We exactly need to avoid b)
Michael.
___
fpc-pascal maillist -
thing that helps the documenter flag a
certain piece of code and let fpdoc know that it should show
alternatives or instead a separate piece of code (similar as examples
does).
Since fpdoc relies on a pascal parser that only accepts valid pascal code,
such a mechanism seems very unlikely to me.
Mi
wording
(to stress the opaque nature of this type) is obviously up to you, but a
request for some kind of clarification added to the docs is IMHO
absolutely reasonable.
Absolutely, and I plan to do so :-)
Michael.
___
fpc-pascal maillist - fpc-pa
en it can be delegated to the proxy in TSQLConnector.
Michael.
___
fpc-pascal maillist - fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal
itely not a property of the http client.
Michael.
___
fpc-pascal maillist - fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal
:= TSqlite.Create('test.sqlite');
X.Query('SELECT * FROM FIRM', S);
finally
FreeAndNil(X);
FreeAndNil(S);
end;
end.
It works, but the heap trace shows a bunch of memory leaks.
The trace could be found under:
http://michael-fuchs.net/newsgroups/fpc-pascal/sqlitememor
specify the dependencies right, it should figure out the order by
itself.
Michael.
___
fpc-pascal maillist - fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal
ecompiled, there are
problems.
Michael.
___
fpc-pascal maillist - fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal
;re in problems.
IMHO, in the end it is not worth the trouble.
Michael.
___
fpc-pascal maillist - fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal
ybody from the Lazarus development team that can comment here?
I am more optimistic than Michael. Because the same source is used,
the CRC is the same and no recompile is done.
It also depends on the date of the .ppu ?
Michael.
___
fpc-pascal mai
On Mon, 22 Oct 2012, Vincent Snijders wrote:
2012/10/22 :
On Mon, 22 Oct 2012, Vincent Snijders wrote:
I am more optimistic than Michael. Because the same source is used,
the CRC is the same and no recompile is done.
It also depends on the date of the .ppu ?
I don't think so.
thoughts on this? Has anybody else started such a port?
Allen Harrington works on B-Tree filer, which (if I am
correct) is the original from Flash Filer.
Maybe you can ask about his experiences.
Michael.
___
fpc-pascal maillist - fpc-pascal
derstand Graeme correctly, he wants it compiled-in (i.e. without
dll). SQLite is a separate DLL.
Michael.
___
fpc-pascal maillist - fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal
otocol for implementing SVN?
Does anyone have any contributions of SVN client/server code in pascal?
Why not use the library version of SVN ? This is how Tortoise does it, as
far as I know.
Michael.
___
fpc-pascal maillist - fpc-pascal@lists.freepasca
port uses WEBDAV. So search for the WEBDAV protocol, and
you're set ?
Michael.
___
fpc-pascal maillist - fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal
On Wed, 24 Oct 2012, Andrew Brunner wrote:
On 10/24/2012 09:01 AM, michael.vancann...@wisa.be wrote:
Well, the http transport uses WEBDAV. So search for the WEBDAV protocol,
and
you're set ?
Michael.
___
fpc-pascal maillist - fpc-p
Am 16.10.2012 12:59, schrieb Michael Fuchs:
...
It works, but the heap trace shows a bunch of memory leaks.
...
Is this a bug or am I doing something wrong?
For information: I created an entry in the bug tracker for this problem:
http://bugs.freepascal.org/view.php?id=23247
Michael
ed: extended; actual: extended; delta:
extended = 0; msg: string = ''); overload; virtual;
Michael.
___
fpc-pascal maillist - fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal
tions to fixing the problem, though.
Michael.
___
fpc-pascal maillist - fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal
rsion 39 of synapse
project1/libs/tidypas <- last version of tidy pascal wrapper
project2/libs/synapse <- contains version 40 of synapse
In this case, I also have the libs in my subversion repository.
Michael
___
fpc-pascal maillist
On Wed, 21 Nov 2012, Mark Morgan Lloyd wrote:
Somebody's suggesting we ought to be at least looking at BSD. What's the
preferred variant from FPC/Lazarus's POV: OpenBSD, FreeBSD etc.?
I think Marco mainly uses FreeBSD.
Michael.
___
On Mon, 3 Dec 2012, silvioprog wrote:
Guys,
Is "Assign" method implemented for dataset in FPC?
No, it is not.
Datasets differ wildly in how they access and store data.
Michael.
___
fpc-pascal maillist - fpc-pascal@lists.freepasca
in my descendant as
"MyExtraText". Is this possible?
Currently not.
Michael.
___
fpc-pascal maillist - fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal
ommunities/114860965042324270757
The two links are the same ?
Michael.
___
fpc-pascal maillist - fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal
without any optimization, the registers
are used.
Indeed, adding inline assembler to a routine disables many optimizations.
Doesn't adding the list of modified registers to the 'ASM' block
help in this case ? I thought this was why we supported
ntains
the table. People interested in the schema, can read the schema field.
It's easier to concatenate 2 fields than to separate out 2 parts of a field,
doubly so if you don't know whether the 2 parts are there or not.
Michael.
___
fpc-pascal maillist - fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal
al XML.
A pasdoc-to-fpdoc conversion is on my TODO list. (tracker item 325689871 ;))
Michael.
___
fpc-pascal maillist - fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal
rings; Options : TSchemaOptions = []);
I am not interested in schema information, but I can imagine some people are
(the original poster, obviously). The above caters for everyone and keeps
backwards compatibility.
Michael.___
fpc-pascal maillist - fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal
more options, this way there is no need for custom
solutions. Everyone benefits.
Michael.
___
fpc-pascal maillist - fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal
In that case, there is no need for this option, as the connection will apply
the quotes as needed ?
Michael.
___
fpc-pascal maillist - fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal
.
That said, I understand you need it, we're just trying to find a solution
that is good&acceptable for everyone.
Michael.
___
fpc-pascal maillist - fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal
1 - 100 of 3689 matches
Mail list logo