>
> > Hi again -
> >
> > another question; what is the best way to "fail" a constructor call? For
> > example, I have a constructor "timage.loadimage()", and I want it to
> > return
> > "nil" if it encounters a problem (e.g. the file name doesn't exist). My
>
> Use fail :-)
But, when I use fail in
Well, unless it's your only chance (walking through the forests alone in the
dark), you should'n start any program that might contain fatal errors. safety
first, or so ..
bye,
anton.
--
"Adas Methode war, wie sich zeigen wird, Tagträume in offenbar korrekte
Berechnungen einzuweben."
What program?
Mark
Anton Tichawa wrote:
>
> Hello!
>
> At first glance I saw several possible errors that might make the program
> crash. The until-condition contains "= 0" and should possibly read "<= 0";
> and your first storage has index 1, which should possibly read 0 instead of 1.
>
> ---
I have a problem reading a unix-socket
this snippet (from www.lirc.org) works, but it's in perl ...
:-(
fd=socket(AF_UNIX,SOCK_STREAM,0);
if(fd==-1) {
perror("socket");
exit(errno);
};
if(connect(fd,(struct sockaddr
*)&add
Anton Tichawa wrote:
> Please post the data declarations (e. g. var Count: Integer; const
> MAX_BUFFER_SIZE = .. etc.). Normally, an index starts from 0 upwards, e. g.
> if you had:
It starts at 1, but that really shouldn't matter that much.
If you really want the other stuff I can give you what
Ivan Montes wrote:
> blockread( f, buffer[ integer index starting at 0 ], desired_bytes_to_read,
> actual_bytes_readed );
>
> if you don't want to redefine the type of "buffer" you can type-cast it when
> calling blockread
> i.e: pByte( buffer ) [ index ]
OK, thanks, I'll try that.
> anyway I do
On Wednesday 19 March 2003 16:39, you wrote:
> Anton Tichawa wrote:
> > Well, safety is still important. You should use the returned count in
> > your procedure to be on the safe soide. The end might come sooner than
> > expected.
>
> Right now I terminate the program if all data can not be read i
- Original Message -
From: "Preben Mikael Bohn" <[EMAIL PROTECTED]>
> Right now I terminate the program if all data can not be read in one go
and I
> have not have any problems with it. However you are completely right that
I
> should use the returned count, the problem is that I don't know
Anton Tichawa wrote:
> Well, safety is still important. You should use the returned count in your
> procedure to be on the safe soide. The end might come sooner than expected.
Right now I terminate the program if all data can not be read in one go and I
have not have any problems with it. However
Hello, Preben!
Safety First!
On Wednesday 19 March 2003 16:04, you wrote:
> Anton Tichawa wrote:
> > There are several other things too in this old procedure, that might
> > still cause errors or need optimization. If you want, I'll write a small
> > procedure that does the same, andor r
Anton Tichawa wrote:
> There are several other things too in this old procedure, that might still
> cause errors or need optimization. If you want, I'll write a small procedure
> that does the same, andor rewrite your procedure for comparison. That'd be
> for God's Sake, I don't need no money or
Here's a program I wrote some time ago (it's been tested with with
win32,go32v2 & linux) to help you to analyse the map file - I didn't find it
easy! And a readme...
HTH
John
-Original Message-
From: Peter Vreman [mailto:[EMAIL PROTECTED]
Sent: Wednesday, March 19, 2003 09:27
To: [EM
Hello, Preben!
There are several other things too in this old procedure, that might still
cause errors or need optimization. If you want, I'll write a small procedure
that does the same, andor rewrite your procedure for comparison. That'd be
for God's Sake, I don't need no money or any other th
Hello!
At first glance I saw several possible errors that might make the program
crash. The until-condition contains "= 0" and should possibly read "<= 0";
and your first storage has index 1, which should possibly read 0 instead of 1.
--
"Adas Methode war, wie sich zeigen wird, Tagträ
Hi all, I'm trying to use blockread/write to speed up a very inefficient unit
I wrote some time ago.
>From the documentation (
http://www.freepascal.org/docs-html/ref/refsu75.html#x159-16500013.3 ) it does
not seem that I can be sure that "Count" records are read using blockread.
Since my data shou
> Hi again -
>
> another question; what is the best way to "fail" a constructor call? For
> example, I have a constructor "timage.loadimage()", and I want it to
> return
> "nil" if it encounters a problem (e.g. the file name doesn't exist). My
Use fail :-)
__
> Hi all -
>
> Is there anyway I can tell exactly which procedures/functions/methods etc.
> are being discarded when I build an EXE with smartlinking (Win32 or
> DOS)???
> I'm not concerned that it is doing anything wrong (I've never had a
> problem
> with it at all) but I would just like to see ho
Hi again -
another question; what is the best way to "fail" a constructor call? For
example, I have a constructor "timage.loadimage()", and I want it to return
"nil" if it encounters a problem (e.g. the file name doesn't exist). My
example program is this:
type
mytestclass= class
bo
Hi all -
Is there anyway I can tell exactly which procedures/functions/methods etc.
are being discarded when I build an EXE with smartlinking (Win32 or DOS)???
I'm not concerned that it is doing anything wrong (I've never had a problem
with it at all) but I would just like to see how much of my un
19 matches
Mail list logo