The MASM Forum Archive 2004 to 2012

General Forums => The Campus => Topic started by: mywind on November 16, 2010, 10:36:22 AM

Title: code Segment Define DATA bug???
Post by: mywind on November 16, 2010, 10:36:22 AM
Example:

.code
  DestMem db 0024A000h dup (0)

ml.exe will not respondm.

How to solve???

Microsoft (R) Macro Assembler Version 6.15.8803
Copyright (C) Microsoft Corp 1981-2000.  All rights reserved.
Title: Re: code Segment Define DATA bug???
Post by: jj2007 on November 16, 2010, 10:52:17 AM
See here (http://www.masm32.com/board/index.php?topic=10435.msg76444#msg76444), point 2.
Title: Re: code Segment Define DATA bug???
Post by: mywind on November 16, 2010, 11:30:38 AM
Thank you~
Title: Re: code Segment Define DATA bug???
Post by: dedndave on November 16, 2010, 01:59:51 PM
you may be able to use the ORG directive if the data is uninitialized
or - you can just wait for it to finish - lol
it will finish, eventually
Title: Re: code Segment Define DATA bug???
Post by: clive on November 16, 2010, 04:00:24 PM
Quote from: mywind
How to solve???

Stop using large static allocations, and allocate it dynamically.
Title: Re: code Segment Define DATA bug???
Post by: Vortex on November 16, 2010, 05:44:36 PM
Hi mywind,

clive is right. VirtualAlloc,HeapAlloc and GlobalAlloc are some functions to allocate memory dynamically.