<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
Hi<br>
<br>
Will try that. to explain better there is actually a list of
components, one of which is a country selector. Changing the country
changes the entire display (displayed components and positions etc).
The easiest way to refresh the display is to clear all components and
re initialise. <br>
<br>
I assume the message I post wouldn't be received until the event has
finished firing ? (will make the postmessage the last step).<br>
<br>
Thanks Conor and Jeremy<br>
Rob<br>
<div class="moz-signature">
<div class="Section1"><br>
<p class="MsoNormal"><span style="" lang="EN-NZ"><o:p> </o:p></span></p>
</div>
</div>
<br>
<br>
Conor Boyd wrote:
<blockquote
cite="mid:F7C0AA5DD1508F4789E10B6CC9BB75DB02CE743F@nzc-ap-xch-02.ap.trimblecorp.net"
type="cite">
<pre wrap="">The way you've described it "smells" a bit to me. Why do you need to
free the combobox? Why not just hide it or something similar?
However, if you truly want to do it, look into posting a message to the
form using PostMessage, and then handle the message on the form, and
free the combobox at that point.
C.
-----Original Message-----
From: <a class="moz-txt-link-abbreviated" href="mailto:delphi-bounces@delphi.org.nz">delphi-bounces@delphi.org.nz</a> [<a class="moz-txt-link-freetext" href="mailto:delphi-bounces@delphi.org.nz">mailto:delphi-bounces@delphi.org.nz</a>]
On Behalf Of Robert martin
Sent: Tuesday, 13 October 2009 10:23 a.m.
To: NZ Borland Developers Group - Delphi List
Subject: [DUG] tricky event question
Hi Guys
I have a combobox with an event (onChange) that refreshes the display.
As part of that refresh the combobox is freed. This causes an AV as the
combo box has not yet finished processing its event but is being freed.
What would be the best way of dealing with this scenario?
Cheers
Rob
_______________________________________________
NZ Borland Developers Group - Delphi mailing list
Post: <a class="moz-txt-link-abbreviated" href="mailto:delphi@delphi.org.nz">delphi@delphi.org.nz</a>
Admin: <a class="moz-txt-link-freetext" href="http://delphi.org.nz/mailman/listinfo/delphi">http://delphi.org.nz/mailman/listinfo/delphi</a>
Unsubscribe: send an email to <a class="moz-txt-link-abbreviated" href="mailto:delphi-request@delphi.org.nz">delphi-request@delphi.org.nz</a> with Subject:
unsubscribe
_______________________________________________
NZ Borland Developers Group - Delphi mailing list
Post: <a class="moz-txt-link-abbreviated" href="mailto:delphi@delphi.org.nz">delphi@delphi.org.nz</a>
Admin: <a class="moz-txt-link-freetext" href="http://delphi.org.nz/mailman/listinfo/delphi">http://delphi.org.nz/mailman/listinfo/delphi</a>
Unsubscribe: send an email to <a class="moz-txt-link-abbreviated" href="mailto:delphi-request@delphi.org.nz">delphi-request@delphi.org.nz</a> with Subject: unsubscribe
</pre>
</blockquote>
</body>
</html>