It is currently Wed Jun 19, 2013 1:48 pm

All times are UTC + 1 hour




Post new topic Reply to topic  [ 10 posts ] 
Author Message
 Post subject: [DONE] Tailbite doesn't close
PostPosted: Tue Apr 22, 2008 8:42 am 
Offline
Addict
Addict
User avatar

Joined: Thu Jun 24, 2004 2:44 pm
Posts: 4740
Location: Berlin - Germany
After creation of a resident, tailbite doesn't close correct!
TailBite 1.3 PR 1.872, resident is created

greetings and thanks for the new version
Thomas

_________________
PureBasic 5.11 | Windows 7 SP1 (x64) | Linux Mint 15 (x64) | RealSource

The use of EnableExplicit is free of charge and avoids errors.


Top
 Profile  
 
 Post subject:
PostPosted: Tue Apr 22, 2008 8:29 pm 
Offline
Addict
Addict

Joined: Sat Apr 10, 2004 1:20 pm
Posts: 1071
Location: Germany
fixed

_________________
http://www.PureBasicPower.de


Top
 Profile  
 
 Post subject:
PostPosted: Mon May 05, 2008 9:18 pm 
Offline
Addict
Addict
User avatar

Joined: Fri Feb 25, 2005 1:01 am
Posts: 805
Location: France > Normandy > Near Caen
How can I create residents with new version ? Because I updated from 1.3 PR 1.870 to 1.3 PR 1.874 and now, with same code, that doesn't create residents :

Code:
Import "C:\Program Files\PureBasic\Compilers\ObjectManager.lib"
  Object_GetOrAllocateID  (Objects, Object.l) As "_PB_Object_GetOrAllocateID@8"
  Object_GetObject        (Objects, Object.l) As "_PB_Object_GetObject@8"
  Object_IsObject         (Objects, Object.l) As "_PB_Object_IsObject@8"
  Object_EnumerateAll     (Objects, ObjectEnumerateAllCallback, *VoidData) As "_PB_Object_EnumerateAll@12"
  Object_EnumerateStart   (Objects) As "_PB_Object_EnumerateStart@4"
  Object_EnumerateNext    (Objects, *object.Long) As "_PB_Object_EnumerateNext@8"
  Object_EnumerateAbort   (Objects) As "_PB_Object_EnumerateAbort@4"
  Object_FreeID           (Objects, Object.l) As "_PB_Object_FreeID@8"
  Object_Init             (StructureSize.l, IncrementStep.l, ObjectFreeFunction) As "_PB_Object_Init@12"
  Object_GetThreadMemory  (MemoryID.l) As "_PB_Object_GetThreadMemory@4"
  Object_InitThreadMemory (Size.l, InitFunction, EndFunction) As "_PB_Object_InitThreadMemory@12"
EndImport

;{ Structures
  Structure S_RLog
    ID.l
    Default_Level.l
    Default_Category.s
    Default_Formatter.s
    OutputFile.s
    OutputFile_Append.l
    Filter_Activate_Level.l
    Filter_Operator_Level.l
    Filter_Content_Level.l
    Filter_Activate_Date.l
    Filter_Operator_Date.l
    Filter_Content_Date.l
    Filter_Activate_Category.l
    Filter_Operator_Category .l
    Filter_Content_Category.s
  EndStructure
  Structure S_RLog_Log
    ID_Log.l
    Level.l
    Date.l
    Content.s
    Category.s
  EndStructure
;}
;{ Enumerations
  Enumeration
    #RLog_Level_Debug
    #RLog_Level_Info
    #RLog_Level_Notice
    #RLog_Level_Warn
    #RLog_Level_Error
    #RLog_Level_Critical
    #RLog_Level_Alert
    #RLog_Level_Emergency
  EndEnumeration
  Enumeration 1
    #RLog_Filter_Level
    #RLog_Filter_Date
    #RLog_Filter_Category
  EndEnumeration
  Enumeration 1
    #RLog_Operator_Inferior
    #RLog_Operator_InferiorOrEqual
    #RLog_Operator_Superior
    #RLog_Operator_SuperiorOrEqual
    #RLog_Operator_Equal
    #RLog_Operator_NotEqual
  EndEnumeration
;}
;{ Macros
  Macro RLOG_ID(object)
    Object_GetObject(RLogObjects, object)
  EndMacro
  Macro RLOG_ISID(object)
    Object_IsObject(RLogObjects, object)
  EndMacro
  Macro RLOG_NEW(object)
    Object_GetOrAllocateID(RLogObjects, object)
  EndMacro
  Macro RLOG_FREEID(object)
    If object <> #PB_Any And RLog_Is(object) = #True
      Object_FreeID(RLogObjects, object)
    EndIf
  EndMacro
  Macro RLOG_INITIALIZE(hCloseFunction)
    Object_Init(SizeOf(S_RLog), 1, hCloseFunction)
  EndMacro
;}

