Strange behaviour of userlib (TailBite 1.2 Beta 2.3)

Everything else that doesn't fall into one of the other PB categories.
sverson
Enthusiast
Enthusiast
Posts: 286
Joined: Sun Jul 04, 2004 12:15 pm
Location: Germany

Strange behaviour of userlib (TailBite 1.2 Beta 2.3)

Post 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
El_Choni
TailBite Expert
TailBite Expert
Posts: 1007
Joined: Fri Apr 25, 2003 6:09 pm
Location: Spain

Post 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,
El_Choni
sverson
Enthusiast
Enthusiast
Posts: 286
Joined: Sun Jul 04, 2004 12:15 pm
Location: Germany

Post 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.
sverson
Enthusiast
Enthusiast
Posts: 286
Joined: Sun Jul 04, 2004 12:15 pm
Location: Germany

Post 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
El_Choni
TailBite Expert
TailBite Expert
Posts: 1007
Joined: Fri Apr 25, 2003 6:09 pm
Location: Spain

Post 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,
El_Choni
sverson
Enthusiast
Enthusiast
Posts: 286
Joined: Sun Jul 04, 2004 12:15 pm
Location: Germany

Post 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:
sverson
Enthusiast
Enthusiast
Posts: 286
Joined: Sun Jul 04, 2004 12:15 pm
Location: Germany

Post 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
El_Choni
TailBite Expert
TailBite Expert
Posts: 1007
Joined: Fri Apr 25, 2003 6:09 pm
Location: Spain

Post 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,
El_Choni
sverson
Enthusiast
Enthusiast
Posts: 286
Joined: Sun Jul 04, 2004 12:15 pm
Location: Germany

Post by sverson »

El_Choni wrote:Yes, it's spotted...
Great! - Thank's!
:wink: sverson
User avatar
Andre
PureBasic Team
PureBasic Team
Posts: 2148
Joined: Fri Apr 25, 2003 6:14 pm
Location: Germany (Saxony, Deutscheinsiedel)
Contact:

Post 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
Bye,
...André
(PureBasicTeam::Docs & Support - PureArea.net | Order:: PureBasic | PureVisionXP)
El_Choni
TailBite Expert
TailBite Expert
Posts: 1007
Joined: Fri Apr 25, 2003 6:09 pm
Location: Spain

Post 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,
El_Choni
DarkDragon
Addict
Addict
Posts: 2347
Joined: Mon Jun 02, 2003 9:16 am
Location: Germany
Contact:

Post 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.
bye,
Daniel
El_Choni
TailBite Expert
TailBite Expert
Posts: 1007
Joined: Fri Apr 25, 2003 6:09 pm
Location: Spain

Post 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,
El_Choni
User avatar
Andre
PureBasic Team
PureBasic Team
Posts: 2148
Joined: Fri Apr 25, 2003 6:14 pm
Location: Germany (Saxony, Deutscheinsiedel)
Contact:

Post 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:
Bye,
...André
(PureBasicTeam::Docs & Support - PureArea.net | Order:: PureBasic | PureVisionXP)
El_Choni
TailBite Expert
TailBite Expert
Posts: 1007
Joined: Fri Apr 25, 2003 6:09 pm
Location: Spain

Post 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,
El_Choni
Post Reply