Thread Tools Display Modes
Prev Previous Post   Next Post Next
12-04-14, 11:32 AM   #1
TrumpetX
A Defias Bandit
AddOn Author - Click to view addons
Join Date: Dec 2014
Posts: 2
Displaying an image, crashing WoW (Win 64 bit)

I'm displaying an image and it's crashing WoW on Windows 64 bit (I have not tested 32 bit). It does NOT crash on a Mac.

Here is my image:
http://www.wowinterface.com/forums/a...0&d=1417713965

Here is the code:
Code:
    local f = CreateFrame("Frame",nil,UIParent)
    f:SetFrameStrata("BACKGROUND")
    f:SetWidth(256)
    f:SetHeight(256)
    local t = f:CreateTexture(nil,"BACKGROUND")
    t:SetTexture("Interface/AddOns/MyAddon/pvp.tga")
    t:SetAllPoints(f)
    f.texture = t
    f:SetPoint("CENTER",0,0)
    f:Show()

Any help would be appreciated. The exact error varies depending on the timing of the image popping up; however when the full error happens, it's a memory corrupt #132? error. The exact text eludes my memory at the moment. The ErrorData in the wow folder didn't really give me any clues; however, after testing things out, the crash most certainly happens on the above code (I cleared out everything else to just this).


I have also tried t:SetTexture("Interface\\AddOns\\MyAddon\\pvp.tga")

The .tga file was created using Gimp's default settings, 256x256

Thanks
Attached Files
File Type: tga pvp.tga (4.7 KB, 203 views)
  Reply With Quote
 

WoWInterface » Developer Discussions » Lua/XML Help » Displaying an image, crashing WoW (Win 64 bit)


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