Thread Tools Display Modes
02-06-07, 07:38 PM   #1
lionsburg
A Kobold Labourer
Join Date: Feb 2007
Posts: 1
AceComm and message()

I ran into a problem with a conflict with Cartographer, specially its use of AceComm, and an addon I maintain.

The problem turns out the AceComm:SendCommMessage() function uses a variable called "message" without declaring it first as local. (The variable name "message" is extensively used through AceComm, and the code is usually its pretty good about "local"ing it.)

Unfortunately, message is already declared by Blizzard as a function to display a dialog box, and is heavily used through the internal WoW addons, as well as a few third-party addons such as my own.

When SendCommMesssage runs, message() gets redefined as a table since there is no "local" declaration of it first. Not good.

The Ace maintainer(s) might want to add a "local message" declaration to this function and check the rest library for other like problems.
  Reply With Quote
02-06-07, 10:39 PM   #2
JoshBorke
A Chromatic Dragonspawn
 
JoshBorke's Avatar
AddOn Author - Click to view addons
Join Date: Feb 2006
Posts: 185
confirmed. line 1444 as of rev 27400
  Reply With Quote

WoWInterface » AddOns, Compilations, Macros » AddOn Search/Requests » AceComm and message()


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off