Click here to Skip to main content
15,919,028 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: out of memory Pin
SamirSood19-Sep-02 20:37
SamirSood19-Sep-02 20:37 
GeneralTwo dimensional array Pin
needhelp5719-Sep-02 7:04
needhelp5719-Sep-02 7:04 
GeneralRe: Two dimensional array Pin
User 988519-Sep-02 7:04
User 988519-Sep-02 7:04 
GeneralRe: Two dimensional array Pin
needhelp5721-Sep-02 10:55
needhelp5721-Sep-02 10:55 
GeneralRe: Two dimensional array Pin
Michael Dunn19-Sep-02 7:53
sitebuilderMichael Dunn19-Sep-02 7:53 
GeneralRe: Two dimensional array Pin
valikac19-Sep-02 10:00
valikac19-Sep-02 10:00 
Generalmemory mapped file Pin
User 988519-Sep-02 6:43
User 988519-Sep-02 6:43 
GeneralRe: memory mapped file Pin
valikac19-Sep-02 10:06
valikac19-Sep-02 10:06 
The overhead includes performance loss and possible synchronization problems. The program could suffer a performance loss since more than one thread could be reallocation larger virtual memory.

As the threads access the mapped files, you will need to implement a synchronization algorithm. Depending on the number of processes the program creates, you will need a CRITICAL_SECTION or a mutex.

Can you implement a solution such that the program will allocate memory before creating the threads? Thus, you will not have to allocate more virtual memory as often.

Kuphryn
GeneralRe: memory mapped file Pin
Neville Franks19-Sep-02 11:27
Neville Franks19-Sep-02 11:27 
GeneralRe: memory mapped file Pin
User 988519-Sep-02 15:35
User 988519-Sep-02 15:35 
GeneralRe: memory mapped file Pin
Neville Franks20-Sep-02 11:07
Neville Franks20-Sep-02 11:07 
GeneralRe: memory mapped file Pin
User 988520-Sep-02 12:11
User 988520-Sep-02 12:11 
GeneralRe: memory mapped file Pin
Neville Franks20-Sep-02 12:23
Neville Franks20-Sep-02 12:23 
GeneralAssigning character string to LPCWSTR Pin
abhinarulkar19-Sep-02 6:32
abhinarulkar19-Sep-02 6:32 
GeneralRe: Assigning character string to LPCWSTR Pin
dabs19-Sep-02 6:40
dabs19-Sep-02 6:40 
GeneralRegisterClass problem Pin
saekth19-Sep-02 6:30
saekth19-Sep-02 6:30 
GeneralRe: RegisterClass problem Pin
Joaquín M López Muñoz19-Sep-02 9:14
Joaquín M López Muñoz19-Sep-02 9:14 
GeneralC++ And Getting Images Off The Web Pin
OpenGL19-Sep-02 5:24
OpenGL19-Sep-02 5:24 
GeneralRe: C++ And Getting Images Off The Web Pin
jmkhael19-Sep-02 5:38
jmkhael19-Sep-02 5:38 
GeneralRe: C++ And Getting Images Off The Web Pin
Michael Dunn19-Sep-02 5:36
sitebuilderMichael Dunn19-Sep-02 5:36 
GeneralRe: C++ And Getting Images Off The Web Pin
TyMatthews19-Sep-02 5:48
TyMatthews19-Sep-02 5:48 
GeneralRe: C++ And Getting Images Off The Web Pin
OpenGL19-Sep-02 6:47
OpenGL19-Sep-02 6:47 
GeneralRe: C++ And Getting Images Off The Web Pin
OpenGL19-Sep-02 6:50
OpenGL19-Sep-02 6:50 
GeneralRe: C++ And Getting Images Off The Web Pin
OpenGL19-Sep-02 8:53
OpenGL19-Sep-02 8:53 
GeneralSysAllocString doesnt compile Pin
ns19-Sep-02 5:18
ns19-Sep-02 5:18 

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.