[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:=S

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.

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

[DUG] Detecting change in screen size

2011-08-14 Thread Laurence Bevan
Hi, I'm trying to detect a change in the client screen size on a Windows tablet. The tablet comes bundled with a toolbar application which displays along the left side of the screen which the user can hide or display by clicking in the taskbar area (not a particularly useful tool but users love it

[DUG] Serial Delphi

2011-08-14 Thread Marshland Engineering
I guess it is better to start at the beginning. I have been using SerialNG (free) for many years sending and receiving data to CNC machines. Now I'm doing something different and things just don't work the same. I'm sending 3 bytes of data from a micro. If I send data every 500 ms, I get a