[Windows Mobile Software Development] stevenh78:
hm.... every time I run realloc, I get an error, here are the first two sections of my map:

00000000 - 01f701fe L01f701fe NUL

01f701fe - 01f701fe L00000000 Start: first DLL address

01f701fe - 01f8d000 L0001ce02 NUL

01f8d000 - 01fb1000 L00024000 Virtual base address of PocketFS.dll

01fb1000 - 01fd2000 L00021000 unknown data of region_0 PocketFS.dll

01fd2000 - 01fd3000 L00001000 initialized data of region_1 PocketFS.dll

01fd3000 - 01fd4000 L00001000 initialized data of region_2 PocketFS.dll

01fd4000 - 01fe1000 L0000d000 NUL

01fe1000 - 01fe2000 L00001000 initialized data of region_1 cecompr.dll

01fe2000 - 01fe3000 L00001000 initialized data of region_1 zylonite_dma.dll

01fe3000 - 01fe5000 L00002000 initialized data of region_1 ONDisk.dll

01fe5000 - 01fe6000 L00001000 initialized data of region_1 nandspy.dll

01fe6000 - 01fe8000 L00002000 initialized data of region_1 lsomacore.dll

01fe8000 - 01fec000 L00004000 initialized data of region_1 LsOmaClient.dll

01fec000 - 01fed000 L00001000 initialized data of region_1 lsfilter.dll

01fed000 - 01fee000 L00001000 initialized data of region_1 ceddk.dll

01fee000 - 01fef000 L00001000 NUL

01fef000 - 01ff0000 L00001000 initialized data of region_1 regenum.dll

01ff0000 - 01ff1000 L00001000 initialized data of region_1 pm.dll

01ff1000 - 01ff2000 L00001000 initialized data of region_1 mspart.dll

01ff2000 - 01ff3000 L00001000 initialized data of region_1 mencfilt.dll

01ff3000 - 01ff4000 L00001000 initialized data of region_1 imgfs.dll

01ff4000 - 01ff5000 L00001000 initialized data of region_1 fsreplxfilt.dll

01ff5000 - 01ff6000 L00001000 initialized data of region_1 fsdmgr.dll

01ff6000 - 01ff7000 L00001000 initialized data of region_1 fatutil.dll

01ff7000 - 01ff8000 L00001000 initialized data of region_1 fatfsd.dll

01ff8000 - 01ff9000 L00001000 initialized data of region_1 diskcache.dll

01ff9000 - 01ffa000 L00001000 initialized data of region_1 devmgr.dll

01ffa000 - 01ffc000 L00002000 initialized data of region_1 crypt32.dll

01ffc000 - 01ffd000 L00001000 initialized data of region_1 coredll.dll

01ffd000 - 01ffe000 L00001000 initialized data of region_1 certmod.dll

01ffe000 - 01fff000 L00001000 initialized data of region_1 cachefilt.dll

01fff000 - 02000000 L00001000 initialized data of region_1 busenum.dll

02000000 - 02000000 L00000000 End: last DLL address

02000000 - 03dcc000 L01dcc000 NUL

03dcc000 - 03dd0000 L00004000 Virtual base address of cecompr.dll

03dd0000 - 03dd6000 L00006000 Virtual base address of zylonite_dma.dll

03dd6000 - 03def000 L00019000 Virtual base address of ONDisk.dll

03def000 - 03df6000 L00007000 Virtual base address of nandspy.dll

03df6000 - 03e03000 L0000d000 Virtual base address of lsomacore.dll

03e03000 - 03e44000 L00041000 Virtual base address of LsOmaClient.dll

03e44000 - 03e4a000 L00006000 Virtual base address of lsfilter.dll

03e4a000 - 03e50000 L00006000 Virtual base address of ceddk.dll

03e50000 - 03e53000 L00003000 NUL

03e53000 - 03e57000 L00004000 Virtual base address of regenum.dll

03e57000 - 03e66000 L0000f000 Virtual base address of pm.dll

03e66000 - 03e6e000 L00008000 Virtual base address of mspart.dll

03e6e000 - 03e7e000 L00010000 Virtual base address of mencfilt.dll

03e7e000 - 03e8a000 L0000c000 Virtual base address of imgfs.dll

03e8a000 - 03e94000 L0000a000 Virtual base address of fsreplxfilt.dll

03e94000 - 03eaa000 L00016000 Virtual base address of fsdmgr.dll

03eaa000 - 03eb3000 L00009000 Virtual base address of fatutil.dll

03eb3000 - 03ec6000 L00013000 Virtual base address of fatfsd.dll

03ec6000 - 03ecc000 L00006000 Virtual base address of diskcache.dll

03ecc000 - 03ed8000 L0000c000 Virtual base address of devmgr.dll

03ed8000 - 03f4a000 L00072000 Virtual base address of crypt32.dll

03f4a000 - 03fe1000 L00097000 Virtual base address of coredll.dll

03fe1000 - 03fef000 L0000e000 Virtual base address of certmod.dll

03fef000 - 03ffa000 L0000b000 Virtual base address of cachefilt.dll

03ffa000 - 04000000 L00006000 Virtual base address of busenum.dll

04000000 - 80001000 L7c001000 NUL

80001000 - 80001000 L00000000 Start: first physical address

80001000 - 80002000 L00001000 RomLDR.PARTHDR

