Page 24 of 40

Posted: Sun May 21, 2006 3:24 am
by El_Choni
I'm on it, be patient, plz :)

Posted: Sun May 21, 2006 3:29 am
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:

Posted: Sun May 21, 2006 3:48 am
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 :)

Posted: Mon May 22, 2006 8:54 am
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'

Posted: Tue May 23, 2006 2:37 pm
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

Posted: Tue May 23, 2006 2:51 pm
by IceSoft
PR1.6 is the newest.

Posted: Tue May 23, 2006 3:01 pm
by gnozal
IceSoft wrote:PR1.6 is the newest.
Thanks, but same error with PR1.6

Posted: Tue May 23, 2006 3:31 pm
by El_Choni
Thx, I'm on it.

Posted: Tue May 23, 2006 9:41 pm
by Flype
does the Import and ImportC keywords are supported in the last version of tailbite ?

Posted: Tue May 23, 2006 11:40 pm
by El_Choni
Yes.

Posted: Wed May 24, 2006 7:41 am
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!

Posted: Wed May 24, 2006 8:09 am
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.

Posted: Wed May 24, 2006 8:42 am
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.

Posted: Wed May 24, 2006 12:15 pm
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.

Posted: Wed May 24, 2006 1:15 pm
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