Groups | Search | Server Info | Login | Register
Groups > comp.lang.pascal.delphi.misc > #719
| From | Hans-Peter Diettrich <DrDiettrich1@aol.com> |
|---|---|
| Newsgroups | comp.lang.pascal.delphi.misc |
| Subject | Re: Delphi D4: using pointers to transfer data from COMM queue to circular queue |
| Date | 2016-08-19 12:34 +0200 |
| Message-ID | <e1o5muFhoooU3@mid.individual.net> (permalink) |
| References | <np68cv$irr$1@dont-email.me> <np6e6g$37h$1@dont-email.me> <np6gql$aqq$1@dont-email.me> |
P E Schoen schrieb: > In the previous procedure for SerialNG, I did this: > > var > RecdPtr: PChar; > begin > RecdPtr := CommSerialPort.ReadNextCluster( NCSize, RdErrors ); > ... > FreeMem( RecdPtr, NCSize ); // Added 4/8/09 > end; > ======================================================== > > I don't know if that was a problem or not. It seems that I might need to > reserve memory for the PChar before using it? Various implementations of ReadNextCluster are possible. It may be required or forbidden to free the memory of the returned pointer. DoDi
Back to comp.lang.pascal.delphi.misc | Previous | Next — Previous in thread | Next in thread | Find similar
Delphi D4: using pointers to transfer data from COMM queue to circular queue "P E Schoen" <paul@pstech-inc.com> - 2016-08-19 02:19 -0400
Re: Delphi D4: using pointers to transfer data from COMM queue to circular queue "P E Schoen" <paul@pstech-inc.com> - 2016-08-19 03:58 -0400
Re: Delphi D4: using pointers to transfer data from COMM queue to circular queue "P E Schoen" <paul@pstech-inc.com> - 2016-08-19 04:42 -0400
Re: Delphi D4: using pointers to transfer data from COMM queue to circular queue Hans-Peter Diettrich <DrDiettrich1@aol.com> - 2016-08-19 12:34 +0200
Re: Delphi D4: using pointers to transfer data from COMM queue to circular queue Hans-Peter Diettrich <DrDiettrich1@aol.com> - 2016-08-19 12:30 +0200
Re: Delphi D4: using pointers to transfer data from COMM queue to circular queue "P E Schoen" <paul@pstech-inc.com> - 2016-08-19 20:54 -0400
Re: Delphi D4: using pointers to transfer data from COMM queue to circular queue Hans-Peter Diettrich <DrDiettrich1@aol.com> - 2016-08-20 12:43 +0200
Re: Delphi D4: using pointers to transfer data from COMM queue to circular queue "P E Schoen" <paul@pstech-inc.com> - 2016-08-20 19:15 -0400
Re: Delphi D4: using pointers to transfer data from COMM queue to circular queue Hans-Peter Diettrich <DrDiettrich1@aol.com> - 2016-08-21 12:50 +0200
Re: Delphi D4: using pointers to transfer data from COMM queue to circular queue "P E Schoen" <paul@pstech-inc.com> - 2016-08-22 07:12 -0400
Re: Delphi D4: using pointers to transfer data from COMM queue to circular queue Hans-Peter Diettrich <DrDiettrich1@aol.com> - 2016-08-19 12:27 +0200
csiph-web