TailBite 1.0 Preview, soon in PureProject and PureArea

TailBite specific forum

Moderators: gnozal, ABBKlaus, lexvictory

El_Choni
TailBite Expert
TailBite Expert
Posts: 1007
Joined: Fri Apr 25, 2003 6:09 pm
Location: Spain

Post by El_Choni »

I'm on it, be patient, plz :)
El_Choni
va!n
Addict
Addict
Posts: 1104
Joined: Wed Apr 20, 2005 12:48 pm

Post by va!n »

ok, np - thanks! i only want try to help you to find and solve bugs ;)

btw, i found another possible bug ^^ Seems when having procedures where the user can use strings as argument (like for a windowtitle) for example, this sting will not correctly pasted internaly of the procedure. It returns always only the first char ^^

one other point i noticed and i am not sure if its correct or not - but i think we can change following ASM output generated by talibite:

Code: Select all

... code ...
JMP   _EndProcedure9
; EndProcedure
XOR    eax,eax       ; <<< this will never be called, so we can save the JMP
_EndProcedure9:
RET    4
what about changing to...

Code: Select all

... code ...
; JMP   _EndProcedure9
; EndProcedure
; XOR    eax,eax
; _EndProcedure9:
RET    4
btw, please dont kill me :wink:
Last edited by va!n on Sun May 21, 2006 3:49 am, edited 1 time in total.
va!n aka Thorsten

Intel i7-980X Extreme Edition, 12 GB DDR3, Radeon 5870 2GB, Windows7 x64,
El_Choni
TailBite Expert
TailBite Expert
Posts: 1007
Joined: Fri Apr 25, 2003 6:09 pm
Location: Spain

Post by El_Choni »

I can't. I don't control what happens inside the procedure. TailBite doesn't optimize it -remi_meier's code does-.

But thank you for your help, anyway. Your reports do help me :)
El_Choni
gnozal
PureBasic Expert
PureBasic Expert
Posts: 4229
Joined: Sat Apr 26, 2003 8:27 am
Location: Strasbourg / France
Contact:

Post by gnozal »

A bug with optional parameters. I still use the old method, I think the new one isn't supported yet ?

Code: Select all

ProcedureDLL.l PureSMTP_SendMail(MailTo.s, MailFrom.s, Subject.s, MsgBody.s) ; Send mail : returns #PureSMTP_Ok if success (else is error code)
  ProcedureReturn PureSMTP_SendMailEx(MailTo, MailFrom, Subject, MsgBody, "", "", "", "")
EndProcedure
ProcedureDLL.l PureSMTP_SendMail2(MailTo.s, MailFrom.s, Subject.s, MsgBody.s, Attachments.s) ; Send mail : returns #PureSMTP_Ok if success (else is error code)
  ProcedureReturn PureSMTP_SendMailEx(MailTo, MailFrom, Subject, MsgBody, Attachments, "", "", "")
EndProcedure
ProcedureDLL.l PureSMTP_SendMail3(MailTo.s, MailFrom.s, Subject.s, MsgBody.s, Attachments.s, UserName.s) ; Send mail : returns #PureSMTP_Ok if success (else is error code)
  ProcedureReturn PureSMTP_SendMailEx(MailTo, MailFrom, Subject, MsgBody, Attachments, UserName, "", "")
EndProcedure
ProcedureDLL.l PureSMTP_SendMail4(MailTo.s, MailFrom.s, Subject.s, MsgBody.s, Attachments.s, UserName.s, Password.s) ; Send mail : returns #PureSMTP_Ok if success (else is error code)
  ProcedureReturn PureSMTP_SendMailEx(MailTo, MailFrom, Subject, MsgBody, Attachments, UserName, Password, "")
EndProcedure
ProcedureDLL.l PureSMTP_SendMail5(MailTo.s, MailFrom.s, Subject.s, MsgBody.s, Attachments.s, UserName.s, Password.s, HeaderAddon.s) ; Send mail : returns #PureSMTP_Ok if success (else is error code)
  ProcedureReturn PureSMTP_SendMailEx(MailTo, MailFrom, Subject, MsgBody, Attachments, UserName, Password, HeaderAddon)
