Page 9 of 10

Posted: Sat Jan 05, 2008 9:32 pm
by Henrik
Hi ABBKlaus
thats odd i get a' 404 here :?
i try a' different computer, but it's prob. the connection then.

Best Henrik

Posted: Sat Jan 05, 2008 9:43 pm
by Henrik
@ABBKlaus
Nope no luck here either, but they share connection so.. damn :?

Btw. i can't connect to your addy. http://www.purebasicpower.de/ eithter..

Thanks for checking it anyway, it most be something om my end or somthing :roll:

ABBKlaus could you upload the latest tailbite to www.purearea.net pls.. :) when you - have / get - time, of course. :wink:

Best Henrik.

Posted: Sat Jan 05, 2008 10:34 pm
by Mistrel
ABBKlaus wrote:I just compiled your test code to an commented asm source, and did not find any of your code !
It's possible that there is another variable that's creating the problem. The library I used it on is several thousands of lines long. I can investigate further when I have the time.

Posted: Sat Jan 05, 2008 10:36 pm
by Henrik
@ABBKlaus

A friend of mine has just testet the site and he can't connect to it either,
so it must be something between denmark and Germany or TDC.dk (my isp) and your tailbite host. :?

Anyway, it doesnt seem to be anything we can do anything about :( :wink:

Thanks anyway


*Edit*
Another friend was able to download the files, so everything is a'okay her :D

Great work ABBKlaus thank you :)

Best Regards Henrik.

Posted: Sun Jan 06, 2008 12:49 pm
by ABBKlaus
@Mistrel,

TailBite generates a logfile in the temp-folder, if you could PM it to me i could investigate a bit further.

Regards Klaus

Posted: Wed Jan 09, 2008 2:34 am
by Mistrel
I just realized that Tailbite is not the reason I'm seeing these hints at the bottom of the IDE. It's because I had the original source with the procedure declaration open in another File. The IDE will show a hint for procedures in all open files.

Sorry for the misunderstanding.

I got a "The pipe has ended" at the end of one of Tailbite's error windows. I think this is a bug.

Code: Select all

PBCompiler:  /COMMENTED /DEBUGGER

******************************************

PureBasic 4.10 (Windows - x86)

******************************************

Compiling Project.pb

Loading external libraries...

Starting compilation...

Including source: SourceInclude.pbi

Including source: SourceInclude2.pbi

Including source: SourceInclude3.pbi

Error: Line 2023 - Procedure parameter can't be declared twice: x


The pipe has been ended.

Posted: Wed Jan 09, 2008 8:54 am
by ABBKlaus
@Mistrel,

seems to me that this is a bug in line 2023 of your source, but i cannot say without seeing it (especially line 2023) :wink:

Regards Klaus

Posted: Wed Jan 09, 2008 9:30 pm
by Mistrel
There was a bug, yes. I had declared 'x' twice. I thought the "The pipe has ended" line was a bug and should not exist at the end of the error message.

Posted: Wed Jan 16, 2008 2:56 pm
by Hurga
I didnt worked with Tailbite nearly about a year. So now I loaded the newest version und tried to run it, but I got some error-Msgs.

It cant find polib.exe (the path to PureBasic is given correctly)

Then he cant find the PureBasic.asm file.
(Here I add my own path. c:\PureBasic/Tailbite/LibrarySources)
but it saved the files at: c:\PureBasic/Tailbite/
and then, strangly enough, the msg say, that the file cant be find in
..local settings .... Temp/TBTemp

Is this my mistake or is it a sweet little bug?

Posted: Wed Jan 16, 2008 7:28 pm
by ABBKlaus
@Hurga,

did you make a clean install of TailBite ? The preferences handling is a bit different as in the old version !
Could you PM me your TailBite.prefs file and the TailBite logfile.
1. Location of prefs : %Appdata%\TailBite\TailBite_XXX.prefs
2. Location of prefs : TailBite-folder\TailBite.prefs
Location of logfile : %temp%\TailBite_Logfile.txt

Regards Klaus

