Re: [fpc-pascal] Comedi hardware support

2010-03-31 Thread Roland Schaefer
Hello, Hartmut Eilers skrev: > Hi everybody, > > I want to support the comedi hardware lib to access > I/O hardware from my project OpenMSR. > ( http://www.comedi.org ) > I googled for anything regards that but had no success. > So I decided to write a unit which interfaces to the c library. > >

Re: [fpc-pascal] Comedi hardware support

2010-03-31 Thread Alberto Narduzzi
Hi, But I have really no idea how to translate the c headerfile with its structures to freepascal. Is there anybody out who can help me to translate the header file into a unit ? Can you pass over the .h file? Maybe I can help. Please, check the rules of the ML, as I can't tell you for sure y

[fpc-pascal] Comedi hardware support

2010-03-31 Thread Hartmut Eilers
Hi everybody, I want to support the comedi hardware lib to access I/O hardware from my project OpenMSR. ( http://www.comedi.org ) I googled for anything regards that but had no success. So I decided to write a unit which interfaces to the c library. But I have really no idea how to translate the

Re: [fpc-pascal] More memory leaks and other problems: request for review of probably stupid mistake

2010-03-31 Thread Jim
On 31-3-2010 20:47, Flávio Etrusco wrote: >> If you still want to use records, before the Dispose(APResultRecord) >> set the ansistring fields to '', this will garantee that the reference >> is freed. >> >> > Or call Finalize() on them. > > Flávio > Thanks José & Flávio, Sounds like a good

Re: [fpc-pascal] More memory leaks and other problems: request for review of probably stupid mistake

2010-03-31 Thread Flávio Etrusco
> > If you still want to use records, before the Dispose(APResultRecord) > set the ansistring fields to '', this will garantee that the reference > is freed. > Or call Finalize() on them. Flávio ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.or

Re: [fpc-pascal] More memory leaks and other problems: request for review of probably stupid mistake

2010-03-31 Thread José Mejuto
Hello FPC-Pascal, Wednesday, March 31, 2010, 7:52:43 PM, you wrote: J> I'm trying to learn FreePascal by writing a file indexer a la locate and J> I'm hitting more walls after receiving quick and clear help from Michael J> Van Canneyt regarding memory leaks. [...] J> Call trace for block $00

[fpc-pascal] More memory leaks and other problems: request for review of probably stupid mistake

2010-03-31 Thread Jim
Hi all, I'm trying to learn FreePascal by writing a file indexer a la locate and I'm hitting more walls after receiving quick and clear help from Michael Van Canneyt regarding memory leaks. In the last couple of hours I've seen memory leaks cropping up in the main LPR file, invalid pointer probl

Re: [fpc-pascal] Cmpxchg

2010-03-31 Thread Werner Van Belle
Jonas Maebe wrote: > > On 31 Mar 2010, at 16:13, Werner Van Belle wrote: > >> I have been browsing the web somewhat to figure out how I can have >> access to a cmpxchg function in freepascal. At the momente I found very >> little information. Some references on people arguing that this is >> unnece

Re: [fpc-pascal] Cmpxchg

2010-03-31 Thread Jonas Maebe
On 31 Mar 2010, at 16:13, Werner Van Belle wrote: I have been browsing the web somewhat to figure out how I can have access to a cmpxchg function in freepascal. At the momente I found very little information. Some references on people arguing that this is unnecessary. Others that it takes to

[fpc-pascal] Cmpxchg

2010-03-31 Thread Werner Van Belle
Hello, I have been browsing the web somewhat to figure out how I can have access to a cmpxchg function in freepascal. At the momente I found very little information. Some references on people arguing that this is unnecessary. Others that it takes too much time etcetera. In any case: I _really_ wan