ploadlib - Finished
ploadlib - Finished
Hey guys,
Ok, the final version of ploadlib is done, there has been a lot of bugs fixed, it is quick and reliable now
Consult the docs, it has all the syntax explained
In case if you dont know, ploadlib is a one function, PNG loader for FB thats small and easy to use
Changes:
Get Error function
tRNS support
Bugs fixed
Optimized more
ploadlib Download Here
Enjoy
Thrawn
Ok, the final version of ploadlib is done, there has been a lot of bugs fixed, it is quick and reliable now
Consult the docs, it has all the syntax explained
In case if you dont know, ploadlib is a one function, PNG loader for FB thats small and easy to use
Changes:
Get Error function
tRNS support
Bugs fixed
Optimized more
ploadlib Download Here
Enjoy
Thrawn
-
- Posts: 8641
- Joined: May 28, 2005 3:28
- Contact:
Just looked at your code and I have to point this out:
You have a horrible memory leak in the code and in the examples in the document.
The memory leak in the library source is in the PLoad function. You allocate and read the file into a memory buffer, but you don't deallocate said buffer after passing it off the the MPLoad function.
The leak in the examples in the document are that you never destroy/deallocate the image buffers (you do however in the example file).
Also, it's spelled license.
Just thought you should be made aware of these things.
You have a horrible memory leak in the code and in the examples in the document.
The memory leak in the library source is in the PLoad function. You allocate and read the file into a memory buffer, but you don't deallocate said buffer after passing it off the the MPLoad function.
The leak in the examples in the document are that you never destroy/deallocate the image buffers (you do however in the example file).
Also, it's spelled license.
Just thought you should be made aware of these things.
At 1000101:
Thank you, its all fixed now...I think, you might want to double check on that
At Nodtveidt:
Whats a dc?
At Clyde:
http://www.freebasic.net/forum/viewtopic.php?t=4978 ;-)
Thrawn
Thank you, its all fixed now...I think, you might want to double check on that
At Nodtveidt:
Whats a dc?
At Clyde:
http://www.freebasic.net/forum/viewtopic.php?t=4978 ;-)
Thrawn
-
- Site Admin
- Posts: 6323
- Joined: Jul 05, 2005 17:32
- Location: Manchester, Lancs
-
- Site Admin
- Posts: 6323
- Joined: Jul 05, 2005 17:32
- Location: Manchester, Lancs
Here's the latest version of PLoad.
Apart from minor fixes and corrections, PLoad is now fully compatible with the latest versions of FreeBASIC. It also now features some support for paletted screen modes. See the readme for more information.
Apart from minor fixes and corrections, PLoad is now fully compatible with the latest versions of FreeBASIC. It also now features some support for paletted screen modes. See the readme for more information.
-
- Posts: 785
- Joined: May 28, 2005 9:19
- Location: Finland