Posted: Thu Jan 17, 2008 8:47 am
by Mistrel
Debug commands cause the process to crash if compiled with the debugger off.

Compile this to a Tailbite library and try compiling without the debugger.

Code: Select all

ProcedureDLL MyDivZ(a, b)
  ProcedureReturn a/b
EndProcedure

ProcedureCDLL MyDivZ_DEBUG(a, b)
  If b=0
    TB_DebugError(@"Division by zero!")
  EndIf
EndProcedure
My project keeps getting a linker error if I try to compile without the debugger using my Tailbite commands.

Code: Select all

---------------------------
PureBasic - Linker error
---------------------------
POLINK: error: Unresolved external symbol 'PB_NullString'.

POLINK: fatal error: 1 unresolved external(s).

Posted: Thu Jan 17, 2008 8:54 am
by ABBKlaus
Its crashing on the Division by ZERO, not on the _DEBUG command :twisted:

Compile with TailBite as "MyDebugErrorPlugin"

Code: Select all

ProcedureDLL MyDivZ(a, b)
  MessageRequester("MyDivZ","Before division by zero!"+Chr(13)+"The program will crash now without debugger.",0)
  ProcedureReturn a/b
EndProcedure

ProcedureCDLL MyDivZ_DEBUG(a, b)
  If b=0
    TB_DebugError(@"Division by zero!")
  EndIf
EndProcedure
Example code :

Code: Select all

MyDivZ(1, 0)
Mistrel wrote:My project keeps getting a linker error if I try to compile without the debugger using my Tailbite commands.
Without a snippet i can´t do anything to help you :?

Posted: Fri Jan 18, 2008 4:02 am
by Mistrel
Its crashing on the Division by ZERO, not on the _DEBUG command Twisted Evil
Well this is embarassing. I should have seen that. :roll:
Without a snippet i can´t do anything to help you Confused
I don't know what's causing this problem and I can't reproduce it outside of my library. It only occurs when I try to compile without the debugger in a source that contains no strings and calls a command from this particular Tailbite library.

Posted: Mon Jan 21, 2008 12:47 pm
by lexvictory
problem with compiling for subsystems:

when compiling normally, (no threadsafe nor unicode) everything works
but when compiling with for example threadsafe, and the subsystem path automatically changed, it fails with pb saying function name same as external command.

tailbite seems to delete the lib file from pbdir/purelibraries/userlibraries when it compiles
but why does it still delete that file when compiling for subsystems, and not delete the lib in the subsystems directory?

and can the preferences file location be explained?
i know its in app data, but is there a way to make it use a local one (for using more than one pb/tailbite version for example)?
creating a tailbite.prefs in the tailbite directory seems to work, is that what makes it local?

Posted: Mon Jan 21, 2008 6:42 pm
by ABBKlaus
lexvictory wrote:problem with compiling for subsystems:

when compiling normally, (no threadsafe nor unicode) everything works
but when compiling with for example threadsafe, and the subsystem path automatically changed, it fails with pb saying function name same as external command.
It was IceSoft´s idea to change the subsystem folders. You have to move all files from :
UserLibThreadSafe\PureLibraries\*.*
to
UserLibThreadSafe\PureLibraries\UserLibraries\*.*
lexvictory wrote:tailbite seems to delete the lib file from pbdir/purelibraries/userlibraries when it compiles
but why does it still delete that file when compiling for subsystems, and not delete the lib in the subsystems directory?
When you compile for a subsystem TailBite must move the lib to temp-folder, or else you get that error message (same name ...). It´s copied back later (on success).
lexvictory wrote:and can the preferences file location be explained?
i know its in app data, but is there a way to make it use a local one (for using more than one pb/tailbite version for example)?
TailBite determines which version of purebasic is running by it´s registry key. It then runs PBCompiler to check for the version installed and reads the correct TailBite.prefs file from i.e. C:\Dokuments and settings\[USERNAME]\Application Data\TailBite\TailBite_420.prefs .
lexvictory wrote:creating a tailbite.prefs in the tailbite directory seems to work, is that what makes it local?
Yes, thats exactly the way its intented to work for a local installation of TailBite.