If you reallocate to a larger block, there is no garbage added. The new
added memory will be initialized to 0.
Sorry, my mistake
And you should always expect a pointer change when reallocating memory.
(see the Help file for an example)
Agreed, but the idea there was only that if the pointer ...
Search found 23 matches
- Tue Jun 01, 2004 1:39 pm
- Forum: General Discussion
- Topic: Reallocate memory
- Replies: 7
- Views: 2129
- Mon May 31, 2004 1:37 pm
- Forum: General Discussion
- Topic: Reallocate memory
- Replies: 7
- Views: 2129
- Mon May 31, 2004 1:23 pm
- Forum: Coding Questions
- Topic: reciving a handle as an argument.
- Replies: 3
- Views: 1258
Code: Select all
ProcedureDLL clswin(hand.l)
- Mon Apr 26, 2004 1:56 pm
- Forum: The PureBasic Editor
- Topic: Take jaPBe as the official editor
- Replies: 47
- Views: 21272
- Mon Apr 26, 2004 1:51 pm
- Forum: Coding Questions
- Topic: DirectX needed
- Replies: 8
- Views: 2420
- Fri Apr 23, 2004 10:53 am
- Forum: Feature Requests and Wishlists
- Topic: No "DataSection/EndDataSection" and a request
- Replies: 12
- Views: 2744
- Fri Apr 16, 2004 12:20 pm
- Forum: Windows
- Topic: Keyboard Lights
- Replies: 8
- Views: 4785
This one is more fun :D
I ran into strangeness with GetKeyState() when performed in the loop, it seemed to give false values.. So I just keep track of the key states myself so that when the program is done, the keys are returned to the state that they were in before the program started.
Global LED ...
I ran into strangeness with GetKeyState() when performed in the loop, it seemed to give false values.. So I just keep track of the key states myself so that when the program is done, the keys are returned to the state that they were in before the program started.
Global LED ...
- Fri Apr 16, 2004 11:27 am
- Forum: Tricks 'n' Tips
- Topic: The MOD() Function
- Replies: 10
- Views: 4927
- Fri Apr 16, 2004 11:23 am
- Forum: Feature Requests and Wishlists
- Topic: Consolidation of GETting/SETting Gadget attributes
- Replies: 3
- Views: 1762
- Tue Apr 13, 2004 5:55 pm
- Forum: Coding Questions
- Topic: Storing Pointers
- Replies: 7
- Views: 1904
GedB, you must not have understood his question. He wants to know if pointers to data elements will be valid after a given amount of time. For instance, let's say your program creates a pointer to a variable at address 0xF981B34. After your program has been running a while, something happens that ...
- Tue Apr 06, 2004 12:45 am
- Forum: Coding Questions
- Topic: How to know BytesperSector?
- Replies: 3
- Views: 1231
- Fri Apr 02, 2004 4:15 am
- Forum: General Discussion
- Topic: Sprites: I need to know
- Replies: 3
- Views: 1422
- Wed Mar 31, 2004 9:52 am
- Forum: General Discussion
- Topic: I know you've all heard it before....
- Replies: 46
- Views: 12283
- Wed Mar 31, 2004 4:29 am
- Forum: General Discussion
- Topic: I know you've all heard it before....
- Replies: 46
- Views: 12283
A big problem with having a physical book written is that PB changes constantly. That is, it changes much more often than professional languages such as VB, and there isn't as much of an emphasis on keeping old programs' code intact(not a bad thing for an evolving language like PB). With each new PB ...
- Tue Mar 30, 2004 3:34 am
- Forum: General Discussion
- Topic: Your perferred method of object creation
- Replies: 1
- Views: 1075
Your perferred method of object creation
Just curious
"Objects" being anything you can create or open in PB this way, such as windows, gadgets, images, files, memory, etc.
"Objects" being anything you can create or open in PB this way, such as windows, gadgets, images, files, memory, etc.