
TailBite 1.0 Preview, soon in PureProject and PureArea
Moderators: gnozal, ABBKlaus, lexvictory
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:
what about changing to...
btw, please dont kill me 

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
Code: Select all
... code ...
; JMP _EndProcedure9
; EndProcedure
; XOR eax,eax
; _EndProcedure9:
RET 4

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,
Intel i7-980X Extreme Edition, 12 GB DDR3, Radeon 5870 2GB, Windows7 x64,
-
- PureBasic Expert
- Posts: 4229
- Joined: Sat Apr 26, 2003 8:27 am
- Location: Strasbourg / France
- Contact:
A bug with optional parameters. I still use the old method, I think the new one isn't supported yet ?
In the created library, the help string is like this :
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
Note the '[ilTo.s' instead of 'MailTo.s'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)
For free libraries and tools, visit my web site (also home of jaPBe V3 and PureFORM).
-
- PureBasic Expert
- Posts: 4229
- Joined: Sat Apr 26, 2003 8:27 am
- Location: Strasbourg / France
- Contact:
TailBite 1.3 PR 1.4/1.6
FAsm error : TailbiteTest_DIV Ebx illegal instruction
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
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).
-
- PureBasic Expert
- Posts: 4229
- Joined: Sat Apr 26, 2003 8:27 am
- Location: Strasbourg / France
- Contact:
Yes, I use it.Flype wrote:does the Import and ImportC keywords are supported in the last version of tailbite ?
No more FAsm error with Tailbite 1.3 PR 1.7. Thanks!El_Choni wrote:Thx, I'm on it.
For free libraries and tools, visit my web site (also home of jaPBe V3 and PureFORM).
@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.
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
There are only languages well suited or perhaps poorly suited for particular purposes. Herbert Mayer
-
- PureBasic Expert
- Posts: 4229
- Joined: Sat Apr 26, 2003 8:27 am
- Location: Strasbourg / France
- Contact:
I use Import with ZLIB, but I never tried ImportC.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.
For free libraries and tools, visit my web site (also home of jaPBe V3 and PureFORM).
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.
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
There are only languages well suited or perhaps poorly suited for particular purposes. Herbert Mayer
@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
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.

Old bugs good, new bugs bad! Updates are evil: might fix old bugs and introduce no new ones.
