[DUG] Access Violation

2011-08-14 Thread Marshland Engineering
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 
00F2 

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
___
NZ Borland Developers Group - Delphi mailing list
Post: delphi@delphi.org.nz
Admin: http://delphi.org.nz/mailman/listinfo/delphi
Unsubscribe: send an email to delphi-requ...@delphi.org.nz with Subject: 
unsubscribe

Re: [DUG] Access Violation

2011-08-14 Thread Paul Lowman
Wallace

I am not sure what SerialPortNG does exactly (are you using it as a 
sniffer?) but maybe you could look at an alternative such as AsyncPro 
(was Turbopower but now open source) or Async32 (TMSsoftware - costs) or 
TComport (free). I have used all these at some time or other with no issues.

Paul Lowman
___
NZ Borland Developers Group - Delphi mailing list
Post: delphi@delphi.org.nz
Admin: http://delphi.org.nz/mailman/listinfo/delphi
Unsubscribe: send an email to delphi-requ...@delphi.org.nz with Subject: 
unsubscribe


Re: [DUG] Access Violation

2011-08-14 Thread Jeremy Coulter
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-boun...@delphi.org.nz [mailto:delphi-boun...@delphi.org.nz] On
Behalf Of Marshland Engineering
Sent: Sunday, 14 August 2011 21:57
To: delphi@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
00F2 

 

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

 

___
NZ Borland Developers Group - Delphi mailing list
Post: delphi@delphi.org.nz
Admin: http://delphi.org.nz/mailman/listinfo/delphi
Unsubscribe: send an email to delphi-requ...@delphi.org.nz with Subject: 
unsubscribe

[DUG]: Access Violation - Help please.

2000-10-26 Thread David O'Brien

OK, getting really sick of this now... (Happens multiple times a day)

Error
Access violation at address 0D34C6FE in module 'bordbk50.dll'. Read of
address 001D8000.
(the numbers may differ)

This occurs when running any app from D5.01 at random. Occurs on Win2000 Pro
and Windows ME. 

Afterwards, I cannot close the app (which is not responding), trying to
force it closed causes D5 to say: "This program cannot be closed. If it is
being debugged, please resume it or close the debugger first."

I then have to KILL D5 to get out of it.

Any ideas please

Dave.
---
New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED]
  Website: http://www.delphi.org.nz
To UnSub, send email to: [EMAIL PROTECTED] 
with body of "unsubscribe delphi"



RE: [DUG]: Access Violation - Help please.

2000-10-26 Thread Myles Penlington

I found a major cause of this problem was the debug options.
Make sure you do not have "windows messages" checked for the event log
window.
Once I cleared this the problem went away.
Myles.


-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Friday, October 27, 2000 11:25 AM
To: Multiple recipients of list delphi
Subject: Re: [DUG]: Access Violation - Help please.




This happened to me a while back.  I virtually couldn't debug because every
time I tried I would get
AV's in bordbk50.dll.  A reinstall has fixed my problem.  I was using NT 4.

You may want to just check third party packages you are using also.

JED

OK, getting really sick of this now... (Happens multiple times a day)

Error
Access violation at address 0D34C6FE in module 'bordbk50.dll'. Read of
address 001D8000.
(the numbers may differ)


---
New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED]
  Website: http://www.delphi.org.nz
To UnSub, send email to: [EMAIL PROTECTED] 
with body of "unsubscribe delphi"
---
New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED]
  Website: http://www.delphi.org.nz
To UnSub, send email to: [EMAIL PROTECTED] 
with body of "unsubscribe delphi"



RE: [DUG]: Access Violation - Help please.

2000-10-26 Thread David O'Brien

Thanks, the windows messages check box seems to have done the trick.

Cheers,
Dave.

-Original Message-
From: Myles Penlington [mailto:[EMAIL PROTECTED]]
Sent: Friday, 27 October 2000 11:31
To: Multiple recipients of list delphi
Subject: RE: [DUG]: Access Violation - Help please.


I found a major cause of this problem was the debug options.
Make sure you do not have "windows messages" checked for the event log
window.
Once I cleared this the problem went away.
Myles.