EndProcedure
In the created library, the help string is like this :
PureSMTP_SendMail @@@@€ ([ilTo.s, MailFrom.s, Subject.s, MsgBody.s [, Attachments.s [, UserName.s [, Password.s [, HeaderAddon.s]]]]) - Send mail : returns #PureSMTP_Ok if success (else is error code)
Note the '[ilTo.s' instead of 'MailTo.s'
For free libraries and tools, visit my web site (also home of jaPBe V3 and PureFORM).
gnozal
PureBasic Expert
PureBasic Expert
Posts: 4229
Joined: Sat Apr 26, 2003 8:27 am
Location: Strasbourg / France
Contact:

Post by gnozal »

TailBite 1.3 PR 1.4/1.6

Code: Select all

; TailbiteTest.pb
ProcedureDLL GetFileDate(Filename.s)
  Protected searchData.WIN32_FIND_DATA, *FT.FILETIME, FT.FILETIME
  #DateBaseHigh = 27111902   ; 64 bit value to subtract 
  #DateBaseLow = -717324288  ; from FILETIME for PBdate 
  #Stamp = 2 ; 0:created, 1:access, 2:write, 
  hFind = FindFirstFile_(Filename, searchData)
  If hFind = #INVALID_HANDLE_VALUE
    ProcedureReturn 0
  EndIf 
  *FT.FILETIME = @searchData\ftCreationTime + SizeOf(FILETIME) * #Stamp
  FileTimeToLocalFileTime_(*FT, FT)
  FindClose_(hFind)
  MOV Eax,FT\dwLowDateTime
  MOV Edx,FT\dwHighDateTime
  SUB Eax,#DateBaseLow 
  SBB Edx,#DateBaseHigh 
  MOV Ebx,10000000
  DIV Ebx   
  ProcedureReturn
EndProcedure 
FAsm error : TailbiteTest_DIV Ebx illegal instruction
Last edited by gnozal on Tue May 23, 2006 3:00 pm, edited 1 time in total.
For free libraries and tools, visit my web site (also home of jaPBe V3 and PureFORM).
User avatar
IceSoft
Addict
Addict
Posts: 1682
Joined: Thu Jun 24, 2004 8:51 am
Location: Germany

Post by IceSoft »

PR1.6 is the newest.
Belive! C++ version of Puzzle of Mystralia
<Wrapper>4PB, PB<game>, =QONK=, PetriDish, Movie2Image, PictureManager,...
gnozal
PureBasic Expert
PureBasic Expert
Posts: 4229
Joined: Sat Apr 26, 2003 8:27 am
Location: Strasbourg / France
Contact:

Post by gnozal »

IceSoft wrote:PR1.6 is the newest.
Thanks, but same error with PR1.6
For free libraries and tools, visit my web site (also home of jaPBe V3 and PureFORM).
El_Choni
TailBite Expert
TailBite Expert
Posts: 1007
Joined: Fri Apr 25, 2003 6:09 pm
Location: Spain

Post by El_Choni »

Thx, I'm on it.
El_Choni
User avatar
Flype
Addict
Addict
Posts: 1542
Joined: Tue Jul 22, 2003 5:02 pm
Location: In a long distant galaxy

Post by Flype »

does the Import and ImportC keywords are supported in the last version of tailbite ?
No programming language is perfect. There is not even a single best language.
There are only languages well suited or perhaps poorly suited for particular purposes. Herbert Mayer
El_Choni
TailBite Expert
TailBite Expert
Posts: 1007
Joined: Fri Apr 25, 2003 6:09 pm
Location: Spain

Post by El_Choni »

Yes.
El_Choni
gnozal
PureBasic Expert
PureBasic Expert
Posts: 4229
Joined: Sat Apr 26, 2003 8:27 am
Location: Strasbourg / France
Contact:

Post by gnozal »

Flype wrote:does the Import and ImportC keywords are supported in the last version of tailbite ?
Yes, I use it.
El_Choni wrote:Thx, I'm on it.
No more FAsm error with Tailbite 1.3 PR 1.7. Thanks!
For free libraries and tools, visit my web site (also home of jaPBe V3 and PureFORM).
User avatar
Flype
Addict
Addict
Posts: 1542
Joined: Tue Jul 22, 2003 5:02 pm
Location: In a long distant galaxy

Post by Flype »

@EL_Choni:

so it doesn't work for me, i will send you a PM.
In my case, while compiling with TBManager one lib which makes use of ImportC the GUI stay 'grayed'. I've to kill the program in the taskmanager.
No programming language is perfect. There is not even a single best language.
There are only languages well suited or perhaps poorly suited for particular purposes. Herbert Mayer
gnozal
PureBasic Expert
PureBasic Expert
Posts: 4229
Joined: Sat Apr 26, 2003 8:27 am
Location: Strasbourg / France
Contact:

Post by gnozal »

Flype wrote:@EL_Choni:
so it doesn't work for me, i will send you a PM.
In my case, while compiling with TBManager one lib which makes use of ImportC the GUI stay 'grayed'. I've to kill the program in the taskmanager.
I use Import with ZLIB, but I never tried ImportC.
For free libraries and tools, visit my web site (also home of jaPBe V3 and PureFORM).
User avatar
Flype
Addict
Addict
Posts: 1542
Joined: Tue Jul 22, 2003 5:02 pm
Location: In a long distant galaxy

Post by Flype »

i make use of a library that requires to use ImportC than Import.
this works very well as an 'IncludeFile' but when making a userlib this 'freeze' tailbite...
i'll send tonight the file to EL_Choni.
No programming language is perfect. There is not even a single best language.
There are only languages well suited or perhaps poorly suited for particular purposes. Herbert Mayer
User avatar
ts-soft
Always Here
Always Here
Posts: 5756
Joined: Thu Jun 24, 2004 2:44 pm
Location: Berlin - Germany

Post by ts-soft »

@El_Choni
For the problem with CHM:PBOSL in batch (helpfile), i have make a small example for testing. Only change the paths in Setup.bat
http://ts-soft.eu/dl/_PBOSL_TAILBITE_TEST_.ZIP

I hope this help you to find the bug

Regards
Thomas
PureBasic 5.73 | SpiderBasic 2.30 | Windows 10 Pro (x64) | Linux Mint 20.1 (x64)
Old bugs good, new bugs bad! Updates are evil: might fix old bugs and introduce no new ones.
Image
Post Reply