Code PBLibs in PB

Developed or developing a new product in PureBasic? Tell the world about it.
Justin
Addict
Addict
Posts: 948
Joined: Sat Apr 26, 2003 2:49 pm

Post by Justin »

I tried init/end with no luck, this crashes:

global pmalloc.IMalloc

ProcedureDLL Malloc_Init()
CoGetMalloc_(1,@pmalloc)
EndProcedure

ProcedureDLL Malloc_End()
pmalloc\Release()
EndProcedure

proceduredll malloc(size.l)
pmalloc\Alloc(size)
endprocedure
El_Choni
TailBite Expert
TailBite Expert
Posts: 1007
Joined: Fri Apr 25, 2003 6:09 pm
Location: Spain

Post by El_Choni »

Init/End functions do work. The problem was with calling methods (TailBite assumed [edx+offset] to be an external reference), fixed now thanks to you. But it should have shown an error from FAsm (here it did) instead of crashing.

You can download the Installer again or use that button in TailBite Manager which says: "Check for updates" (make sure you're connected to Internet).

Thanks again,
El_Choni
scurrier
Enthusiast
Enthusiast
Posts: 169
Joined: Sat May 03, 2003 4:10 am

Post by scurrier »

El_Choni wrote:@scurrier: sorry, didn´t have too much time to reply yesterday. You only need to put your code in a ProcedureDLL (for exported functions). Then select TailBite in the Tools menu, and relaunch PureBasic in order to test your function.

@Manne: sent.

EDIT: added support for InitFunction and EndFunction through "_Init" and "_End" procedure suffixes. These procedures can´t have arguments, nor procedurereturns. Fixed label problem (I think).

Regards,
I dont have TailBite in my tools section of PB what should i do?
dmoc
Enthusiast
Enthusiast
Posts: 739
Joined: Sat Apr 26, 2003 12:40 am

Post by dmoc »

El_Choni, my first look at TailBite, what port/s are you using to check for updates?

Edit: never mind, I just discovered what the "Extract tailbite Sources" button is for :D
Justin
Addict
Addict
Posts: 948
Joined: Sat Apr 26, 2003 2:49 pm

Post by Justin »

Great, now it works. But i noticed ProcedureDLL/EndProcedure is case sensitive, otherwise it crashes. thanks.
El_Choni
TailBite Expert
TailBite Expert
Posts: 1007
Joined: Fri Apr 25, 2003 6:09 pm
Location: Spain

Post by El_Choni »

I dont have TailBite in my tools section of PB what should i do?
First of all, install it. If you already have, reinstall it so it adds itself as a PureBasic tool (it won´t do it if you already have 9 tools in your menu, but I can change that).

ProcedureDLL case problem fixed.
El_Choni
Polo
Addict
Addict
Posts: 2422
Joined: Tue May 06, 2003 5:07 pm
Location: UK

Post by Polo »

can you send me the files by mail please ?

webmaster@gtnsoft.com

Your website is still not running
Polo
Addict
Addict
Posts: 2422
Joined: Tue May 06, 2003 5:07 pm
Location: UK

Post by Polo »

please !
Polo
Addict
Addict
Posts: 2422
Joined: Tue May 06, 2003 5:07 pm
Location: UK

Post by Polo »

I don't want to be boring, but I need it :D Especially fro the global and array, which have been included recently ! If someone have the last release, please send me on my address, it would be great !
El_Choni
TailBite Expert
TailBite Expert
Posts: 1007
Joined: Fri Apr 25, 2003 6:09 pm
Location: Spain

Post by El_Choni »

Sent. Anyway, the website works perfectly:

http://www.terra.es/personal5/temporald ... taller.exe

Regards,
El_Choni
Polo
Addict
Addict
Posts: 2422
Joined: Tue May 06, 2003 5:07 pm
Location: UK

Post by Polo »

Thanks a lot ! I'm currently testing it !

Anyway, the website still doesn't work....

Error Message : "Impossible d'établir une connection avec le serveur"
which mean "Cannot make a connection with server"
User avatar
Rings
Moderator
Moderator
Posts: 1435
Joined: Sat Apr 26, 2003 1:11 am

Post by Rings »

Polo wrote:Thanks a lot ! I'm currently testing it !

Anyway, the website still doesn't work....

Error Message : "Impossible d'établir une connection avec le serveur"
which mean "Cannot make a connection with server"
the website works perfectly here. maybe you have a spy-and-redirect-virus installed.
try to elimate this shit with 'SpyBot Search&Destroy' utility .
SPAMINATOR NR.1
Polo
Addict
Addict
Posts: 2422
Joined: Tue May 06, 2003 5:07 pm
Location: UK

Post by Polo »

I have done it, I have deleted all the bad stuffs this soft found, and it still doesn't work...

Anyway, the Global stuffs still don't work too :?
Justin
Addict
Addict
Posts: 948
Joined: Sat Apr 26, 2003 2:49 pm

Post by Justin »

Now a strange thing happens, this version worked perfectly in my computer XP, then i installed PB in my other comp XP Pro,(just moving the PB folder, paths have changed), when i try to install Tailbite says

PBCompiler: .........\TBUpdater.pb

line 386: ScreenWidth() is not a function an array or a linked list
Polo
Addict
Addict
Posts: 2422
Joined: Tue May 06, 2003 5:07 pm
Location: UK

Post by Polo »

Justin => I had this error while installing, but it doesn't change nothing, the lib works well.


Anyway, I have a little problem with the lib, it works great, I have created 8 functions (ProcedureDLL), and when I try to create one more, I have the usual error "error line ...." with the usual line :)
Do you know why it does that ?
Post Reply