View Single Post
04-09-12, 09:40 AM   #28
semlar
A Pyroguard Emberseer
 
semlar's Avatar
AddOn Author - Click to view addons
Join Date: Sep 2007
Posts: 1,060
I'm glad you figured it out because I would never have guessed that. Seeing this reminded me of yet another way I've managed to crash the client before.

I just tested it, and after more than 2 years it still does it, and it has got to be related to your tooltip issue.

Lua Code:
  1. local m = CreateFrame("DressUpModel")
  2. m:SetScript("OnUpdateModel", function(self)
  3.     self:Hide()
  4. end)
  5. m:SetModel("spells/errorcube.m2")

Hiding the frame is causing a race condition or something. I can only assume the client is still trying to access it which causes the crash.

I guess we'll need to be careful about hiding frames while they're being updated.
  Reply With Quote