[mailto:delphi-boun...@listserver.123.net.nz] On Behalf Of Ross Levis
Sent: Monday, September 05, 2011 7:30 PM
To: 'NZ Borland Developers Group - Delphi List'
Subject: [DUG] UPnP port forwarding
I'm increasingly being asked for help from my users for configuring port
forwarding in their routers
...@listserver.123.net.nz
[mailto:delphi-boun...@listserver.123.net.nz] On Behalf Of Ross Levis
Sent: Monday, September 05, 2011 7:30 PM
To: 'NZ Borland Developers Group - Delphi List'
Subject: [DUG] UPnP port forwarding
I'm increasingly being asked for help from my users for configuring port
___
RD Manager
ORCL Toolbox LLP, Japan
http://www.orcl-toolbox.com http://www.orcl-toolbox.com/
From: delphi-boun...@listserver.123.net.nz
[mailto:delphi-boun...@listserver.123.net.nz] On Behalf Of Ross Levis
Sent: Tuesday, September 06, 2011 9:00 PM
To: 'NZ Borland Developers
:
johnkb...@paradise.net.nz
jbc...@xtra.co.nz
(027 4844528)
http://www.jbcl.co.nz
http://jbclnz.googlepages.com
From: Ross Levis mailto:r...@stationplaylist.com
Sent: Thursday, September 15, 2011 2:32 AM
To: 'NZ Borland Developers Group - Delphi List'
mailto:del...@delphi.org.nz
Subject
I am I right to assume the current Win32 API will still be included in all
desktop and server operating systems? There must be several million apps
written for Win32 that they couldn’t just pull the plug on, surely. Nobody
would upgrade to Windows 8 if it didn’t support all their existing
Similarly I use the free Microsoft SyncToy in Contribute mode and Windows
Task Manager to run it once a day.
Ross.
-Original Message-
From: delphi-boun...@listserver.123.net.nz
[mailto:delphi-boun...@listserver.123.net.nz] On Behalf Of Marshland
Engineering
Sent: Sunday, 11 December
Are you creating these files in the same folder as you are reading through?
Ross.
-Original Message-
From: delphi-boun...@listserver.123.net.nz
[mailto:delphi-boun...@listserver.123.net.nz] On Behalf Of David Moorhouse
Sent: Friday, 13 April 2012 12:14 a.m.
To:
Perhaps someone can offer some clues to the problem. A user is experiencing
a hang during a Sleep(5) function! It's Win7 64-bit Hyperthreaded Intel 4
core CPU.
With MadExcept, it is showing the following.
exception message : The application seems to be frozen.
main thread ($9f4):
- Delphi List
Subject: Re: [DUG] Hang during Sleep
Ross Levis r...@stationplaylist.com wrote:
Hi Pieter
Bugreport.txt is attached.
It is a media player, and there are short pauses in some areas, such as to wait
for the player process to come back from executing a command before executing
Application.ProcessMessages back. I’ll give that a go.
Cheers.
From: Ross Levis [mailto:r...@stationplaylist.com]
Sent: Tuesday, 15 May 2012 3:02 p.m.
To: 'NZ Borland Developers Group - Delphi List'
Subject: RE: [DUG] Hang during Sleep
I was using ProcessMessages in the sleep loop
Anyone know the Win32MajorVersion, Win32MinorVersion for Windows 8?
Cheers.
___
NZ Borland Developers Group - Delphi mailing list
Post: delphi@listserver.123.net.nz
Admin: http://delphi.org.nz/mailman/listinfo/delphi
Unsubscribe: send an email to
I'm adding a small amount of Unicode support in my D7 app to enable opening
files where the filenames are in foreign languages. Currently my app can't
even open these files. I've installed an OpenFile dialog which provides
WideString results.
One thing I need is to resolve shortcuts. I have
be TWin32FindDataW. I take it this is a
bug, and I'll define my own one.
Ross.
From: delphi-boun...@listserver.123.net.nz
[mailto:delphi-boun...@listserver.123.net.nz] On Behalf Of Ross Levis
Sent: Tuesday, 2 October 2012 10:58 p.m.
To: 'NZ Borland Developers Group - Delphi List'
Subject: Re
, Japan
http://www.orcl-toolbox.com/ http://www.orcl-toolbox.com
From: delphi-boun...@listserver.123.net.nz
[mailto:delphi-boun...@listserver.123.net.nz] On Behalf Of Ross Levis
Sent: Tuesday, October 02, 2012 7:25 PM
To: 'NZ Borland Developers Group - Delphi List'
Subject: Re: [DUG] Unicode
Another Unicode question (D7).
var: Folder: WideString;
…
Folder := WideIncludeTrailingBackslash(Folder);
WideFindFirst(Folder+'*',faReadOnly…);
Will the compiler convert the ‘*’ to the Unicode equivalent? Or should I do
Folder+WideString('*')?
Cheers.
Personally I would use a TFileStream and FS.Read(S,1) one AnsiChar at a
time, concatenating into an AnsiString if you want the info until you have
'[End]'#13#10 in the string.
This will have the file pointer at the start of the binary data where you
can then FS.Read(MyDWORD,4) or MyByte,1 etc.
What would be the easiest method to get some shortcuts that are defined in
an Actionlist on the mainform to work when another form has the focus?
I have code to set the ShortCut number in the Actionlist based on user
settings.
I believe I can use TApplication.OnShortCut and manually check
...@listserver.123.net.nz] On Behalf Of Ross Levis
Sent: Monday, 4 February 2013 11:13 p.m.
To: 'NZ Borland Developers Group - Delphi List'
Subject: Re: [DUG] Mainform ActionList keyboard shortcuts from other forms
I have noticed you can assign event properties in another form to an action
] On Behalf Of Ross Levis
Sent: Tuesday, February 26, 2013 1:29 PM
To: 'NZ Borland Developers Group - Delphi List'
Subject: [DUG] Translate diacritic characters to ASCII
Anyone know if there is a windows function or method to convert diacritic
characters to their similar ASCII counterpart
to my app via
Indy10 TCPServer. Something is causing the + character to be replaced, either
in the PHP script or Indy. Some more investigation required.
From: Ross Levis [mailto:r...@stationplaylist.com]
Sent: Tuesday, 26 February 2013 7:00 p.m.
To: 'NZ Borland Developers Group - Delphi List
Wondering if anyone has any ideas.
I've had this problem a long time from when I started writing an app about 7
or 8 years ago, but it happens so rarely it's not usually an issue. But one
user in particularly is regularly sending me MadExcept reports which either
have access violation errors
violation is an index based one because
of the list count change)
On Tue, Apr 9, 2013 at 10:21 PM, Ross Levis r...@stationplaylist.com
wrote:
Wondering if anyone has any ideas.
I've had this problem a long time from when I started writing an app about 7
or 8 years ago, but it happens so
if that procedure call is a user
initiated one.
if that is the case.. its extremely simple to test this with remote desktop
and some logging of the construction/destruction of the list items.
On Tue, Apr 9, 2013 at 11:29 PM, Ross Levis r...@stationplaylist.com
wrote:
I've had someone suggest
9, 2013 at 11:58 PM, Ross Levis r...@stationplaylist.com
wrote:
It isn't a user initiated procedure. It's a broadcast media player in
automation mode and each track is a listitem. Items can be dropped off the
top and more added to the bottom as it plays automated.
There is a TTimer which
[mailto:delphi-boun...@listserver.123.net.nz] On Behalf Of Ross Levis
Sent: Wednesday, 10 April 2013 2:38 a.m.
To: 'NZ Borland Developers Group - Delphi List'
Subject: Re: [DUG] TListitems disappearing and reappearing causing access
violations
I guess I am. It makes the most sense. I'll have to try a test
the help about virtual list views and the OnData event.
Regards,
Bevan
On 11/04/2013 3:52 p.m., Ross Levis wrote:
Yes I realize that, but I didn't know that was possible with TListItems
which the VCL manages for you. I need to know what situations will cause
that. I really need access to all
a problem in the OnData procedure.
Ross.
From: Ross Levis [mailto:r...@stationplaylist.com]
Sent: Friday, 12 April 2013 12:09 a.m.
To: 'NZ Borland Developers Group - Delphi List'
Subject: RE: [DUG] TListitems disappearing and reappearing causing access
violations
It's only a little
var
a: pChar;
b: pChar;
begin
a := 'abcdefghi';
b := 'jklmnopqr';
StrCopy(a,b);
end;
Question: Why does this code crash?
___
NZ Borland Developers Group - Delphi mailing list
Post: delphi@listserver.123.net.nz
Admin:
, use the StrLCopy
http://docs.embarcadero.com/products/rad_studio/delphiAndcpp2009/HelpUpdate
2/EN/html/delphivclwin32/SysUtils_StrLCopy@PAnsiChar@pansic...@cardinal.html
function.
D
On 12/05/13 14:45, Ross Levis wrote:
Doesn't really help.
a := 'abcdefghi' does allocate 9 bytes of RAM
to a results in an attempt to write to
protected memory?
Have you tried allocating 10 bytes of memory to 'a' and then using StrCopy?
Have you run the debugger and checked where the PChars 'a' and 'b' are pointing
to before StrCopy?
Original message
From: Ross Levis r
[mailto:delphi-boun...@listserver.123.net.nz] On Behalf Of Ross Levis
Sent: Sunday, 12 May 2013 5:31 PM
To: 'NZ Borland Developers Group - Delphi List'
Subject: Re: [DUG] StrCopy problem
I did see a b had a pointer address allocated. It looked like a normal
pointer address range. I’ll try allocating 10
I don't have 2 monitors here, but a user has said that they are using
monitor 2 as their main monitor. They load an app which is positioned on
monitor 2 and they click a button which loads a secondary form. This form
is set to dmActiveForm, but it appears on monitor 1. Surely the active form
is
No confirmation box. But I'll try dmMainForm to see if that makes any
difference.
From: Rohit Gupta [mailto:r.gu...@xtra.co.nz]
Sent: Saturday, 18 May 2013 6:12 PM
To: NZ Borland Developers Group - Delphi List
Cc: Ross Levis
Subject: Re: [DUG] Multiple monitors and dmActiveForm (D7)
Hi
This may be a strange request, but my Delphi app uses an old C++ DLL which I
commissioned an outside developer to write for me some time ago. I've lost
the source code and cannot get a hold of the developer to see if he has it
stored.
The only issue with it, it is opening a file in read/write
I'm using a shared memory component in 2 apps which communicate with each
other.
I use a shared memory component which uses a memory mapped file with no
actual file on the hard drive.
I seem to be having a problem with communications between the 2 apps when
the hard drive is busy. It appears
.
2. Perhaps you are low on RAM and the in memory file is actually having to
be paged to disk!
Hope that's of some use :)
Rob
On 12/06/2013 12:02 a.m., Ross Levis wrote:
I'm using a shared memory component in 2 apps which communicate with each
other.
I use a shared memory component which uses
).
Cheers
On 12/06/2013 3:01 p.m., Ross Levis wrote:
Hi Rob,
The sleep is in the separate thread, not main thread.
I'm not sure if in memory mapped files can be paged to disk but will
investigate.
Cheers,
Ross.
From: delphi-boun...@listserver.123.net.nz
[mailto:delphi-boun
I don't have a touch screen here but my app has a couple of windows that
were created with touch screens in mind. Some of my users have touch
screens to activate buttons to play pre-defined audio files.
A user today mentioned that when the 2 windows are on the screen, if a
button is touched
to focus the window at current mouse position?
Robo
On Saturday, July 6, 2013, Ross Levis r...@stationplaylist.com wrote:
I don't have a touch screen here but my app has a couple of windows that
were created with touch screens in mind. Some of my users have touch
screens to activate buttons to play
] Applicarion.ProcessMessage
On 29/10/2013 17:02, Ross Levis wrote:
I'm wondering if any experts out there can help with this issue.
I'm loading a 3rd party DLL which needs to have Windows messages sent to the
DLL from my app for navigation purposes. It has been 10 years since I
implemented this code which
care to be thread-safe itself (unless you have the
source and can verify otherwise) so the results could be unpredictable.
--
Jolyon Smith
On Tuesday, 29 October 2013 at 17:02 , Ross Levis wrote:
I’m wondering if any experts out there can help with this issue.
I’m loading a 3rd party
the
message that triggers the DLL processing has been dispatched. As soon as that
message is processed, causing the DLL to go off and do it’s thing, your VCL
thread is already committed to servicing that DLL.
--
Jolyon Smith
On Tuesday, 29 October 2013 at 19:54 , Ross Levis wrote:
It’s
Except that I can disable the ProcessMessage code and the DLL still functions
correctly. It was added only to resolve the component focus issue. Without it
you couldn’t see which component on the GUI had the focus when tabbing. So I
think it may be the DLL simply occupying the main thread
I've got a strange error occurring for just one user where this procedure is
failing...
procedure TCustomDetails.SetModified(Modify: Boolean);
begin
FModified := Modify;
if Modify then
begin
if Self is TCategoryDetails then MainForm.CategoryChanged := True
else
...@stationplaylist.com Ross Levis
Thu, 14 Nov 2013 15:51
I've got a strange error occurring for just one user where this procedure is
failing...
procedure TCustomDetails.SetModified(Modify: Boolean);
begin
FModified := Modify;
if Modify then
begin
if Self is TCategoryDetails
I use D7 and because my app can start minimized to the system tray/notification
area with no OnFormShow firing, I got around the issue by changing the project
file ...
Application.CreateForm(...
if StudioForm.Initialise then added
Application.Run
My Initialise procedure has everything
I think you should be using OnSelectItem and only act when Selected = True.
From: delphi-boun...@listserver.123.net.nz
[mailto:delphi-boun...@listserver.123.net.nz] On Behalf Of Eric A
Sent: Monday, 28 July 2014 6:52 a.m.
To: Delphi ListServer
Subject: Re: [DUG] ListView - Scroll Event
I’m the opposite and use listviews for everything that has columns, virtual and
non-virtual modes. Except I did decide to use a StringGrid for viewing a CSV
log file. Windows uses a listview for viewing files in a folder. You have the
option of easily changing from Details, List, Small Icons
Would I be correct that int64 multiplications would be faster than floating
point in Delphi? My app needs to do several million.
___
NZ Borland Developers Group - Delphi mailing list
Post: delphi@listserver.123.net.nz
Admin:
be indicative of performance on the ARM or
LLVM platforms.
Conditions:
- Delphi XE4
- Running in a 64-bit Win 7 VM
- No testing was done for correctness of the results.
On 16 August 2014 15:30, Ross Levis r...@stationplaylist.com wrote:
Would I be correct that int64 multiplications would
I take it from no price advertised on their website that it's expensive?
-Original Message-
From: delphi-boun...@listserver.123.net.nz
[mailto:delphi-boun...@listserver.123.net.nz] On Behalf Of Steve Peacocke
Sent: Monday, 8 September 2014 4:48 p.m.
To: NZ Borland Developers Group -
Web Builder
It's under Orders from the EWB details page, sorry I was walking home
couldn't check.
http://www.elevatesoft.com/products?action=ordercategory=ewbtype=web
$299. Quite reasonable.
Steve Peacocke
+64 220 612-611
On 8/09/2014, at 5:25 pm, Ross Levis r...@stationplaylist.com wrote
I hope someone can help. I'm using the freeware TNT controls with D7 for a
TTntListView component. This is working fine for many users but one user
experiences a crash when simply using the keyboard to move up and down the
listview. He is using Win8 64-bit as I do here, but I can't duplicate
You also need OpenSSL installed of course.
From: delphi-boun...@listserver.123.net.nz
[mailto:delphi-boun...@listserver.123.net.nz] On Behalf Of Ross Levis
Sent: Monday, 26 January 2015 6:34 p.m.
To: 'NZ Borland Developers Group - Delphi List'
Subject: Re: [DUG] XE7 and Indy FTPs
I have
Note that using WINE with CrossOver is just $60 USD. You would need to
purchase a Windows O/S for a VM.
-Original Message-
From: delphi-boun...@listserver.123.net.nz
[mailto:delphi-boun...@listserver.123.net.nz] On Behalf Of Marshland
Engineering
Sent: Wednesday, 25 March 2015 1:18 p.m.
I use dxGetText (which uses the popular gnuGetText) and have done so for
many years. It is free but I remember some questions I had were quickly
sorted out on the forum.
It's quite simple to integrate and I would recommend it.
Ross.
-Original Message-
From:
.net.nz
[mailto:delphi-boun...@listserver.123.net.nz] On Behalf Of Ross Levis
Sent: Tuesday, 31 March 2015 3:43 p.m.
To: 'NZ Borland Developers Group - Delphi List'
Subject: Re: [DUG] Internationalisation
I use dxGetText (which uses the popular gnuGetText) and have done so for
many years. It is free
Another option is WINE for Mac OS. It is open source and free but too complex
to install for the average user. The easiest solution is a commercial build of
WINE by www.codeweavers.com called CrossOver for Mac OS at $60 USD. CrossOver
runs Win32 apps natively on a Mac without a Windows
I believe it implements all Windows XP functions, not Windows 7.
I was wrong, it does support Windows 7 and 8 function calls.
From: delphi-boun...@listserver.123.net.nz
[mailto:delphi-boun...@listserver.123.net.nz] On Behalf Of Ross Levis
Sent: Monday, 23 March 2015 3:11 p.m.
To: 'NZ
p.m., Ross Levis wrote:
I'm not really expecting a solution, but is there any method in Windows to
map a temporary or permanent IPv4 IP to a server that only has an IPv6 IP?
I'm using an old 3rd party DLL which connects to a URL for a specific
purpose, but it only supports IPv4
I'm not really expecting a solution, but is there any method in Windows to
map a temporary or permanent IPv4 IP to a server that only has an IPv6 IP?
I'm using an old 3rd party DLL which connects to a URL for a specific
purpose, but it only supports IPv4.
I realize that and rely on that but it’s not working. Although the coloured
background is being replaced with a white background when it’s displayed, so
some transparency is happening somewhere.
From: delphi-boun...@listserver.123.net.nz
[mailto:delphi-boun...@listserver.123.net.nz] On
the ImageList to draw the requested image directly onto the canvas
of the specified bitmap, bypassing the setter behaviour in the speedbutton. if
this is what is mangling the transparency then this may solve your problem.
hth
On 30 October 2015 at 15:51, Ross Levis <r...@stationplaylist.
My automation app loads 1 of perhaps 30 different 3rd party DLL's depending
on the job required. It only has to do 1 job at a time and if the job
changes (automatically), the current DLL is unloaded and the relevant one is
loaded using LoadLibrary. All the DLL's have the same
and it eliminates any question about
(or possible future variance in) the module loading behaviour of the OS or any
problems arising as a result of your "loader" application failing to have
loaded at/by the required or expected time etc.
--
Jolyon
On 22 September 2015 at 1
ll
the work is neatly encapsulated within the DLLManager object.
Add some cleanup code to FreeLibrary() all entries in the fLoaded array when
the app closes and job done: a clean, reliable solution applied directly where
the problem lies. :)
hth
--
Jolyon
On 22 September 2015 at
ng I am?
Steve Peacocke
+64 220 612-611
On 8/06/2016, at 4:56 PM, Ross Levis <r...@stationplaylist.com> wrote:
I'm wondering which is more efficient to process...
if (a=1) or (a=2) then ...
or
if a in [1,2] then ...
If the answer is the first method, does it make a di
I also often use Integers like RadioButton.ItemIndex in [3,5]. If this was
terribly inefficient I would want to change it to 2 separate tests.
From: Ross Levis [mailto:r...@stationplaylist.com]
Sent: Thursday, 9 June 2016 12:00 a.m.
To: 'NZ Borland Developers Group - Delphi List'
Subject: RE
Turbo Pascal produces 16-bit apps.
http://turbo51.com/turbo-pascal-download
-Original Message-
From: delphi-boun...@listserver.123.net.nz
[mailto:delphi-boun...@listserver.123.net.nz] On Behalf Of John Bird
Sent: Thursday, 25 February 2016 4:48 p.m.
To: NZ Borland Developers Group -
I need to offer a clock adjustment of + or - up to 24 hours with minutes and
seconds available. I'm using Delphi 7. What would be the best component to
use for this purpose. A TDateTimePicker would work for positive times but
not negative times.
I suppose a separate Add or Subtract option
Can anyone provide the definition for accessing this Windows function. It
doesn't exist in Windows.pas in Delphi 7. I guess it's in kernel32.dll.
There seems to be some issue with my app inheriting a "Low" I/O priority
after a recent Windows 10 update and causing lots of issues with my
ty newPrio)
{
IntPtr ioPrio = (IntPtr) newPrio;
int lret= NtSetInformationProcess(hProcess,
PROCESS_INFORMATION_CLASS.ProcessIoPriority, ref ioPrio, 4);
return lret;
}
ProcessIOPriority is a constant with the value 21.
Many thanks,
Ross.
From: Ross Levis
I suggest store in UTC, like Windows does for file timestamps, and use
Windows functions like GetTimeZoneInformation and
SystemTimeToTzSpecificLocalTime to convert to locale time for
display/printing purposes. A timezone database shouldnt be required.
From:
With a 32-bit compiler you need the 32-bit editions of OpenSSL DLLs installed.
They usually go to Windows\System32. I instruct my users to download the Light
edition on this website.
http://slproweb.com/products/Win32OpenSSL.html
Ross.
From: delphi-boun...@listserver.123.net.nz
);
SSLHandler.SSLOptions.Method := sslvSSLv23;
aHTTP.IOHandler := SSLHandler;
end;
try
Ret := aHTTP.Get(URL);
Success := True
except
Success := False
end;
For a specific code I think you may access aHTTP.LastCmdResult.Code.
Ross.
From: Ross Levis [mailto:r...@stationplaylist.com]
Sent
I need clarification if a thread accessing a TLabel.Caption would require a
Synchronize. I can understand that updating a VCL property in a thread
would require this but I'm thinking that just reading it shouldn't cause any
issues if the caption is not ever changing. Am I correct?
I see, I thought there may be a way to trick it, but never mind. Thanks
anyway.
From: Stefan Mueller [mailto:muell...@orcl-toolbox.com]
Sent: Sunday, 5 November 2017 3:25 p.m.
To: 'NZ Borland Developers Group - Delphi List'
Cc: 'Ross Levis'
Subject: RE: [DUG] Pointers help
Ross
in RAM so not saving anything.
Ross.
From: Stefan Mueller [mailto:muell...@orcl-toolbox.com]
Sent: Sunday, 5 November 2017 4:13 p.m.
To: 'NZ Borland Developers Group - Delphi List'
Cc: 'Ross Levis'
Subject: RE: [DUG] Pointers help
Just noticed this one here:
>>There is a IOHandler
I'm writing data to an Indy IOHandler by moving the data from a
TMemoryStream.Memory to a TIDBytes (array of byte) before writing it as I
cannot find how to do it otherwise.
This works...
AudioMS: TMemoryStream;
Buffer: TIdBytes; // array of byte
MemPos: PByte;
MemPos :=
I see Site5.com uses Comodo for their own website so they probably don’t use
Let’s Encrypt for their customers. I don’t think a green bar certificate is
possible using Lets Encrypt.
I implemented Let’s Encrypt for our own dedicated Windows Server (IIS website)
just last week and it works
> I have the latest version if the open ssl dlls in with the app.
This could be the issue. Indy only supports OpenSSL v1.0.x, not 1.1.x. Also
ensure you are using the Win32 DLLs if you are compiling your app with the
32-bit compiler.
32-bit
81 matches
Mail list logo