Click here to Skip to main content
15,898,036 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: binary to GdiPlus::Image Pin
bob169723-Feb-08 9:05
bob169723-Feb-08 9:05 
GeneralRe: binary to GdiPlus::Image Pin
bob169723-Feb-08 9:13
bob169723-Feb-08 9:13 
GeneralDLL Function call Pin
ginjikun3-Feb-08 1:09
ginjikun3-Feb-08 1:09 
GeneralRe: DLL Function call Pin
Gary R. Wheeler3-Feb-08 1:30
Gary R. Wheeler3-Feb-08 1:30 
GeneralRe: DLL Function call Pin
ginjikun3-Feb-08 1:38
ginjikun3-Feb-08 1:38 
GeneralRe: DLL Function call Pin
Gary R. Wheeler3-Feb-08 1:46
Gary R. Wheeler3-Feb-08 1:46 
GeneralRe: DLL Function call Pin
ginjikun3-Feb-08 2:03
ginjikun3-Feb-08 2:03 
GeneralRe: DLL Function call Pin
Gary R. Wheeler3-Feb-08 2:17
Gary R. Wheeler3-Feb-08 2:17 
A common approach to keeping the size of a data structure limited is to allocate a fixed number of items and place them in a list of their own at the beginning of the program. This list is called the 'pool'. When the program needs a new item, it removes one from the pool. When it's done with the item, it puts it back in the pool. If the pool is ever empty when it needs a new item, it knows that the data structure has reached its size limit and it can react accordingly.

This pool is a global resource. If you were to have multiple threads accessing it, thread 1 could be partway through removing an entry from the pool while thread 2 could attempt to add an entry to the pool. Pointers to the beginning and end of the pool could be set incorrectly. Later accesses might try to get an item from the pool that is really in use elsewhere, or items might be lost instead of being returned to the pool.

Software Zen: delete this;
Fold With Us![^]

GeneralRe: DLL Function call Pin
ginjikun3-Feb-08 2:33
ginjikun3-Feb-08 2:33 
GeneralRe: DLL Function call Pin
Gary R. Wheeler3-Feb-08 2:41
Gary R. Wheeler3-Feb-08 2:41 
GeneralRe: DLL Function call Pin
ginjikun3-Feb-08 3:13
ginjikun3-Feb-08 3:13 
GeneralRe: DLL Function call Pin
Gary R. Wheeler4-Feb-08 23:55
Gary R. Wheeler4-Feb-08 23:55 
GeneralRe: DLL Function call Pin
CPallini3-Feb-08 2:12
mveCPallini3-Feb-08 2:12 
GeneralRe: DLL Function call Pin
ginjikun3-Feb-08 2:36
ginjikun3-Feb-08 2:36 
GeneralRe: DLL Function call Pin
CPallini3-Feb-08 2:44
mveCPallini3-Feb-08 2:44 
GeneralRe: DLL Function call Pin
ginjikun3-Feb-08 3:10
ginjikun3-Feb-08 3:10 
GeneralRe: DLL Function call Pin
Iain Clarke, Warrior Programmer4-Feb-08 1:33
Iain Clarke, Warrior Programmer4-Feb-08 1:33 
Generallink with C runtime library Pin
George_George2-Feb-08 21:48
George_George2-Feb-08 21:48 
GeneralRe: link with C runtime library Pin
Gary R. Wheeler3-Feb-08 1:38
Gary R. Wheeler3-Feb-08 1:38 
GeneralRe: link with C runtime library Pin
George_George3-Feb-08 14:18
George_George3-Feb-08 14:18 
GeneralRe: link with C runtime library Pin
Iain Clarke, Warrior Programmer4-Feb-08 1:42
Iain Clarke, Warrior Programmer4-Feb-08 1:42 
GeneralRe: link with C runtime library Pin
George_George4-Feb-08 1:47
George_George4-Feb-08 1:47 
GeneralRe: link with C runtime library Pin
Iain Clarke, Warrior Programmer4-Feb-08 1:52
Iain Clarke, Warrior Programmer4-Feb-08 1:52 
GeneralRe: link with C runtime library Pin
George_George4-Feb-08 1:55
George_George4-Feb-08 1:55 
GeneralRe: link with C runtime library Pin
Gary R. Wheeler5-Feb-08 0:01
Gary R. Wheeler5-Feb-08 0:01 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.