Page 23 of 40

Posted: Wed May 17, 2006 2:10 pm
by Polo
El_Choni wrote:Polo:

There needs to be at least one ProcedureDLL for your code to be converted to a purelib, but there isn't any in your file. ProcedureDLLs get converted to PB functions. Simple procedures are just code used by those functions, and are discarded if no ProcedureDLL is found, so TailBite assumes that you're trying to build a resident file.
yep, but even with putting a ProcedureDLL (i have thousand of them in fact) in the file that includes the one i gave you, it still creates a resident file :)

Posted: Wed May 17, 2006 2:35 pm
by El_Choni
Send them to me, please ;)

EDIT: ok, you told me you couldn't. Well, let's hope the bug disappears by itself in following versions...

Posted: Wed May 17, 2006 3:16 pm
by Polo
Well, in fact, i've just tested this :

Code: Select all

ProcedureDLL test()
  
EndProcedure
I try to Tailbite it, it just make a resident...

Posted: Wed May 17, 2006 4:46 pm
by El_Choni
Thx, I'll check...

Posted: Wed May 17, 2006 4:51 pm
by Polo
I'm using JapBe, if it can help ?

Posted: Thu May 18, 2006 6:52 am
by IceSoft
Same here with the orginal PB IDE.

Posted: Thu May 18, 2006 8:37 am
by El_Choni
Compiles here with the PB IDE and TailBite 1.3 PR 1.3 :?

Posted: Thu May 18, 2006 8:51 am
by IceSoft
I got an error with PR1.3

Code: Select all

ProcedureDLL.l test() 
  Static w.l = 1
   w+1
  ProcedureReturn w
EndProcedure

Posted: Thu May 18, 2006 9:29 am
by El_Choni
Icesoft: fixed, thx.

Posted: Thu May 18, 2006 4:08 pm
by Polo
Sorry, but the problem is still there with 1.4 (with the file i've sent you as an included file).
however now a simple ProcedureDLL in an empty file compiles the lib.

Posted: Thu May 18, 2006 4:11 pm
by El_Choni
But, Polo, in that include there are only Procedures, not ProcedureDLLs, so the lib won't be compiled. What would you expect it to do? Compile a lib with no functions? Sorry, I don't understand :oops:

Posted: Thu May 18, 2006 4:58 pm
by Polo
El_Choni wrote:But, Polo, in that include there are only Procedures, not ProcedureDLLs, so the lib won't be compiled. What would you expect it to do? Compile a lib with no functions? Sorry, I don't understand :oops:
No, i meant that :

Code: Select all

IncludeFile "myfile.pbi"

ProcedureDLL test()

EndProcedure
THIS doesnt work :) It creates a resident, bu there is a procedureDLL in it :)

Posted: Thu May 18, 2006 5:19 pm
by El_Choni
Ok, this makes more sense :D I'll check it at home, thank you.

Posted: Thu May 18, 2006 5:26 pm
by Polo
El_Choni wrote:Ok, this makes more sense :D I'll check it at home, thank you.
Cool, thanks a lot !

Posted: Sun May 21, 2006 2:41 am
by va!n
@El_Choni:
i wrote you a PM with a bug report and now i found another bug with the lastest version. i did a small example of the latest bug i found:

Code: Select all

ProcedureDLL.s Test_ReturnString()       ; Trying to return a string...
   Protected info.s
   info.s = "Are you able to read this string when calling the command?"
   ProcedureReturn info.s
EndProcedure
returns only "???????????" ^^

however, if you use the command and compile to an exe... you can read the string with an hexed in the file ^^ Btw, when using this command, 1 k will be added to the exe. Is this due fact that PB will link _SYS_InitString to the exe too?