The original looked like this:

00000000 - 01f701fe L01f701fe NUL

01f701fe - 01f701fe L00000000 Start: first DLL address

01f701fe - 01fb0000 L0003fe02 NUL

01fb0000 - 01fd4000 L00024000 Virtual base address of PocketFS.dll

01fb1000 - 01fd4000 L00023000 !!!!!!!!!!!!!!!!!!

01fb1000 - 01fd2000 L00021000 unknown data of region_0 PocketFS.dll

01fd2000 - 01fd3000 L00001000 initialized data of region_1 PocketFS.dll

01fd3000 - 01fd4000 L00001000 initialized data of region_2 PocketFS.dll

01fd4000 - 01fe2000 L0000e000 NUL

01fe2000 - 01fe3000 L00001000 initialized data of region_1 zylonite_dma.dll

01fe3000 - 01fe5000 L00002000 initialized data of region_1 ONDisk.dll

01fe5000 - 01fe6000 L00001000 initialized data of region_1 nandspy.dll

01fe6000 - 01fe8000 L00002000 initialized data of region_1 lsomacore.dll

01fe8000 - 01fec000 L00004000 initialized data of region_1 LsOmaClient.dll

01fec000 - 01fed000 L00001000 initialized data of region_1 lsfilter.dll

01fed000 - 01fee000 L00001000 initialized data of region_1 ceddk.dll

01fee000 - 01fef000 L00001000 initialized data of region_1 cecompr.dll

01fef000 - 01ff0000 L00001000 initialized data of region_1 regenum.dll

01ff0000 - 01ff1000 L00001000 initialized data of region_1 pm.dll

01ff1000 - 01ff2000 L00001000 initialized data of region_1 mspart.dll

01ff2000 - 01ff3000 L00001000 initialized data of region_1 mencfilt.dll

01ff3000 - 01ff4000 L00001000 initialized data of region_1 imgfs.dll

01ff4000 - 01ff5000 L00001000 initialized data of region_1 fsreplxfilt.dll

01ff5000 - 01ff6000 L00001000 initialized data of region_1 fsdmgr.dll

01ff6000 - 01ff7000 L00001000 initialized data of region_1 fatutil.dll

01ff7000 - 01ff8000 L00001000 initialized data of region_1 fatfsd.dll

01ff8000 - 01ff9000 L00001000 initialized data of region_1 diskcache.dll

01ff9000 - 01ffa000 L00001000 initialized data of region_1 devmgr.dll

01ffa000 - 01ffc000 L00002000 initialized data of region_1 crypt32.dll

01ffc000 - 01ffd000 L00001000 initialized data of region_1 coredll.dll

01ffd000 - 01ffe000 L00001000 initialized data of region_1 certmod.dll

01ffe000 - 01fff000 L00001000 initialized data of region_1 cachefilt.dll

01fff000 - 02000000 L00001000 initialized data of region_1 busenum.dll

02000000 - 02000000 L00000000 End: last DLL address

02000000 - 03dd0000 L01dd0000 NUL

03dd0000 - 03dd6000 L00006000 Virtual base address of zylonite_dma.dll

03dd6000 - 03def000 L00019000 Virtual base address of ONDisk.dll

03def000 - 03df6000 L00007000 Virtual base address of nandspy.dll

03df6000 - 03e03000 L0000d000 Virtual base address of lsomacore.dll

03e03000 - 03e44000 L00041000 Virtual base address of LsOmaClient.dll

03e44000 - 03e4a000 L00006000 Virtual base address of lsfilter.dll

03e4a000 - 03e50000 L00006000 Virtual base address of ceddk.dll

03e50000 - 03e54000 L00004000 Virtual base address of cecompr.dll

03e54000 - 03e58000 L00004000 Virtual base address of regenum.dll

03e58000 - 03e67000 L0000f000 Virtual base address of pm.dll

03e67000 - 03e6f000 L00008000 Virtual base address of mspart.dll

03e6f000 - 03e7f000 L00010000 Virtual base address of mencfilt.dll

03e7f000 - 03e8b000 L0000c000 Virtual base address of imgfs.dll

03e8b000 - 03e95000 L0000a000 Virtual base address of fsreplxfilt.dll

03e95000 - 03eab000 L00016000 Virtual base address of fsdmgr.dll

03eab000 - 03eb4000 L00009000 Virtual base address of fatutil.dll

03eb4000 - 03ec7000 L00013000 Virtual base address of fatfsd.dll

03ec7000 - 03ecd000 L00006000 Virtual base address of diskcache.dll

03ecd000 - 03ed9000 L0000c000 Virtual base address of devmgr.dll

03ed9000 - 03f4b000 L00072000 Virtual base address of crypt32.dll

03f4b000 - 03fe1000 L00096000 Virtual base address of coredll.dll

03fe1000 - 03fef000 L0000e000 Virtual base address of certmod.dll

03fef000 - 03ffa000 L0000b000 Virtual base address of cachefilt.dll

03ffa000 - 04000000 L00006000 Virtual base address of busenum.dll

04000000 - 80001000 L7c001000 NUL

80001000 - 80001000 L00000000 Start: first physical address

80001000 - 80002000 L00001000 RomLDR.PARTHDR

cecompr.dll grew in size so had to relocate it, but kept order the same in both sections...

I get an unhandled exception and the error saying not enough space...

Thanks

Steven