-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Friday, October 27, 2000 11:25 AM
To: Multiple recipients of list delphi
Subject: Re: [DUG]: Access Violation - Help please.




This happened to me a while back.  I virtually couldn't debug because every
time I tried I would get
AV's in bordbk50.dll.  A reinstall has fixed my problem.  I was using NT 4.

You may want to just check third party packages you are using also.

JED

OK, getting really sick of this now... (Happens multiple times a day)

Error
Access violation at address 0D34C6FE in module 'bordbk50.dll'. Read of
address 001D8000.
(the numbers may differ)


---
New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED]
  Website: http://www.delphi.org.nz
To UnSub, send email to: [EMAIL PROTECTED] 
with body of "unsubscribe delphi"
---
New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED]
  Website: http://www.delphi.org.nz
To UnSub, send email to: [EMAIL PROTECTED] 
with body of "unsubscribe delphi"
---
New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED]
  Website: http://www.delphi.org.nz
To UnSub, send email to: [EMAIL PROTECTED] 
with body of "unsubscribe delphi"



[DUG]: ACCESS VIOLATION

1999-09-06 Thread Darren J Gilbertson

Help!

Whenever I attempt to create a new form I get the following error:

Access violation at address 40053F57 in module VCL40.BPL.  Read of Address


I have rebooted but it still appears.  How can I fix this?


Darren Gilbertson

---
New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED]
  Website: http://www.delphi.org.nz



Re: [DUG]: ACCESS VIOLATION

1999-09-06 Thread Aaron Scott-Boddendijk

 Whenever I attempt to create a new form I get the following error:
 Access violation at address 40053F57 in module VCL40.BPL.  Read of Address
 
 
 I have rebooted but it still appears.  How can I fix this?

I'm assuming that all three patches are installed on Delphi as these
fixed a healthy number of these less than desirable surprises...

One possiblity is the structure of the DPR code if altered in particular ways
(mostly around nesting in tr blocks and with clauses) seemed to cause problems
when the IDE manipulated the DPR (which I wish it didn't)... The patches all seem
to have fixed these however (apart from still fiddling the DPR ;))

--
Aaron Scott-Boddendijk
Jump Productions
(07) 838-3371 Voice
(07) 838-3372 Fax


---
New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED]
  Website: http://www.delphi.org.nz



Re: [DUG]: ACCESS VIOLATION

1999-09-06 Thread Kerry Sainsbury

Uninstalling/Reinstalling Delphi might be the fastest option.

--- Darren J Gilbertson [EMAIL PROTECTED] wrote:
 Help!
 
 Whenever I attempt to create a new form I get the following error:
 
 Access violation at address 40053F57 in module VCL40.BPL.  Read of
 Address
 
 
 I have rebooted but it still appears.  How can I fix this?
 
 
 Darren Gilbertson
 

---
 New Zealand Delphi Users group - Delphi List -
 [EMAIL PROTECTED]
   Website: http://www.delphi.org.nz
 
 

___
Do You Yahoo!?
Get your free @yahoo.com.au address at http://mail.yahoo.com.au
or your free @yahoo.co.nz address at http://mail.yahoo.co.nz

---
New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED]
  Website: http://www.delphi.org.nz



RE: [DUG]: Access violation

1999-07-08 Thread Patrick Dunford

 -Original Message-
 From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On
 Behalf Of Rohit Gupta
 Sent: Friday, 9 July 1999 12:57
 To: Multiple recipients of list delphi
 Subject: Re: [DUG]: Access violation


 Willie,

 if you cant event track where it is happening, then the easiest way
 is to add try/except blocks as follows to all methods..

snip

 In fact, I think it should be done by the compiler as standard.  :-)

Yes maybe the compiler should be like the Java compiler which will not
compile unless there is a try..catch block around I/O procedures etc


Patrick Dunford, Christchurch, NZ
http://patrick.dunford.com/
http://www.trainweb.org/enzedrail/

---
New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED]
  Website: http://www.delphi.org.nz