Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Programming > Pascal Borland > Re: FreePascal ...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 4 of 7 Topic 1027 of 1118
Post > Topic >>

Re: FreePascal - FindFirst and I/O Handles Used

by Marco van de Voort <marcov@[EMAIL PROTECTED] > May 5, 2007 at 10:04 AM

On 2007-05-05, Jim Bishop <bishopjp@[EMAIL PROTECTED]
> wrote:
> Wow... thanks for pointing out the FindClose.  Works great!
>
> I'd never have found that on my own.  I wonder how many other TP->FPC 
> gotcha's I don't know about.  (Is that an unknown unknown or a known 
> unknown? to quote a famous ex US cabinet member).

While I'm not so familiar with US cabinet members, I can quickly think of
one other issue:

FPC dynamically allocates memory from the OS. This makes it dangerous to
   rely on memavail and friends, for more than indicative purposes.  The
   clearest reason for this is that the amount of free memory might change
   between check for memory and the actual allocation.

Going through c.l.p.b and c.l.p.m archives might yield some more points.

What OS target do you use? While FPC abstracts the OS and CPU reasonably
well, it is not perfect in more remote cases where the abstraction would
need to change into an emulation.
 




 7 Posts in Topic:
FreePascal - FindFirst and I/O Handles Used
Jim Bishop <bishopjp@[  2007-05-04 14:01:22 
Re: FreePascal - FindFirst and I/O Handles Used
Marco van de Voort <ma  2007-05-04 19:29:47 
Re: FreePascal - FindFirst and I/O Handles Used
Jim Bishop <bishopjp@[  2007-05-05 01:16:13 
Re: FreePascal - FindFirst and I/O Handles Used
Marco van de Voort <ma  2007-05-05 10:04:46 
Re: FreePascal - FindFirst and I/O Handles Used
Jim Bishop <bishopjp@[  2007-05-05 12:04:31 
Re: FreePascal - FindFirst and I/O Handles Used
Marco van de Voort <ma  2007-05-05 14:00:22 
Re: FreePascal - FindFirst and I/O Handles Used
Jonas Maebe <Jonas.Mae  2007-05-07 11:00:30 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Sat Jul 26 0:17:16 CDT 2008.