NikDH
January 19th, 2002, 11:17
Hi to all,
well i've a little probl with a prog
well i'd like to know where in the code that prog writes
in a runtime allocated mem a string
Think that mem is allocated via VirtualAlloc() coz its not surely
stack mem and neither heap mem (coz i bpx heapalloc()
and i dont see the prog allocating heap in that mem region,
and heapalloc() should call VirtualAlloc() if i'm right)
so bpx VirtualAlloc() i should find where the prog allocates
that mem region and when i see it has just allocated the mem i'm able to put bpm on it
The probl is that i'm not able to see when the mem is allocated !!!
Sice pops many times demostrating the prog calls various times
the VirtualAlloc() to allocate mem before the mem region i'm interested in and suddenly i found a VirtualAlloc() call
over the mem region i'm interested in and i can see
the page i'm interested in thats already been allocated and the str is already inside it
How is it possible ?
Tnx in advance
NikDH
well i've a little probl with a prog
well i'd like to know where in the code that prog writes
in a runtime allocated mem a string
Think that mem is allocated via VirtualAlloc() coz its not surely
stack mem and neither heap mem (coz i bpx heapalloc()
and i dont see the prog allocating heap in that mem region,
and heapalloc() should call VirtualAlloc() if i'm right)
so bpx VirtualAlloc() i should find where the prog allocates
that mem region and when i see it has just allocated the mem i'm able to put bpm on it
The probl is that i'm not able to see when the mem is allocated !!!
Sice pops many times demostrating the prog calls various times
the VirtualAlloc() to allocate mem before the mem region i'm interested in and suddenly i found a VirtualAlloc() call
over the mem region i'm interested in and i can see
the page i'm interested in thats already been allocated and the str is already inside it
How is it possible ?
Tnx in advance
NikDH