Global NewList LL_RLog_Logs.S_RLog_Log()


Top
 Profile  
 
 Post subject:
PostPosted: Mon May 05, 2008 9:43 pm 
Offline
Addict
Addict

Joined: Sat Apr 10, 2004 1:20 pm
Posts: 1071
Location: Germany
Its simply not working ! Not in V1.3 PR 870 / V1.3 PR 874.
You can test it yourselft : http://www.tailbite.com/downloads/TailBiteV1.3PR1.870.zip

You could remove the import section / the macro´s / and the global newlist and all works fine.

Regards Klaus

_________________
http://www.PureBasicPower.de


Top
 Profile  
 
 Post subject:
PostPosted: Mon May 05, 2008 9:43 pm 
Offline
Addict
Addict
User avatar

Joined: Fri Feb 25, 2005 1:01 am
Posts: 805
Location: France > Normandy > Near Caen
So linked list, macro, imports are stored in userlib and not in resident ?


Top
 Profile  
 
 Post subject:
PostPosted: Mon May 05, 2008 9:45 pm 
Offline
Addict
Addict

Joined: Sat Apr 10, 2004 1:20 pm
Posts: 1071
Location: Germany
Correct.

_________________
http://www.PureBasicPower.de


Top
 Profile  
 
 Post subject:
PostPosted: Mon May 05, 2008 9:49 pm 
Offline
Addict
Addict
User avatar

Joined: Fri Feb 25, 2005 1:01 am
Posts: 805
Location: France > Normandy > Near Caen
Woah ! I believe that residents can contain structures, macros, constants, prototypes, linked lists and imports....

So what can contain a resident ?


Top
 Profile  
 
 Post subject:
PostPosted: Mon May 05, 2008 10:05 pm 
Offline
Addict
Addict

Joined: Sat Apr 10, 2004 1:20 pm
Posts: 1071
Location: Germany
a Macro seems to work, but i can´t get the imported functions to work.

You can test it by compiling with :
Code:
PBCompiler.exe "source.pb" /RESIDENT resfile

_________________
http://www.PureBasicPower.de


Top
 Profile  
 
 Post subject:
PostPosted: Mon May 05, 2008 10:22 pm 
Offline
Addict
Addict
User avatar

Joined: Thu Jun 24, 2004 2:44 pm
Posts: 4740
Location: Berlin - Germany
Imports works in a resident. Is the same as Prototype, the worked also
Only the Global Newlist is false.

_________________
PureBasic 5.11 | Windows 7 SP1 (x64) | Linux Mint 15 (x64) | RealSource

The use of EnableExplicit is free of charge and avoids errors.


Top
 Profile  
 
 Post subject:
PostPosted: Mon May 05, 2008 10:30 pm 
Offline
Addict
Addict

Joined: Sat Apr 10, 2004 1:20 pm
Posts: 1071
Location: Germany
I do not see any size change with/without the imported functions.

So here is my list of what can contain a resident file :

- Constant
- Interface
- Structure
- Macro (see History of PureBasic help file : 8th May2006)
- Prototype (see History of PureBasic help file : 8th May2006)

_________________
http://www.PureBasicPower.de


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

All times are UTC + 1 hour


Who is online

Users browsing this forum: No registered users and 0 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