RE: [DUG]: Freeing exceptions?

2003-11-16 Thread Conor.Boyd
Title: Message You are correct.   Can you tell us why you would want to create an exception object without raising it though?   Cheers,   C. -Original Message-From: Allan, Samuel [mailto:[EMAIL PROTECTED]  Exception decends from TObject. Correct me if I am wrong, but if I c

RE: [DUG]: How do i GET this HTML...

2003-11-11 Thread Conor.Boyd
2. http://old.delphi.org.nz/ HTH, Conor -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] 2. Other question is, where is the DUG page these days? I wanted to sign up for the list at work but cant seem to locate the page anymore. ---

RE: [DUG]: Close failure

2003-11-10 Thread Conor.Boyd
Maybe a way to look at it is this: If you create an object you do have the responsibility to ensure it is freed (I'm differentiating that from a responsibility to free it). You can do this a number of ways including: a) Free it yourself explicitly (e.g. in a finally block after you've finished wit

RE: RE: [DUG]: Close failure

2003-11-10 Thread Conor.Boyd
Thanks for that. I'm not using Delphi on a day to day basis, so I was along the right lines just from memory... Cheers, C. -Original Message- From: James Sugrue [mailto:[EMAIL PROTECTED] I think TcomponentList is inherited from TObjectList so the list members should be freed when the c

RE: [DUG]: Close failure

2003-11-10 Thread Conor.Boyd
Is the following possible reasoning? You've added DirMonitor1 to DirMonList. You free DirMonitor1. When you call DirMonList.Clear, internally maybe it tries to reference and free DirMonitor. Have a look at the source maybe. One solution might be to cycle through your DirMonList and free all it

RE: Re: [DUG]: bpl files

2003-11-09 Thread Conor.Boyd
Indeed, but the original question was "where does Delphi expect to find BPLs", not where does my-application-written-in-Delphi expect to find BPLs. ;-) I actually thought that was what you meant: application's home directory = current directory from a Windows POV. Cheers, C. -Original Messa

RE: Re: [DUG]: bpl files

2003-11-06 Thread Conor.Boyd
Well, the Delphi\Bin might well be an option, since it will meet your first criteria if Delphi has its Start In directory set to Delphi\Bin which IIRC it does by default... ;-) Cheers, C. -Original Message- From: Corey Murtagh [mailto:[EMAIL PROTECTED] Same as a regular DLL... in the sy

RE: [DUG]: modify field type

2003-10-30 Thread Conor.Boyd
Surely this is standard behaviour for a SQL database?   Cheers,   Conor -Original Message-From: Tracey Maule [mailto:[EMAIL PROTECTED]  It seems it is not possible to modify a field type (from integer to decimal) in interbase (firebird) without dropping the field and addin

RE: [DUG]: Just wondering...

2003-10-30 Thread Conor.Boyd
Yeah, I'd have to wonder why you're too worried about it too...   I'm assuming that OptionIndex is a combobox/listbox or similar?   If so, a quick look at the source would suggest that using the ItemIndex property could be slower since it fires a Windows Message off within its implementation

RE: [DUG]: String List Editor

2003-10-29 Thread Conor.Boyd
Dunno about the first bit. :-( However the answer to the second bit is http://old.delphi.org.nz HTH, C. -Original Message- From: James F Sugrue [mailto:[EMAIL PROTECTED] Is it possible to invoke the StringList Editor from the component editor at runtime? I usually make a form with a m

RE: [DUG]: Tag

2003-10-28 Thread Conor.Boyd
Also: You might want to have a look at TControl.ScreenToClient and TControl.ClientToScreen methods for translating positions (i.e. your mouse clicks) between different controls - that way you will be able to get the same relative coordinates regardless of which control your user is clicking on.

RE: [DUG]: Memory management

2003-10-22 Thread Conor.Boyd
Two potential problems. 1) If your user passes in a command line parameter which isn't -low but also isn't nothing, the length of the array won't get set. 2) Your for loop should probably run from 0 to Max -1. I think this is probably what is throwing your pointer error. You're

RE: [DUG]: >65535 WinXP O/S choking

2003-10-14 Thread Conor.Boyd
Replied in offtopic list... -Original Message- From: Alistair George [mailto:[EMAIL PROTECTED] Hi all. this is a tad offtopic, but useful if someone knows the answer. I made up a wee unit yesterday as follows: [snip] ---

RE: Re: [DUG]: Handling exceptions

2003-10-13 Thread Conor.Boyd
IIRC Tools, Debugger Options, IDE tab. Nope, code won't work, 'cos of the call to App.HandleException ;-) HTH, Conor -Original Message- From: Steve Peacocke [mailto:[EMAIL PROTECTED] [snip] There is a way to switch off showing exceptions within the Delphi IDE but I can's remember whe

RE: [DUG]: Handling exceptions

2003-10-13 Thread Conor.Boyd
Your code is nearly correct. However, you don't need the call to Application.HandleException - this is presumably what is still showing you the unwanted error message. You don't need the call because by writing a try..except block, you are handling the exception yourself - in this case, by not

RE: Re: [DUG]: octane

2003-10-07 Thread Conor.Boyd
Not sure how long this will take to get through to you all obviously... ;-) FYI, an update about Octane: http://bdn.borland.com/article/0,1410,29952,00.html Cheers, Conor --- New Zealand Delphi Users group - Delphi List

RE: RE: [DUG]: octane

2003-10-05 Thread Conor.Boyd
Title: Message From the borland.public.delphi.netpreview Usenet newsgroup this morning...   Quoting John Kaster, Borland Developer Relations:   I just got done speaking to Simon Thornhill, and we are updating the open letter and the Q&A regarding Octane.There are 4 pieces of information I ha

RE: [DUG]: IDE Starting Directory

2003-09-22 Thread Conor.Boyd
I believe the answer is as follows (and may also help with similar frustration in other programs): Simply change the Start In directory for the Delphi shortcut itself, i.e. from Explorer or the Start menu or wherever. HTH, Conor -Original Message- From: Steve Peacocke [mailto:[EMAIL PRO

RE: [DUG]: Debugging Console programme

2003-09-09 Thread Conor.Boyd
I'm sure you're not the first ;-) Cheers, C. -Original Message- From: Mark Howard [mailto:[EMAIL PROTECTED] (Blush) Thanks Stacey and Connor. How come I've never seen that "Parameters" option before? Mark On 10 Sep 2003 at 14:29, [EMAIL PROTECTED] wrote: > Run menu, Parameters menu it

RE: [DUG]: Debugging Console programme

2003-09-09 Thread Conor.Boyd
Run menu, Parameters menu item... HTH, Conor -Original Message- From: Mark Howard [mailto:[EMAIL PROTECTED] If you have a console programme that requires a command line parameter, how do you get to start that programme from the IDE in order to debug it?

RE: Re: TinyURL - was RE: Re: [DUG]: Comms Problem

2003-09-04 Thread Conor.Boyd
Nothing personal! I just think it's one of those exceptionally simple but very effective tools available on the Internet that everyone should know about ;-) Cheers, C. -Original Message- From: Nello Sestini [mailto:[EMAIL PROTECTED] Message> You might like to check out www.tinyurl.com

TinyURL - was RE: Re: [DUG]: Comms Problem

2003-09-04 Thread Conor.Boyd
Title: Message You might like to check out www.tinyurl.com which is great for long URLS like this...   HTH,   Conor -Original Message-From: Nello Sestini [mailto:[EMAIL PROTECTED]  http://groups.google.com/groups?hl=en&lr=&ie=UTF-8&oe=utf-8&threadm=Ls39balBCHA.1836%40tpsmail01.

RE: [DUG]: How do I copy the state of one object to another?

2003-08-27 Thread Conor.Boyd
In the wider world, this is known as 'cloning'.   Just to complicate things you can have both shallow and deep cloning.   A shallow clone will create a copy of an object along with copies of all it's 'value' properties (things like strings, integers, etc.), but will only copy references to

RE: Re: [DUG]: Two announcements

2003-08-24 Thread Conor.Boyd
Me too... -Original Message- From: Tracey Maule [mailto:[EMAIL PROTECTED] Sent: Monday, 25 August 2003 9:57 a.m. To: Multiple recipients of list delphi Subject: Re: [DUG]: Two announcements Ill be keen on that too - Original Message - From: "Richard Vowles" <[EMAIL PROTECTED]> T

RE: [DUG]: %20

2003-08-03 Thread Conor.Boyd
See other message. It does work, if one ensures the correct syntax for the StringReplace call... Dunno why you're getting bounced - don't take it personally ;-) HTH, C. -Original Message- From: Alistair George [mailto:[EMAIL PROTECTED] Hello Jeremy/Connor, Ha, I had already done that

RE: [DUG]: OK, the boys are on the beers

2003-08-03 Thread Conor.Boyd
Al, You might like to have had a look at the Delphi help for StringReplace. ;-) We were incorrect in the syntax of our initial suggestion (I'm not using Delphi regularly at the mo). If you check the help, the first parameter to StringReplace is a constant parameter. Therefore yes, our initial s

RE: [DUG]: Hex ver Asci

2003-08-03 Thread Conor.Boyd
The first one compiles because #20 is an escape sequence that the Delphi compiler recognises. However, that's not what you want. You're wanting to replace one string with another string, not one string with an escape sequence. The fact that it's an escape sequence is irrelevant from the POV of y

[DUG]: RE: [DUG]: Back4WinXP©BugReport

2003-08-03 Thread Conor.Boyd
It should be %20, not #20. And could you not use StringReplace to do this for you? ;-) Cheers, Conor -Original Message- From: Alistair George [mailto:[EMAIL PROTECTED] I tried the following: for i:=0 to Length(mailstring) do if mailstring[i]=' ' then mailstring[i]:=#20; But as you