FPImage etc. to speed up image scaling native
to FPC?
Bug report on ImageMagick linker error with sample program :
http://bugs.freepascal.org/view.php?id=25373
Thanks very much,
Andrew Brunner
___
fpc-devel maillist - fpc-devel@lists.freepascal.org
e library folder. Which leads me to proposing
that it should be.
I wonder what actually builds "fpc" binary and included (fp*) tools
presently shipped...
And if "fpc" binary is different than ppcx64 than why do I have no build
problems on my Linux bo
On 11/25/13, 3:42 PM, Jonas Maebe wrote:
Using simply wrong hyperboles is not productive. I explained in my
previous message, which you quoted below, why you cannot use a
cross-compiler (such as the ppcx64 included with FPC releases on Mac
OS X) to build FPC from trunk without using a special m
On 11/25/13, 2:56 PM, Jonas Maebe wrote:
On 25 Nov 2013, at 21:28, Andrew Brunner wrote:
I've got darwin Mac OS 10.9 running fpc 2.6.2 installed and compiling from the
downloads section of the site.
I'm trying with no success to get 2.7.1 to compile ppcx64 with /usr/local/bin/f
I've got darwin Mac OS 10.9 running fpc 2.6.2 installed and compiling
from the downloads section of the site.
I'm trying with no success to get 2.7.1 to compile ppcx64 with
/usr/local/bin/fpc ->/usr/local/lib/fpc/2.6.2/ppcx64
which fpc shows...
/usr/local/bin/fpc
contents of /usr/local/bin/ in
ar concatenated with spaces Please fix....
--
Andrew Brunner
Aurawin LLC
19309 Stage Line Trail
Pflugerville, TX 78660
https://aurawin.com/
Aurawin is a great new way to store, share, and explore all your content
featuring our innovative cloud social com
Same problem with TMemoryStream.Write :-(
On 11/05/2012 10:09 PM, Andrew Brunner wrote:
objpas/classes/classesh.inc
TCustomMemoryStream
function Read(var Buffer; Count: LongInt): LongInt; override;
Having Read result declared as LongInt is problematic on 64 bit
systems with large streams
, Thanks
--
Andrew Brunner
Aurawin LLC
512.574.6298
http://aurawin.com/
Aurawin is a great new way to store, share, and enjoy your
photos, videos, music and more.
___
fpc-devel maillist - fpc-devel@lists.freepascal.org
http://lists.freepascal.org/mailman
TF8 or
UTF16? Will this code allow bytes to go by without messing them all up?
--
Andrew Brunner
Aurawin LLC
512.574.6298
http://aurawin.com/
Aurawin is a great new way to store, share, and enjoy your
photos, videos, music and more.
er is not
doable on some mail servers.
My server uses deflate stream compression. I have multicore servers.
My larger problem are the datagram
values containing strings that fail.
So with encoding of binary inflated - I would still have to parse each byte.
To me that is the problem.
So where in the specs does it say that parsers must reject certain byte
sequences between cdata tags excepting XML tags.
If this is supported by specs it would help shape a viable solution.
On Nov 2, 2012, at 9:01 AM, Sergei Gorelkin wrote:
> 02.11.2012 17:44, Mattias Gaertner пишет:
>>
>
On Nov 2, 2012, at 8:32 AM, Sergei Gorelkin wrote:
>
> In this case, the issue is not encoding, but literal ESC (#27) code used in
> data. XML specification does not allow codepoints below 32, except TAB,CR and
> LF, to appear in data, both in literal and escaped forms.
> In other words, XML
On 11/02/2012 08:08 AM, Michael Van Canneyt wrote:
There is no attachment to your mail.
The attachment was in my first posting. But just in cease I've attached
it again.
Please feel free to check it out.
The example is stripped of most of the xml code that was successfully
parsed. This
On Nov 2, 2012, at 7:24 AM, Michael Van Canneyt wrote:
>
>
> On Thu, 1 Nov 2012, Andrew Brunner wrote:
>
>> I'm having a problem getting the XML parser to read.
>>
>> Is there any way I can get the attached program to work by changing a
>> p
e for byte checking
during parsing.
--
Andrew Brunner
Aurawin LLC
512.574.6298
http://aurawin.com/
Aurawin is a great new way to store, share, and enjoy your
photos, videos, music and more.
program invalid;
var
FXMLParser : TDOMParser;
FXMLDoc
ancy could be harsh but this is an expensive problem
for me. Each server can cost as much as $4,000 US.
--
Andrew Brunner
Aurawin LLC
512.574.6298
http://aurawin.com/
Aurawin is a great new place to store, share, and enjoy your
photos, videos, music and more.
__
t
use such a pivotal technology as a tool to get what someone else wants.
The bottom-line inference here is that WE ALL must encode ALL DATA
before it can be streamed / parsed. That's bad news and EXPENSIVE.
Therefore, any help would be greatly appreciated.
--
Andrew Brunner
Aur
There is no way to have CDATA with charaters past 127. Anyone know the
rationale?
Is there anyway to get the parser to respect Validate=false for
charaters beyond 127?
Thanks,
--
Andrew Brunner
Aurawin LLC
512.574.6298
http://aurawin.com/
Aurawin is a great new place to store, share, and
ion with an Object Pascal
> version.
Again it would be best to get a team together and do something nice rather than
simple.
Andrew Brunner,
Aurawin LLC
http://aurawin.com/
A great place to store and share your pictures, videos, and more, featuring a
rich cloud social computing platform.
I've been keeping up with this topic for a while now and I haven't
read any suggestions similar to how I envision encoding support.
I think it's best to keep ansi strings intact. I also think it's best
to create a string encoding class factory for people to draw upon for
conversions.
I don't thi
Problem solved. This time I used the downloaded install scripts from
sourceforge. It came with a install script option to /usr or /usr/local.
My systems are /usr/local... Too keyboard happy :-) My bad.
On Tue, Jul 24, 2012 at 4:51 PM, Andrew Brunner
wrote:
> $ fpc
>
> Fatal: In opt
$ fpc
Fatal: In options file /etc/fpc.cfg at line 29 unexpected \var{\#ENDIFs}
encountered
Shell script that made cfg
sudo $FPC_CONFIG -d basepath=$FPC_DIR -o $FPC_DIR/fpc.cfg
sudo $FPC_CONFIG -d basepath=$FPC_DIR -o /etc/fpc.cfg
I never had this problem before... What gives?
fpc.cfg
Descript
After compiling I don't have IconsCore in
/usr/local/lib/fpc/2.7.1/units/i386-darwin/univint
I use the Journaled Case Sensitive file system. FPC 2.6 works though. I
just recently started having this problem.
Start compiling package univint for target i386-darwin.
Warning: Source file "CTFrameSe
Mac OSX 10.7.4
FPC svn/trunk just updated
Lazarus svn/trunk just updated
Free Pascal Compiler version 2.7.1 [2012/05/20] for i386
Copyright (c) 1993-2012 by Florian Klaempfl and others
Target OS: Darwin for i386
Compiling alllclunits.pp
Assembling (pipe) units/i386-darwin/alllclunits.s
41 lines c
>
> It's best to file a bug report.
>
>
> http://bugs.freepascal.org/view.php?id=21941
Thanks Jonas, I thought it would be an easy fix. I really enjoy this
feature in FPC. It's worth it to me to get these problems worked out. Not
to mention having to re-write really pretty code :-(
I'm able t
Ok,
Attached is a sample program that demonstrates the problem.
FPC 2.6.0 compiles just fine.
FPC Trunk has a problem.
The attachment of the unit in this thread prior SHOULD work but did not
because there is a secondary problem in that once I moved the primary decs
into a header file the using u
I just encountered this problem again.
I can't build my process application and the attached project still won't
compile. Can someone shed some light on this problem?
Thanks.
___
fpc-devel maillist - fpc-devel@lists.freepascal.org
http://lists.freepa
2.6.0 also triggers the same error. AFAICS this problem is
> somewhat analogous to the limitation when declaring members in a
> record. Are you sure the unit in your big project is being compiled?
>
> -Flávio
>
> On Mon, Apr 30, 2012 at 3:39 PM, Andrew Brunner
> wrote:
> &
ProviderID : 0;
Enabled : true;
Anonymous: false;
NotifyOnBuffersChanged : false;
Scale: 0;
CLSInfo : @CLSInf;
ACLInfo : @ACLInf;
);
On Mon, Apr
Here's the source...
Test.lpr
Description: Binary data
___
fpc-devel maillist - fpc-devel@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-devel
This problem recently appeared in svn/fpc/trunk
I tried pointing to:
CLSInfo : @Root.Test.CLSInfo ; // Still not working
CLSInfo : @Root.Test.CLSInfo1 ;// Renamed dec and still didn't work.
This problem did not exist a few days ago.
I have a ton of units that don't compile now!!!
Please hel
Having just looked over the class factory for images in FPC, I found
that ImageHandlersManager is missing a critical method to obtain a reader
or write by the extension used.
Presently the getReader uses the TypeName and not the Extenstion. I find
this quite annoying. Can someone please extend t
Polymorphism and Namespaces don't work.
http://bugs.freepascal.org/view.php?id=20940
Is a fix something I can expect shortly? Just want to know how
serious the issue is or if I should work around.
Thanks
___
fpc-devel maillist - fpc-devel@lists.free
> Can you report a small but full example to the bug tracker?
Yes, I was able to get it to fail with just a simple unit test.
It's a lazarus project.
http://mantis.freepascal.org/view.php?id=20909
___
fpc-devel maillist - fpc-devel@lists.freepascal.or
:
> 16.12.11 1:58, Andrew Brunner пишет:
>
>> class
>> storage
>> class
>> Folders
>> Type
>> Item=record
>> end;
>> PItem=^TItem
>> TItems=array of PItem
>>
>>
>
class
storage
class
Folders
Type
Item=record
end;
PItem=^TItem
TItems=array of PItem
Variables in some other unit compile OK.
in some other unit:
type MyCallback=procedure(Var Items:Storage.Folders.TItems); // linking fa
Can't build ./trunk/FPC with starting compiler 2.4.4+
mysql40conn.pas
mysqlconn.inc(700,37) Error: Incompatible types: got "pculong"
expected "PLongWord"
Please fix :-)
___
fpc-devel maillist - fpc-devel@lists.freepascal.org
http://lists.freepascal.o
I think you should also look into setting linger options at a lower
rate than present values. 120 seconds is too long. 15-30 seconds is
a reasonable amount of time to give a dead socket.
In fpc componetent design, I would recommend to also make sure that
sockets issue SHUT_DOWN for Both read and
On Fri, Sep 23, 2011 at 7:28 AM, Martin Schreiber wrote:
> On Friday 23 September 2011 14.00:07 Sergei Gorelkin wrote:
>>
>> Recently strings behavior was changed, they are now codepage-aware. The
>> compiler can now implicitly convert strings from one encoding to another.
>> To handle non-string
On Fri, Sep 23, 2011 at 7:00 AM, Sergei Gorelkin
wrote:
> Recently strings behavior was changed, they are now codepage-aware. The
> compiler can now implicitly convert strings from one encoding to another. To
> handle non-string data, you should use RawByteString type, or better yet
> non-string t
On Fri, Sep 23, 2011 at 1:07 AM, LacaK wrote:
> TMySQL51Connection ?
I'm using TMySQL51Connection.
___
fpc-devel maillist - fpc-devel@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-devel
On Fri, Sep 23, 2011 at 12:12 AM, LacaK wrote:
>
>> Did anyone recently do work on BLOB features to MySQL 5.1 connector?
>>
>
> there was commited only this
> http://svn.freepascal.org/cgi-bin/viewvc.cgi/trunk/packages/fcl-db/src/sqldb/mysql/mysqlconn.inc?r1=17417&r2=18951
> which introduced mappi
I use latest FPC from /trunk/ and this problem just started happening recently.
Pseudo code
Write To SQL as Blob (using parameter binding)
Param.AsString=uInt64Array.toBlob(MyList);
unit "uInt64Array"
procedure fromBlob(List,string)
count=length(string) div 8; // size of int64
SetLength(Li
On Mon, Jul 11, 2011 at 3:02 AM, Mark Morgan Lloyd
wrote:
>>
>> 1.) Update Value : 40734.825668912039
>> 2.) Actual Value after update : 40734.8256689120
>> 3.) Actual Value on read : 40734.825668912003
>
> Does MySQL come with an "official" program that you can use t
On Mon, Jul 11, 2011 at 12:55 PM, Ludo Brands wrote:
> The only way to transfer double as binary data to the server is by using
> prepared statements and bound parameters. This is currently not implemented
> in fcl. All data are transferred as text to the database and are subject to
> conversion
On Mon, Jul 11, 2011 at 11:55 AM, Hans-Peter Diettrich
wrote:
> The binary value consists of an exponent and an significand (mantissa), most
> probably you forgot to count the exponent and sign bits.
The problem I'm trying to describe is with double precision floating
point values. When the que
On Mon, Jul 11, 2011 at 10:14 AM, Ludo Brands wrote:
> So you're losing 2 bits in precision by truncating to 15 digits.
Ok, so I'm going to go out on a limb here and propose the question:
How to we fix this 2bit loser ;-)
___
fpc-devel maillist - fpc-
On Mon, Jul 11, 2011 at 10:19 AM, Hans-Peter Diettrich
> It doesn't make sense to display more digits than stored in the binary
> variable. There is no loss, only rounding errors in the conversion from
> binary to decimal text.
I need to compare values with complete precision. I don't think this
Declaraions are all double.
>Value: double;
>Query.Params.ParamByName(sName).AsFloat:=Value;
Also:
Test:double;
Test:=Query.Params.ParamByName(sName).AsFloat;
Test=Value << ok here. Problem must be somwhere else.
1.) Update Value : 40734.825668912039
2.) Actual Value after u
On Sun, Jul 10, 2011 at 8:00 PM, Andrew Brunner
wrote:
> 2.) Actual Value after update : 40734.825668912
This is the value as read in the MYSQL admin program table data.
This is under Ubuntu 10.10 x64.
___
fpc-devel maillist - fpc-de
On Mon, Jul 11, 2011 at 4:53 AM, Ludo Brands wrote:
> How do you get the 40734.825668912003 value?
Fields.FieldByName(Value).AsFloat();
___
fpc-devel maillist - fpc-devel@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-devel
Can someone check the status of update if the bind parameter for
double decimal values?
I'm getting unexpected rounding errors after updating - the data in
the column looks different than what was specified during the update
statement.
Value: double;
Query.Params.ParamByName(sName).AsFloat:=Value
Another problem may be that more often then not another thread may
want to acquire a new object reference. What is the status of the
cMem memory manager / with/without? Can one thread create an object
and be freed by another thread? What about stacks? I know you can
attach events to threads usi
> function TDLLItem.getNextItem():TDLLItem;
> begin
> EnterCriticalSection(FOwner.FLock);
> Try
> Result:=FNext;
> Finally
> LeaveCriticalSection(FOwner.FLock);
> end;
> end;
Thread1 code
...
itm=List.First;
while itm<>nil do begin
itm.Process;
itm=item.Next; // good
2011/7/1 Hans-Peter Diettrich :
> Adem schrieb:
>>
>> Why each and every object? I thought (b)locking only those touched in
>> the Attach() procedure (9 nodes, in my ) would be sufficient; wouldn't it?
Each and every element in the collection may prove difficult to
protect for a general purposing.
2011/7/1 Adem :
> In a multi-core multi-threaded platoform, I simply cannot see (other than
> locking the whole object) how any amount of interlocking or critical
> sections (or whatever) can guarantee that none of these 9 variables (nodes)
> will not be altered/deleted while we're in Attach() proc
On Fri, Jul 1, 2011 at 12:48 PM, José Mejuto wrote:
> This code will crash at a given time, maybe 1 millisecond, maybe 2
> days, but it will crash.
Yes. It will fail. Access to a,b are forbidden without acquiring a lock.
> Cache coherence is maintained by the hardware, interlocked only
> provi
On Fri, Jul 1, 2011 at 11:44 AM, Hans-Peter Diettrich
wrote:
> IMO a linked list can not work flawlessly, until at least a
> multiple-read-exclusive-write lock is used. While an exclusive-write lock
> can ensure list consistency, every unsynchronized reader will be fooled by
> concurrent changes
On Fri, Jul 1, 2011 at 8:51 AM, Mark Morgan Lloyd
wrote:
> Fair play, he /has/ said he's mailed Andrew looking for source.
I never received such email. But to Michael's defense, Google mail
isn't the product it once was.
> However under the circumstances we've got to have something definitive t
On Thu, Jun 30, 2011 at 8:04 AM, Michael Schnell wrote:
> - if the potential cache incoherency would not be handled by Hardware / OS
> / Libraries on behalf of user land programs, I feel that this would so
> disastrous and ubiquitous that it result in so many programs not working on
> SMP systems
On Thu, Jun 30, 2011 at 4:31 AM, Hans-Peter Diettrich
wrote:
>
> After these considerations I'd understand that using Interlocked
> instructions in the code would ensure such read/write-through, but merely as
> a side effect - they also lock the bus for every instruction, what's not
> required whe
Here is a nice example of one that actually works...
http://wiki.lazarus.freepascal.org/Manager_Worker_Threads_System
Granted I wrote this sample and Wiki a long time ago, but you may want
to read this ;-)
___
fpc-devel maillist - fpc-devel@lists.free
On Tue, Jun 28, 2011 at 10:17 AM, Michael Schnell wrote:
> You still did not give an example
Don't take my word. Just look at the wikipedia link I already posted
which indicates otherwise.
>> Remember ***cores!=threads*** people.
>
> Wrong regarding the issue in question (see the message by J
You can stick your head in the sand all you want, just don't run your
code on multi-core cpus and expect valid stability - and come back
here complaining on how unstable your multi-threaded application is
due to FPC design!
> User programs are not supposed to bother about anything beyond threads t
On Tue, Jun 28, 2011 at 9:43 AM, Michael Schnell wrote:
> On 06/28/2011 04:31 PM, Andrew Brunner wrote:
>>
>> how developers
>> can force code execution in order w/o using a third party library?
>
> Execution in order only makes sense when there is another thread
On Tue, Jun 28, 2011 at 9:33 AM, Michael Schnell wrote:
> And this has been discussed in the other message: If the variable in fact is
> global the compiler needs to avoid caching it, if it is static and the
> function is in another module it might still decide to cache it, but you are
> right: i
On Tue, Jun 28, 2011 at 9:23 AM, Jonas Maebe wrote:
On topic, Jonas can you take a few moments to describe how developers
can force code execution in order w/o using a third party library? Is
there a compiler directive we can use?
___
fpc-devel maillis
> Jonas already pointed you to it:
>
> http://pubs.opengroup.org/onlinepubs/9699919799/basedefs/V1_chap04.html#tag_04_11
>
> "Applications shall ensure that access to any memory location by more than
> one thread of control (threads or processes) is restricted such that no
> thread of control can r
On Tue, Jun 28, 2011 at 9:00 AM, Henry Vermaak wrote:
> On 28/06/11 14:23, Andrew Brunner wrote:
>>
>> There is no problem no need for volatile variables. Compare and Swap
>> or Interlocked mechanisms will solve any problems.
>
> Nope. You still need to prev
> Of course it is. They issue a hardware memory barrier. This stops the cpu
> from reordering operations. How do you think anything using pthreads will
> work if they didn't?
Documentation please? If what you are saying is accurate just point
me to the documentation?
__
> No, that is impossible. That's the whole point of using libraries such as
> libpthread. They abstract such issues away. Using atomic operations inside
> mutex sections only slows down your program unnecessarily (unless you also
> access the target memory location from code not guarded by that mut
On Tue, Jun 28, 2011 at 8:28 AM, Jonas Maebe wrote:
>> 1.) Code execution on die is not controlled by pthreads implemention -
>> as it is unaware at that level.
> I have no idea what you mean by this. What would "code execution off die" be
> as opposed to "code execution on die"?
"on die" imag
On Tue, Jun 28, 2011 at 8:16 AM, Jonas Maebe wrote:
> The C (or Pascal) compiler has no idea whether or not the global variable
> will be accessed by the pthread_mutex_lock()/unlock() function. As a result,
> it will never cache it in a register across function calls, and the call to
> the mutex f
On Tue, Jun 28, 2011 at 8:11 AM, Jonas Maebe wrote:
> http://pubs.opengroup.org/onlinepubs/9699919799/basedefs/V1_chap04.html
> (point 4.11)
Nope. Nothing about order - just access - and that is entirely on the
application level - not system.
1.) Code execution on die is not controlled by pthr
On Tue, Jun 28, 2011 at 8:00 AM, Jonas Maebe wrote:
>
> On 28 Jun 2011, at 14:58, Andrew Brunner wrote:
>
>> On Tue, Jun 28, 2011 at 6:14 AM, Michael Schnell
>> wrote:
>>
>>> For variables not defined as volatile, (e.g.) pthread_mutex (and similar
>>
On Tue, Jun 28, 2011 at 6:14 AM, Michael Schnell wrote:
> For variables not defined as volatile, (e.g.) pthread_mutex (and similar
> stuff on Windows) can be used to protect them.
>
A mutex may be able to atomically block access because of its own
memory barrier, but I would suggest that employi
I heavily use nested classes in general and I've come across a problem
where I cannot make explicit references data structures from another
unit while embedded within classes.
//Developer/Source/Builds/SCS/Linux/64/Output/uRTSPd.o:(.data+0x52f):
undefined reference to `RTTI_DBMRTSP_DEF112'
The li
I'm using the trunked FPC/Lazarus (just updated) and I have a problem
with nested types. Ubuntu x64 10.10
dbmVDM.pas
type
VDM=class
type
DB=class
const
stuff = 0;
// fields removed for simplicity even more subclasses
end;
end;
Resources=class
type
DB=class
I just installed MySQL 5.5 and realized that the connector is bound to
5.1. I can see why looking at the code - why this is like that :-)
I had a problem with the usage of $ifdefs all over the place in the code.
It would be worth it since there are so many flavors of MySQL to
re-structure the MyS
I did read this however, I don't have the option of rewriting all the
other implements to my api to declare as nested...
http://wiki.freepascal.org/FPC_New_Features_Trunk#Support_for_nested_procedure_variables
___
fpc-devel maillist - fpc-devel@lists.f
procedure Something(Param1...);
var
my:TMyData;
procedure Testing; inline; // or whatever
begin
my.test:=0;
end;
begin
MyAPI.DoeSomething(Param1,@Testing);
end;
I want to be able to pass Testing as a variable so the callback can
occur but realize that FPC did not like nested proc.
As a follow-up I've temporarily got past this issue by making each
member of the enumeration having a unique name with a preceding
character. The only problem now is my code looks well not as
refined...
ns.App.Props.aName
ns.Vendor.Props.vName
Anyone want to give this a try at fixing ? I want t
Type
NS_APP=class
const
const1=2;
const3=5;
type
NS_SPACE1=class
type
Properties=(Name,Value);
TMyRecord=record
ID : integer;
Name:string;
Value:string;
end;
end
I'm really surprised that I come off as sounding pro any OS.
Personally, I'm the type of person to remove Windows 7 from my brand
new laptop just to run Ubuntu. I think there is though, some sort of
deep seeded resentment towards event driven methods.
So back to the topic... As it stands I do ha
On Sun, Jan 2, 2011 at 10:58 AM, Jonas Maebe wrote:
> Please move this discussion to the fpc-other list.
If by "this" discussion you mean "his" discussion then great. I've
still got outstanding issues with SIGIO / SIGPOLL.
___
fpc-devel maillist -
On Sun, Jan 2, 2011 at 9:07 AM, Michael Van Canneyt
wrote:
> All webservers I know use polling on unix, and they are what you might call
> 'high availablility' environments.
There is a big difference between HA and HP :-) While they are
relationally proportional the cost of HA is minimized with
On Sun, Jan 2, 2011 at 5:24 AM, Nikolai Zhubr wrote:
> Formally yes maybe, but Andrew probably meant just avoiding some horrible
> CPU-burning busy-loop.
>
> Despite of the similar name (epoll), substantial shortcomings of classical
> polling scheme are gone. Say, you need not use a timeout to be
On Sun, Jan 2, 2011 at 4:43 AM, Michael Van Canneyt
wrote:
> Do note that you're back to polling, which I understood you wanted to avoid
> in the first place ?
>
> Michael.
Sigh - yes, your right. I haven't given up on kernel level signals
(SIGIO/SIGPOLL) and random posts on various *nix forums
Thanks Marco. I hope to get kqueue under darwin implemented shortly.
But Linux was after Windows. Apple can wait.
On Sat, Jan 1, 2011 at 7:26 PM, Marco van de Voort wrote:
> In our previous episode, Andrew Brunner said:
>> proven methods under Linux. I wonder if epoll was ever bro
Thanks, Nikolai. epoll looks like the silver bullet (for linux) and
very promising. I can dump a bunch of sockets into it and get the
kernel to let me know which ones get notifications for
reset/read/write.
But the abstraction is already accomplished in the foundational
abstracted network server
> On Sat, Jan 1, 2011 at 5:45 PM, Marco van de Voort wrote:
> My guess is that he is desperately trying all straws to find something that
> matches the application model of his existing app, which is Windows centric.
Also, it should be pointed out, that the existing mechanism (which is
commented
On Sat, Jan 1, 2011 at 5:45 PM, Marco van de Voort wrote:
>
> My guess is that he is desperately trying all straws to find something that
> matches the application model of his existing app, which is Windows centric.
I am exploring all options to switch to the most effective form for
handling hig
On Sat, Jan 1, 2011 at 5:39 PM, Nikolai Zhubr wrote:
> What are you trying to achieve ultimately? People tend to avoid using
> signals as much as possible nowadays (for anything beyond some nice handling
> of forced/fatal program termination and such) at least on linux. I'm not
> guru, just somewh
On Sat, Jan 1, 2011 at 12:25 PM, Marco van de Voort wrote:
> In our previous episode, Andrew Brunner said:
>> Another important thing is that (IMO) the data structure for
>> TSigAction is out-dated.
>
>> Please refer to rtl/linux/signal.inc and compare the struct with the
On Sat, Jan 1, 2011 at 12:02 PM, Mark Morgan Lloyd
wrote:
>
> I am neither a kernel hacker nor a network guru, but would a signal be
> raised when a byte was read or when a TCP packet- possibly comprising
> aggregated bytes- was transferred? I think you'd be better not using a
> standard telnet cl
I'm trying to get signals to work with sockets under x64 Ubuntu 10.10
(all updates)
I installed two handlers for two events SIGIO, and SIGHUP uising
fpsigaction(SIGIO, @saAct, nil) . I was expecting to get a byte by
byte signal under telnet to my server instance (110-pop3) on the IO
but had only
Postgres has some problems with the unit code. WIthout getting into
personal preferences with code indentation (eye rolls) I would like to
point out that (at least on windows) reading res after pqclear(res) will
result in a SIGFAULT error.
So inspecting pqconnection.Execute(...)
res := pq
>
> (and look on internet for the meaning of the MSG_NOSIGNAL flag :) )
>
> Michael.
>
Thanks Michael. That did the trick. But sooner or later I'm going to need
to switch from polling to events...
___
fpc-devel maillist - fpc-devel@lists.freepascal
On Thu, Dec 2, 2010 at 1:14 PM, Michael Van Canneyt
wrote:
>
> It would help if you could say what the exception exactly is ?
>
>
Thanks Michael,
Well all I see is a SIGPIPE exception. As stated before the actual FPC
exception was not raised (or the except block was not executed) in there so
I c
OS: Ubuntu 10.10 x64 all updates as of this am. But problem has persisted
for days now.
Laz/FPC: Today's trunk
worker thread running issues a call to fpSend with iSend Bytes in buffer
Try
RSRP^.LastCall:=Sockets.fpSend(RSRP^.Info.Socket,@FSendBuffer[0],iSend,0);
except
1 - 100 of 157 matches
Mail list logo