|[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]|
although I’ve been a reader for long time, this is my first post here on the Apple Lists.
I’m developing a software tool made by an application and a plugin (which will be loaded
by another application, not programmed by me). I’ve setup a lightweight communication
protocol between the two using Apple Events… they are so easy to use and things went
straightforward even if this is the first time I use them.
The application and the plugin can be loaded and unloaded separately so both of them
can sometime be sending apple events to a non-existing target. When I reproduce this
scenario AESendMessage returns -600 (procNotFound) as expected, my question is…
Sending dozen of messages to a non-existing target and being returned procNotFound
will cause memory leakage, somehow slowdown the session or cause an app crash?
(this not happen running the apps for a couple of minutes, so my question is referred
to a longer session which should be stable and reliable anyway).
If the answer is YES, is there a way to lookup the presence of an Apple Event target
before sending the actual messages? I found AEGetEventHandler but this works only
for my app handlers (or for sys-level ones, but I don’t want to register my handlers as
Waiting for reply…
Enzo “Peter” Pietropaolo
_______________________________________________ Do not post admin requests to the list. They will be ignored. Carbon-dev mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: This email sent to email@hidden
Visit the Apple Store online or at retail locations.
Copyright © 2011 Apple Inc. All rights reserved.