Thread View: comp.os.os2.programmer
1 messages
1 total messages
Started by Jen Che Huang
Fri, 28 Dec 1990 08:40
WinAllocMem vs. malloc()
Author: Jen Che Huang
Date: Fri, 28 Dec 1990 08:40
Date: Fri, 28 Dec 1990 08:40
14 lines
1145 bytes
1145 bytes
I was wondering what the difference is between WinAllocMem and malloc, besides that WinAllocMem returns an offset to the heap and malloc returns a pointer to the heap. My problem is, I'm using malloc to allocate memory in my PM App and when I switch between various application and then return to my application, I get a protection violation when my application tries to create a message box. I was wondering if it would be better to use WinAllocMem to allocate memory. My next step would be to allocate my own segment, but that would mean going through my code and changing my allocation scheme. Thanks. Jim Huang
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads