PureBasic 5.40 LTS beta 10 is out !
Re: PureBasic 5.40 LTS beta 3 is out !
Just wondering which library has increased in size. Maybe he used http library that now uses curl?
I'm using before curl dll but now no need. 200kb is small compared to added feature.
http://www.purebasic.fr/english/viewtop ... 36#p470736
I'm using before curl dll but now no need. 200kb is small compared to added feature.
http://www.purebasic.fr/english/viewtop ... 36#p470736
[Registered PB User since 2006]
[PureBasic 6.20][SpiderBasic 2.2]
[RP4 x64][Win 11 x64][Ubuntu x64]
Re: PureBasic 5.40 LTS beta 3 is out !
something that i never seen in purebasic but is in c : when you compile, make a warning about orphan variable.
Ex : the variable XXX is define but never use.
It's just a idea.
Ex : the variable XXX is define but never use.
It's just a idea.
- langinagel
- Enthusiast
- Posts: 131
- Joined: Fri Jan 28, 2005 11:53 pm
- Location: Germany
- Contact:
Re: PureBasic 5.40 LTS beta 3 is out !
@supercdr
some kind of a lint program would be fine for Purebasic - either inside the compiler or extern.
But this would require to define some common coding rules before:
no orphan variables,
no dead code,
just one procedurereturn per procedure,
...
MISRA rules or JSF could provide some orientation.
..and ..by the way:
THX Fred, Freak and all of PB team for the great work.
just a hint: checkinstall may need an update.
Greetings
LN
some kind of a lint program would be fine for Purebasic - either inside the compiler or extern.
But this would require to define some common coding rules before:
no orphan variables,
no dead code,
just one procedurereturn per procedure,
...
MISRA rules or JSF could provide some orientation.
..and ..by the way:
THX Fred, Freak and all of PB team for the great work.
just a hint: checkinstall may need an update.
Greetings
LN
-
- Addict
- Posts: 1517
- Joined: Wed Nov 12, 2008 5:01 pm
- Location: Russia
Re: PureBasic 5.40 LTS beta 3 is out !
It is a good idea. It is a pity that the PB is not supported.supercdfr wrote:something that i never seen in purebasic but is in c : when you compile, make a warning about orphan variable.
Example where necessary.
Code: Select all
EnableExplicit
Procedure.q File_Size(File.s)
Protected Size.q
Size=FileSize(File)
ProcedureReturn Size
EndProcedure
Procedure.q File_Size_2(File.s)
Protected Size,q
Size=FileSize(File)
ProcedureReturn Size
EndProcedure
Find this error is difficult.
Re: PureBasic 5.40 LTS beta 3 is out !
As a first, single-pass compiler friendly solution:
or
Code: Select all
procedure test()
beginProtected
a.q
b.s
c.d
endProtected
; ...
endProcedure ; test
Code: Select all
procedure test()
var
a.q
b.s
c.d
endVar
; ...
endProcedure ; test
Re: PureBasic 5.40 LTS beta 3 is out !
Great update, thanks!
I was testing the CGI library and it seems that the WriteCGIStringN command doesn't accept the string encoding parameter:
Result:
WriteCGIStringN(): Incorrect number of parameters.
Cheers.
I was testing the CGI library and it seems that the WriteCGIStringN command doesn't accept the string encoding parameter:
Code: Select all
WriteCGIStringN(Response, #PB_Ascii)
WriteCGIStringN(): Incorrect number of parameters.
Cheers.
- langinagel
- Enthusiast
- Posts: 131
- Joined: Fri Jan 28, 2005 11:53 pm
- Location: Germany
- Contact:
Re: PureBasic 5.40 LTS beta 3 is out !
There were voices here complaining about big library sizes.
I thought some kind of useless maximum would be interesting to see:
This ended up with 2,248,304 compiled Bytes under 5.40 beta with Ubuntu x86 Linux.
This might be big, but the current PC RAMs range higher. Even Raspberry Pi could work with this...
I have seen other compilers ending up with about 1 MB only for print "hello world".
So...don't worry, be happy.
I thought some kind of useless maximum would be interesting to see:
Code: Select all
UseSQLiteDatabase()
UsePostgreSQLDatabase()
UseODBCDatabase()
UseJPEG2000ImageDecoder()
UseJPEG2000ImageEncoder()
UseJPEGImageDecoder()
UseJPEGImageEncoder()
UsePNGImageDecoder()
UsePNGImageEncoder()
UseTGAImageDecoder()
UseTIFFImageDecoder()
UseBriefLZPacker()
UseJCALG1Packer()
UseLZMAPacker()
UseTARPacker()
UseZipPacker()
UseFLACSoundDecoder()
UseOGGSoundDecoder()
InitJoystick()
InitKeyboard()
InitMouse()
InitMovie()
InitNetwork()
InitSprite()
OpenConsole()
Input()
This might be big, but the current PC RAMs range higher. Even Raspberry Pi could work with this...
I have seen other compilers ending up with about 1 MB only for print "hello world".
So...don't worry, be happy.
Re: PureBasic 5.40 LTS beta 3 is out !
This api function stopped working in the latest beta:
The error is "Bad parameter type, number expected instead of string."
According to msdn, the last parameter should be LPCTSTR. What should i do now? Send a pointer instead?
Code: Select all
CreateSemaphore_(0,0,1,"test")
According to msdn, the last parameter should be LPCTSTR. What should i do now? Send a pointer instead?
Re: PureBasic 5.40 LTS beta 3 is out !
yes change "test" to @"test"
Re: PureBasic 5.40 LTS beta 3 is out !
Thanks. Seems to be working.Keya wrote:yes change "test" to @"test"
Re: PureBasic 5.40 LTS beta 4 is out !
Beta 4 is out ! Thanks all for testing.
Re: PureBasic 5.40 LTS beta 4 is out !
The following changes have been made to the VectorDrawing lib since beta 3:
- The DotPath(), DashPath() & CustomDashPath() commands now have an optional 'StartOffset' parameter
- The 'Distance' parameter of DotPath() has been changed: It now refers to the distance between the center of each dot (not the space between the dots)
quidquid Latine dictum sit altum videtur
Re: PureBasic 5.40 LTS beta 4 is out !
Thanks!
However, there is something really wrong with at least some winapi functions.
Try this:
However, there is something really wrong with at least some winapi functions.
Try this:
Code: Select all
; this one is ok
MessageBox_(0,"test","test",#MB_OK|#MB_ICONINFORMATION)
; this one will show yes and no buttons if the debugger is on
test.s = "test"
MessageBox_(0,"test" + test,"test",#MB_OK|#MB_ICONINFORMATION)
; this one will die with invalid memory access
test.s = "testtesttest"
MessageBox_(0,"test" + test,"test",#MB_OK|#MB_ICONINFORMATION)
; this one will fail to compile with assembler error (PureBasic.asm [237])
test.s = "test"
MessageBox_(0,"test " + test + "test","test",#MB_OK|#MB_ICONINFORMATION)
Re: PureBasic 5.40 LTS beta 4 is out !
deseven wrote:Thanks!
However, there is something really wrong with at least some winapi functions.Code: Select all
[/quote] [url=http://www.purebasic.fr/english/viewtopic.php?f=4&t=63349]Same problem mentioned here[/url] when concatenating strings in api calls.
The nice thing about standards is there are so many to choose from. ~ Andrew Tanenbaum
Re: PureBasic 5.40 LTS beta 5 is out !
Beta 5 is out and only fix one bug with API and string concatenation (which could prevent further testing). On a side note, we have signed the OS X apps since the 5.40 beta, can OS X users tests if it works with gatekeeper activated ? The IDE should open after displaying a warning message without changing the default security features.