Groups | Search | Server Info | Login | Register
Groups > comp.lang.pascal.delphi.misc > #719
| Path | csiph.com!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail |
|---|---|
| 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 | Fri, 19 Aug 2016 12:34:55 +0200 |
| Lines | 20 |
| 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> |
| Mime-Version | 1.0 |
| Content-Type | text/plain; charset=ISO-8859-1; format=flowed |
| Content-Transfer-Encoding | 7bit |
| X-Trace | individual.net baFKmkYYy+2IcfCk5pn5ZgPvaQv5miwqp0PfTSGB+AT1ZX8vR6 |
| Cancel-Lock | sha1:djrAgCNmdKPh85LmjtIpEHZRbqA= |
| User-Agent | Thunderbird 2.0.0.21 (Windows/20090302) |
| In-Reply-To | <np6gql$aqq$1@dont-email.me> |
| Xref | csiph.com comp.lang.pascal.delphi.misc:719 |
Show key headers only | View raw
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