It is currently Sat Nov 23, 2019 12:43 am

All times are UTC + 1 hour




Post new topic Reply to topic  [ 3 posts ] 
Author Message
 Post subject: Bug with copying map structure
PostPosted: Tue Jul 19, 2011 5:46 pm 
Offline
Enthusiast
Enthusiast
User avatar

Joined: Wed Aug 10, 2005 2:08 pm
Posts: 565
Location: Yorkshire, England
Hi,

It appears theres problems with TailBite and copying maps, the following code causes TailBite to fail:

CopySkin.asm
line: 31
error code: -108
error string: Illegal Instruction

Code:
Structure skinProperties
  value.s
  resType.i
  resData.i
  resDataSize.i
EndStructure

Structure skinStates
  Map property.skinProperties()
EndStructure

Structure skinComponents
  Map state.skinStates()
EndStructure

Structure skins
  name.s
  author.s
  date.s
  version.s
  url.s
  Map component.skinComponents()
EndStructure

Global NewList skin.skins()

ProcedureDLL CopySkin(Skin.i) ; Returns a copy of the specified skin
 
  ForEach skin()
    If @skin() = Skin
     
      tskin.skins
      tskin = skin()
     
      LastElement(skin())
      If AddElement(skin()) <> 0
        skin() = tskin
        ProcedureReturn @skin()
      EndIf
     
      ProcedureReturn 0
     
    EndIf
  Next
 
  ProcedureReturn 0
 
EndProcedure


Thanks!

Chris.

_________________
ProGUI - Professional Graphical User Interface Library - http://www.progui.co.uk


Top
 Profile  
Reply with quote  
 Post subject: Re: Bug with copying map structure
PostPosted: Tue Jul 19, 2011 6:13 pm 
Offline
Addict
Addict

Joined: Sat Apr 10, 2004 1:20 pm
Posts: 1143
Location: Germany
its a missing macro. Will be hard to implement in TB but i will try it when it find some time ;-)

Code:
macro MP0_Setup{
  LEA    eax,[esp]
  PUSH   s_skins
  PUSH   eax
  CALL  _SYS_InitDynamicStructure@8
}


BTW : your Linked List has to be initialised in the init-function, something like this :

Code:
ProcedureDLL CopySkin_Init()
  Global NewList skin.skins()
EndProcedure


Top
 Profile  
Reply with quote  
 Post subject: Re: Bug with copying map structure
PostPosted: Tue Jul 19, 2011 6:54 pm 
Offline
Enthusiast
Enthusiast
User avatar

Joined: Wed Aug 10, 2005 2:08 pm
Posts: 565
Location: Yorkshire, England
ABBKlaus wrote:
its a missing macro. Will be hard to implement in TB but i will try it when it find some time


Thanks ABBKlaus :)

ABBKlaus wrote:
BTW : your Linked List has to be initialised in the init-function, something like this :


Yes I know (all lists are defined in ProGUI_Init), just wanted to show you the copy map error but thanks anyway.

Chris.

_________________
ProGUI - Professional Graphical User Interface Library - http://www.progui.co.uk


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 3 posts ] 

All times are UTC + 1 hour


Who is online

Users browsing this forum: No registered users and 5 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  

 


Powered by phpBB © 2008 phpBB Group
subSilver+ theme by Canver Software, sponsor Sanal Modifiye