Page 1 of 1

Strange behaviour of userlib (TailBite 1.2 Beta 2.3)

Posted: Wed Mar 02, 2005 1:59 am
by sverson
In test 8. & test 13. the userlib procedure ulfunction_2() returns the untouched input when i use MyUserlib.pb as userlib instead of IncludeFile.

:? Is this my fault? - is is TaliBite? - or a PB Bug?
Please help!

MyUserlib.pb as IncludeFile:
Image

MyUserlib.pb as UserLib:
Image

TestMyUserlib.pb:

Code: Select all

;IncludeFile "MyUserlib.pb"

TestString1$ = ulfunction_1()
TestString2$ = "blabla..."
TestNum1     = 5

If OpenConsole() 
  ConsoleTitle("Test: "+Chr(34)+"MyUserlib"+Chr(34))
  PrintN( " 1. " + TestString1$)
  PrintN( " 2. " + TestString2$)
  PrintN( " 3. " + ulfunction_1())
  PrintN( " 4. " + ulfunction_2(TestString1$))
  PrintN( " 5. " + ulfunction_2(TestString2$))
  PrintN( " 6. " + ulfunction_2(ulfunction_1()))
  PrintN( " 7. " + ulfunction_2("Test"))
  PrintN( " 8. " + ulfunction_2("Test "+RSet(Str(TestNum1),2,"0")))
  PrintN( " 9. " + ulfunction_1() + " / " + ulfunction_1())
  PrintN( "10. " + ulfunction_1() + " / " +  ulfunction_2("Test 1"))
  PrintN( "11. " + ulfunction_2("Test 2") + " / " +  ulfunction_1())
  PrintN( "12. " + ulfunction_2("Test 3") + " / " +  ulfunction_2("Test 4"))
  PrintN( "13. " + ulfunction_2("Test "+RSet(Str(TestNum1),2,"0"))+ " / " + ulfunction_2("Test "+RSet(Str(TestNum1+1),2,"0")))
  PrintN("") 
  PrintN("Return -> Quit") 
  Input() 
  CloseConsole() 
EndIf 
End 
MyUserlib.pb:

Code: Select all

ProcedureDLL.s ulfunction_1()
  Protected RetStr1$
  RetStr$ = "result funktion_1"
  ProcedureReturn RetStr$
EndProcedure

ProcedureDLL.s ulfunction_2(InStr$)
  Protected RetStr2$
  RetStr2$ = "something"
  ; do some more
  RetStr2$ + " added to " + InStr$
  ProcedureReturn RetStr2$
EndProcedure
BTW: TBManager 1.2 Beta 2.3 Console still does not save "LastFile" in "TailBite.prefs". :cry:
WinNT4SP6 - PB3.92/3.93 - jaBPe 2.5.2.24

:wink: sverson

Posted: Wed Mar 02, 2005 3:49 am
by El_Choni
Interesting bug. I guess I'll have to spend some time on it... ;) BTW, did this happen with previous TailBite versions? Just in case somebody noticed it before...

I've fixed the LastFile bug, thanks a lot for your report.

Regards,

Posted: Wed Mar 02, 2005 4:14 am
by sverson
El_Choni wrote:BTW, did this happen with previous TailBite versions?
TailBite 1.2 Beta 2.1,2.2,2.3 / PB 3.92/3.93

:wink: sverson

**edit**
In test 8. & test 13. the userlib...
and test 6.

Posted: Wed Mar 02, 2005 3:18 pm
by sverson
El_Choni wrote:I've fixed the LastFile bug, thanks a lot for your report.
I can't get it :cry:
Image
:wink: sverson

Posted: Wed Mar 02, 2005 6:22 pm
by El_Choni
I haven't uploaded the fix, I thought it was so minimal it wasn't worth releasing it. If you really want to use this feature, tell me and I will upload this version.

Uploading to Liquidbuzz didn't work yesterday, I'll talk to Noahphense. Anyway, when one site fails, the updater searches in the others.

regards,

Posted: Wed Mar 02, 2005 8:18 pm
by sverson
El_Choni wrote:I haven't uploaded the fix, I thought it was so minimal it wasn't worth releasing it. If you really want to use this feature, tell me and I will upload this version.

Uploading to Liquidbuzz didn't work yesterday, I'll talk to Noahphense. Anyway, when one site fails, the updater searches in the others.

regards,
Don't hurry :wink:

Posted: Mon Mar 14, 2005 4:46 pm
by sverson
El_Choni wrote:Posted: 02.03.2005 03:49:07
Interesting bug. I guess I'll have to spend some time on it...
...did you find it?
:wink: sverson

Posted: Mon Mar 14, 2005 4:51 pm
by El_Choni
Yes, it's spotted, I just haven't had time the last two weeks to do anything but a web page which had to be finished on Saturday. Now I have some more time, and I guess this wlil be fixed this week.

Sorry for the delay. Regards,

Posted: Mon Mar 14, 2005 5:13 pm
by sverson
El_Choni wrote:Yes, it's spotted...
Great! - Thank's!
:wink: sverson

Posted: Mon Mar 14, 2005 11:10 pm
by Andre
@El_Choni: if you would make a newer (non-beta) archive, I would be glad also to host / release it on PureArea.net :D

Simply send me a mail then.... andre -at- purebasic . com

Posted: Tue Mar 15, 2005 12:42 am
by El_Choni
I was planning to remain in beta state till PB 4.0, dunno why, I feel comfortable in beta state, like if there was much less pressure :lol:

Now, seriously: when I fix the returning string bug, I'll leave beta state and send you a copy. I've just been too busy the last weeks.

BTW, thanks for your support, Andre. And regards,

Posted: Tue Mar 15, 2005 6:54 am
by DarkDragon
El_Choni: I can't download the update :-/ it can't connect to any server. Well, I could host it for you too. You could have a sub domain like this: http://el_choni.bradan.net/ with about 5-10 MB and PHP/CGI(Linux)/MySQL support.

Posted: Wed Mar 16, 2005 2:03 pm
by El_Choni
Thanks, DarkDragon, I'll PM you when I have some time. And I'll upload the final version (fixed) this week.

Thanks again, and regards,

Posted: Sun Mar 20, 2005 7:20 pm
by Andre
El_Choni wrote:I was planning to remain in beta state till PB 4.0, dunno why, I feel comfortable in beta state, like if there was much less pressure :lol:
Hehe, can understand this... :lol:
El_Choni wrote:Now, seriously: when I fix the returning string bug, I'll leave beta state and send you a copy. I've just been too busy the last weeks.
Ok, nice. I will release it then asap on PureArea.net. You're also able to add it to the Showcase, more response from users (at least good votings) are sure... :wink:

Posted: Mon Mar 21, 2005 3:20 am
by El_Choni
This bug is giving me a hard time, I'll upload as soon as it's fixed (among other bug just found at the French forum).

Thx, Andre. Regards,