On 28.05.2012 16:02, Bernd wrote:
> What I would have expected would be some API where I can register
> all these connections (outgoing connections, listening sockets,
> etc) and then have only one thread blocking in only one call that
> will watch all these objects at once, but I can't find any
>
On 29.05.2012 10:25, Rainer Stratmann wrote:
> I will try later.
Also make sure you have turned *off* all optimizations, they can
sometimes mess up the stack trace badly (by removing unneeded stack
frames which can produce very confusing results) and also I have
witnessed at least one occasion whe
Currently I have the latest svn of FPC installed (make install) which
results in all files being installed where they belong, the binary being
in the search path and fpc.cfg in /etc and I can easily use it with Lazarus.
Now I want to test something I wrote whether it will compile with an
older ver
On 01.08.2010 14:45, Matthias Klumpp wrote:
> Because Pascal records are incompatible with C structs
how are they incompatible? It should be possible to define the same
record as a struct in C and for every struct in C it should be possible
to define the same as a record in Pascal. Then you could
Hi,
quick question: where does the textmode IDE store its configuration? It
seems I have messed up something but I cant find any configuration at
the obvious places where I would expect them.
The following are the places I would intuitively look for a config file
/etc/fp.cfg (or something starti
On 02.08.2010 16:30, Marco van de Voort wrote:
> In our previous episode, Jonas Maebe said:
>>> quick question: where does the textmode IDE store its configuration?
>>
>> I think that by default it stores them in the current directory (to
>> support different configuration files for different "pr
Hi,
I have a probably stupid question, experienced assembler programmers
will probably laugh but here is my problem:
I am trying to push the address of a label onto the stack but it doesn't
seem to work. __finally is a label and handler is the name of a
function. I can push the address of the fun
{$asmmode att}
asm
pushl %fs:0
end;
Error: Invalid Reference Syntax
I am referring to this:
http://www.cs.northwestern.edu/~pdinda/ics-f09/doc/gas-notes.txt
Is this syntax wrong? I remember having seen it exactly in this form in
the .s file before I converted all my code to att syntax.
In int
Hi,
I was bored and I played around with SEH exceptions. It might be useful
in some cases when you can't catch an exception in a dll but there might
also be easier methods in some cases. I though before the code will be
forgotten and deleted again I post it here:
the unit seh.pas contains the han
On 05.09.2010 23:00, Bernd Kreuss wrote:
> the unit seh.pas contains the handler. This handler is very simple, it
> will handle all exceptions and always restore the stack to the state it
> was when the handler was installed and use the address that was pushed
> to the stack to contin
Hi,
this might be a stupid question but I find myself again struggling with
file IO and stdin/stdout. I am trying to do the following:
StdIn := TFileStream.Create('/dev/stdin', fmOpenRead);
and later on i want to poll whether there is something to read. I want
to try reading binary data that wil
On 03.10.2010 15:21, Andreas Schneider wrote:
> You could use TIOStream from the unit iostream. AFAICS that should do
> exactly what you want - i.e. opening stdin/out/err as a TStream
> descendant.
> I don't know however, if that fixes the problem you have with the
> stream blocking when nothing is
On 03.10.2010 16:16, Honza wrote:
> See also sockets:
>
> http://wiki.lazarus.freepascal.org/Sockets
>
> and pipes:
>
> http://www.freepascal.org/docs-html/fcl/pipes/tinputpipestream.html
>
> The TInputPipeStream has a "property NumBytesAvailable: DWord; [r]
> Number of bytes available for rea
On 03.10.2010 19:10, Seth Grover wrote:
> Could you use THandleStream
> (http://www.freepascal.org/docs-html/rtl/classes/thandlestream.html)?
>
> myInputStream := THandleStream.Create(StdInputHandle);
Yea, this looks like what TIOStream internally seems to do. I have now
worked around the blockin
Hi,
I'm currently fighting with some problems that seem to have to do with
the order in which things are done when a library is unloaded.
For example I have written a little exception handler unit that installs
its handler function with AddVectoredExceptionHandler() from within the
initialization
Hi,
has anybody ever had the problem of TProcess.Free causing
three exceptions in in ntdll.dll?
C005 at 7C928FEA in C:\WINDOWS\system32\ntdll.dll
7C928FEA seems to be RtlpWaitForCriticalSection() somewhere deep inside
the windows kernel.
The first two happen almost immediately and the third
On 04.10.2010 19:23, Bernd Kreuss wrote:
> Hi,
>
> has anybody ever had the problem of TProcess.Free causing
> three exceptions in in ntdll.dll?
>
> C005 at 7C928FEA in C:\WINDOWS\system32\ntdll.dll
Just for the record: It was not TProcess and also not the streams, at
On 04.10.2010 19:23, Bernd Kreuss wrote:
> C005 at 7C928FEA in C:\WINDOWS\system32\ntdll.dll
>
> 7C928FEA seems to be RtlpWaitForCriticalSection() somewhere deep inside
> the windows kernel.
I see this error message now exactly once, immediately *after* the DLL
has been unloaded
On 05.10.2010 20:55, Bernd Kreuss wrote:
> I see this error message now exactly once, immediately *after* the DLL
> has been unloaded by the host application.
Correction: I see it after my log output within my finalization section,
it might still be in the final stages of DLL_PROCESS_
Hi,
I cannot find any documentation on this: On Linux I can have my global
fpc.config in /etc/fpc.cfg and it will also look for a config in
~/.fpc/fpc.cfg which is very convenient since I can put some unit search
paths there that I don't want to specify in the Lazarus project file
itself because t
On 10.10.2010 01:44, Marco van de Voort wrote:
> On Windows it looks in the dir of the compiler, as per documentation:
>
> http://www.freepascal.org/docs-html/user/usersu10.html#x24-310003.1.5
Would a feature request for making it search in the home directory make
sense? IMHO this would be very
On 10.10.2010 13:54, Sven Barth wrote:
> In trunk version of Lazarus you can set a configuration as "default for
> new projects".
[OT] If the same option that can put an @extracfg.cfg on a per project
basis would also be implemented in Lazarus' environment options to put
another @globalextracfg.
On 10.10.2010 15:30, Bernd Kreuss wrote:
> to put
> another @globalextracfg.cfg behind it
I wanted to say "in front of it".
___
fpc-pascal maillist - fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal
The following code (Msg is just outputting to the debug monitor) will
produce something strange:
// replace all line endings with space
for Pos1 := 1 to Len do begin
try
Msg(2, 'GetVector', Format(' %d %d',[Pos1, Len]));
if Line[Pos1] = #13 then Line[Pos1] := ' ';
if Line[Pos1] = #1
On 10.10.2010 23:42, Bernd Kreuss wrote:
>> [1428] <2> TRConsole.GetVector: 1 84
>> [1428] <2> TRConsole.GetVector: 2 84
>> [1428] <2> TRConsole.GetVector: 3 84
>> [1428] <2> TRConsole.GetVector: e 3 84 Disk Full
>> [1428] <2> T
from rtl/win/syswin.inc:
>DLL_THREAD_ATTACH :
> begin
>inclocked(Thread_count);
>
>WinEnterCriticalSection(AttachingThread);
>if Win32GetCurrentThreadId <> MainThreadIdWin32 then
>begin
> { Allocate Threadvars }
>
On 10.10.2010 23:42, Bernd Kreuss wrote:
> "Disk full"
Please ignore this thread and don't waste any more time thinking about it.
It was my own stupidity. My über-cool debug log function had a stupid
writeln in it that should not have been used when running on windows and
no s
On 18.10.2010 15:19, Lukasz Sokol wrote:
> Having variables declared within code block used to require to parse the
> source code
> at least 2 times
Or create them on the stack at the begin and remove them at the end of
the block (which would be the only way to have some additional
functionality
On 18.10.2010 15:55, Frank Church wrote:
> I just want to create shorter variables like
> si := StringList.NameOfIndex(TableName.FieldByName('').AsString);
> ae := xxx;
> so:= yyy
>
> to express complicated logic with them.
Maybe the usage of WITH could be helpful in some of these cases
Be
On 18.10.2010 15:55, Frank Church wrote:
> I understand the need to avoid stuff that could create unintended errors
It would create something that I would call "irregularity" (or even
ugliness) in the language grammar. Nowhere else is it ever allowed to
have certain things inside a begin/end bloc
Does anybody know what has become of this:
http://free-pascal-general.1045716.n5.nabble.com/TFPCHeapStatus-miscalculations-in-2-3-1-td2824362.html
I am currently experiencing the same problem. The only thing my Program
does on the heap are ansistring manipulations, concatenating strings to
new str
On 22.10.2010 21:23, Jonas Maebe wrote:
> It's only a cosmetic problem, there is no problem with the heap itself. It's
> a known bug, related to reallocmem:
> http://bugs.freepascal.org/view.php?id=15805
If I understand this correctly then these are only meaningless counters
that come out of sy
On 08.02.2011 09:34, Ben wrote:
> What is the programming language used in and with the Free Pascal Compiler?
>
> * Object Pascal
> * Delphi
> * Free Pascal
> * Pascal
How about calling it "Pascal", implicitly stating that Pascal nowadays
is OO anyways, a fact that does not need to be mentioned
On 21.05.2011 11:29, Mattias Gaertner wrote:
> On Sat, 21 May 2011 12:12:59 +0300
> "Juha (gmail)" wrote:
>
>> [...]
>>> When trying to update the new lazarus and fpc binaries with deb packages I
>>> got in trouble with dependancies. Then I abort it.
>
> What troubles?
The thing I have never un
On 21.05.2011 12:11, Mattias Gaertner wrote:
>> The thing I have never understood is why it split into a myriad of
>> different .deb files
>
> Because of Debian policies.
There exists a debian policy to split a large package into some randomly
chosen smaller ones although *none* of them can ever
On 21.05.2011 12:21, Mattias Gaertner wrote:
A README.txt would
> help. For example:
> If you want to install the gtk2 version of Lazarus use:
A shell script that installs them in the correct order.
___
fpc-pascal maillist - fpc-pascal@lists.freepasca
On 21.05.2011 12:59, Jonas Maebe wrote:
> They don't want to force everyone to install firebird, mysql, postgresql,
> ptcgraph, gtk, gtk2, qt and every other single thing for which FPC has
> bindings.
"force" is the keyword here. The entire following rant refers to only
this one word:
Its not
37 matches
Mail list logo