Author Topic: Alloc - program hangs  (Read 12574 times)

Farabi

  • Member
  • ****
  • Posts: 968
  • Neuroscience Fans
Re: Alloc - program hangs
« Reply #15 on: June 15, 2012, 03:50:46 PM »
Use this, it always work. Alloc only able to allocating a few megabytes memory

Code: [Select]

mAlloc proc nSize:dword

add nSize,4
invoke GlobalAlloc,GMEM_ZEROINIT or GMEM_FIXED,nSize
.if eax==0
invoke PERR
invoke MessageBox,NULL,addr mem_error,NULL,MB_OK
.endif

ret
mAlloc endp
http://farabidatacenter.url.ph/MySoftware/
My 3D Game Engine Demo.

Contact me at Whatsapp: 6283818314165