Click here to Skip to main content
15,910,009 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: RegCreateKeyEx() info... Pin
CPallini12-May-08 4:26
mveCPallini12-May-08 4:26 
GeneralRe: RegCreateKeyEx() info... Pin
Iain Clarke, Warrior Programmer12-May-08 4:53
Iain Clarke, Warrior Programmer12-May-08 4:53 
QuestionContext menu on .lnk file Pin
john563212-May-08 2:00
john563212-May-08 2:00 
AnswerRe: Context menu on .lnk file Pin
Iain Clarke, Warrior Programmer12-May-08 4:08
Iain Clarke, Warrior Programmer12-May-08 4:08 
QuestionMemory overwritten while pipe writing Pin
krishnan.s12-May-08 1:51
krishnan.s12-May-08 1:51 
AnswerRe: Memory overwritten while pipe writing Pin
Iain Clarke, Warrior Programmer12-May-08 5:18
Iain Clarke, Warrior Programmer12-May-08 5:18 
GeneralRe: Memory overwritten while pipe writing Pin
krishnan.s12-May-08 19:02
krishnan.s12-May-08 19:02 
GeneralRe: Memory overwritten while pipe writing [modified] Pin
Iain Clarke, Warrior Programmer12-May-08 21:57
Iain Clarke, Warrior Programmer12-May-08 21:57 
OK, sounds like you have the right idea though.

I'd have to do a bit of research (ie, *you'll* have to do a bit of research), but there's more ways of dynamically allocating chunks of memory that new/delete. There's also alloc/free, GlobalAlloc/GlobalFree(?)(though that's over the top, and lastly but probably a goodie - CoGetMalloc/IMalloc.

All sorts of different ways, and I'm sure most are thread safe.

If you're doing this LOTS of timesm for a lonf time, then the memory churn could cause you problems. Are your packets a relatively constant length? You could keep a large array of them, mark them as free / in use, and so on, but that becomes very hard and only useful if you *really* have to.

Iain.

Plz sir... CPallini CPallini abuz drugz, plz plz help urgent.

modified on Tuesday, May 13, 2008 4:04 AM

Questionhow to get rid of the following Error Pin
pl_kode12-May-08 0:56
pl_kode12-May-08 0:56 
GeneralRe: how to get rid of the following Error Pin
pl_kode12-May-08 2:07
pl_kode12-May-08 2:07 
AnswerRe: how to get rid of the following Error Pin
David Crow12-May-08 2:56
David Crow12-May-08 2:56 
AnswerRe: how to get rid of the following Error Pin
Stephen Hewitt12-May-08 14:50
Stephen Hewitt12-May-08 14:50 
QuestionPlease with advice on link errors Pin
josip cagalj12-May-08 0:24
josip cagalj12-May-08 0:24 
QuestionRe: Please with advice on link errors Pin
CPallini12-May-08 0:32
mveCPallini12-May-08 0:32 
AnswerRe: Please with advice on link errors Pin
josip cagalj12-May-08 0:41
josip cagalj12-May-08 0:41 
AnswerRe: Please with advice on link errors Pin
David Crow12-May-08 2:58
David Crow12-May-08 2:58 
QuestionHow to resolve linker errors related to IID _MMCVersionInfo Pin
Mushtaque Nizamani11-May-08 23:39
Mushtaque Nizamani11-May-08 23:39 
AnswerRe: How to resolve linker errors related to IID _MMCVersionInfo Pin
Rajkumar R11-May-08 23:54
Rajkumar R11-May-08 23:54 
GeneralRe: How to resolve linker errors related to IID _MMCVersionInfo Pin
Mushtaque Nizamani12-May-08 0:22
Mushtaque Nizamani12-May-08 0:22 
QuestionRe: How to resolve linker errors related to IID _MMCVersionInfo Pin
Rajkumar R12-May-08 1:14
Rajkumar R12-May-08 1:14 
GeneralRe: How to resolve linker errors related to IID _MMCVersionInfo Pin
Mushtaque Nizamani12-May-08 1:26
Mushtaque Nizamani12-May-08 1:26 
GeneralRe: How to resolve linker errors related to IID _MMCVersionInfo Pin
Rajkumar R12-May-08 2:23
Rajkumar R12-May-08 2:23 
GeneralRe: How to resolve linker errors related to IID _MMCVersionInfo Pin
Mushtaque Nizamani12-May-08 2:54
Mushtaque Nizamani12-May-08 2:54 
Questionbitblt(...) fails when we lock and unlock (CTRL+ALT+DEL) the system Pin
Super Hornet11-May-08 23:31
Super Hornet11-May-08 23:31 
QuestionRe: bitblt(...) fails when we lock and unlock (CTRL+ALT+DEL) the system Pin
CPallini11-May-08 23:57
mveCPallini11-May-08 23:57 

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.