The MASM Forum Archive 2004 to 2012

General Forums => The Campus => Topic started by: DC on June 21, 2005, 05:00:42 AM

Title: .DATA Q
Post by: DC on June 21, 2005, 05:00:42 AM
Hey Y'all,
I'm startin' my come back after a lengthy sabatical (had a major break-through that I thought I'd never get)...
now it's like startin' over... kinda...
anyway...
memory alocated thusly...
.data?
_bc      dq      1024 dup (?)
it doesn't need un-alocated, right? even in a .dll ?
thanx,
DC
p.s. miss y'all
p.p.s. WOW!... this forum has some way cool changes
Title: Re: .DATA Q
Post by: hutch-- on June 21, 2005, 05:05:45 AM
Where have I seen that face before ? Welcome back.

The data is allocated in the uninitialised data section so it cannot normally be deallocated. If you ned to have memory that can be allocated and deallocated, use one of the dynamic memory functions, VirtualAlloc(), GlobalAlloc() etc ....
Title: Re: .DATA Q
Post by: DC on June 21, 2005, 05:22:52 AM
long time...
hope things are good for ya...
anyway...
my "alocation" is a table (Required by the dll fn's) generated during attach... in the .DATA?
which brings up another q... does every attach generate a new table?
thanx and sorry... I think I knew this stuff already,
DC