[DUG] Access Violation
Jeremy Coulter
jscoulter at gmail.com
Mon Aug 15 12:39:26 NZST 2011
One thought, maybe do something like:
If length(sRaw) >0 then
for i:=1 to length(sRaw) do
try iData[i]:= byte(sRaw[i])
except
end;
This will only do the for loop if sRaw is not empty. Just a thought.
I do agree with Paul, Async Pro is very good. I have used it for YEARS and
its very reliable.
If you want to try it out, its on sourceforge now. We actually bought them
before they went open source L
Jeremy
From: delphi-bounces at delphi.org.nz [mailto:delphi-bounces at delphi.org.nz] On
Behalf Of Marshland Engineering
Sent: Sunday, 14 August 2011 21:57
To: delphi at delphi.org.nz
Subject: [DUG] Access Violation
Not sure where to go with this.
I'm sending 3 bytes of data at 38400 baud every 500 ms. If I speed up the
rate to every 250 ms I get
Access Violation at address 004934CA in Mmodule Dyno.exe' Write address
000000F2
Code
if SerialPortNG.NextClusterSize >= 0 then begin
sRaw:=SerialPortNG.ReadNextClusterAsString;
for i:=1 to length(sRaw) do
try iData[i]:= byte(sRaw[i])
except
end;
I don't know what I'm looking for.
Thanks Wallace
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://listserver.123.net.nz/pipermail/delphi/attachments/20110815/bcf918ce/attachment.html
More information about the Delphi
mailing list