Game Development Community

Nested Bitmap Controls??

by Neel "Roy Fokker" Raiyani · in Torque Game Engine · 11/16/2002 (4:08 pm) · 1 replies

the followin is from the playgui.gui, that i made with the guieditor.
now after saving when i restart the application, i get the following error

ERROR: Attempting to re-link namespace WeaponImage from GuiBitmapCtrl to shapeBaseImageData with non-zero refcount.

What am i doing wrong here??????
new GuiBitmapCtrl(WeaponShell) {
      profile = "GuiDefaultProfile";
      horizSizing = "right";
      vertSizing = "bottom";
      position = "0 0";
      extent = "164 114";
      minExtent = "8 2";
      visible = "1";
      helpTag = "0";
      bitmap = "./hudgui/weaponshell";
      wrap = "0";

      new GuiClockHud(HudClock) {
         profile = "GuiDefaultProfile";
         horizSizing = "right";
         vertSizing = "bottom";
         position = "6 17";
         extent = "46 22";
         minExtent = "8 2";
         visible = "1";
         helpTag = "0";
         showFill = "0";
         showFrame = "0";
         fillColor = "0.000000 0.000000 0.000000 0.500000";
         frameColor = "0.000000 1.000000 0.000000 1.000000";
         textColor = "0.000000 1.000000 0.000000 1.000000";
      };
      new GuiBitmapCtrl(WeaponImage) {
         profile = "GuiDefaultProfile";
         horizSizing = "right";
         vertSizing = "bottom";
         position = "24 45";
         extent = "100 29";
         minExtent = "8 2";
         visible = "0";
         helpTag = "0";
         bitmap = "./hudfill";
         wrap = "0";
      };
   };

BTW the images are in following folders
fps/client/ui/hudfill.png
fps/client/ui/hudgui/weaponshell.png

also if i remove the WeaponImage GuiBitmapCtrl the error disappears. But thats not what i want.

Any Insights???

#1
11/16/2002 (6:56 pm)
Ok i have found the problem with help of Mr. Gardner.
Much thankx