Hi,

I have build a CE6.0 debug image. When using VS2005+PB I can debug my image
without problems (LoadCEPC eboot.bin and Target | Attach Device from VS)
When I run the image without VS attached (LoadCEPC nk.bin), all output is
redirected to COM1 in the bootloader (this is so by default, OK), but when at
some point tapi.dll is loaded in memory (see logging), the debug image
crashes.
If I remove the TAPI dependency from my image, the debug image starts fine.
When I run the release version of the image (with TAPI included) it also
works fine, but than COM1 is not stolen for debug messages.

I guess this problem has to do with a conflict between redirecting debug to
COM1 and thus stealing COM1 from the available serial ports in my image. The
problem is I can not see what is going on, because the source code of
TAPI.DLL is not in the shared source.

Does anybody know what might go wrong? This used to work in WinCE5.

Werner

I want to run the debug image without PB to detect some strange problems I
have in a driver (that emits debug logging when something goes wrong with
it). Hooking up VS and PB is tooooo slow and I can not deploy this on several
devices at the same time.
TAPI is included automatically in the image as soon as you include the
network UI component which I need for ethernet (ip address,...)


Logging of what goes wrong when tapi.dll is loaded...


<--- More logging before --->

CardBus.DLL DLL_PROCESS_ATTACH
DeviceFolder::LoadDevice(Drivers\BuiltIn\PCCARD) last 109
TicksDEVICE!RegReadActivationValues
RegQueryValueEx(Drivers\BuiltIn\Serial\BusPrefix) returned 2
OSAXST1: >>> Loading Module 'coredll.dll' (0x8F5F9630) at address
0x40010000-0x400E4000 in Process 'udevice.exe' (0x8F445570)
OSAXST1: >>> Loading Module 'udevice.exe' (0x8F445570) at address
0x00010000-0x00016000 in Process 'udevice.exe' (0x8F445570)
udevice.exe $udevice_0003
FSDMGR!MountTable_t::RegisterVolumeName: Registered "$udevice_0003" at index
9APISCreateAPIHandle: pvData == NULL
FSDMGR!MountTable_t::RegisterVolume: Registered volume at index 9
(Name="$udevice_0003", MountFlags=0x101)OSAXST1: >>> Loading Module
'notify.dll' (0x8F4368AC) at address 0x400F000
0-0x40107000 in Process 'NK.EXE' (0x82A17C80)
OSAXST1: >>> Loading Module 'notify.dll' (0x8F4368AC) at address
0x400F0000-0x40107000 in Process 'udevice.exe' (0x8F445570)
[NOTIFY] Module loaded
[NOTIFY] Initializing.
[NOTIFY] Initialization completed successfully
OSAXST1: >>> Loading Module 'coredll.dll' (0x8F5F9630) at address
0x40010000-0x400E4000 in Process 'udevice.exe' (0x8F25C000)
OSAXST1: >>> Loading Module 'udevice.exe' (0x8F25C000) at address
0x00010000-0x00016000 in Process 'udevice.exe' (0x8F25C000)
udevice.exe $udevice_1001
FSDMGR!MountTable_t::RegisterVolumeName: Registered "$udevice_1001" at index
10APISCreateAPIHandle[NOTIFY] ProcessDatabase::started at local time
03/21/2008 15:07:55
: pvData == NULL
FSDMGR!MountTable_t::RegisterVolume: Registered volume at index 10
(Name="$udevice_1001", MountFlags=0x101)OSAXST1: >>> Loading Module
'com16550.dll' (0x8F25B648) at address 0x41CF0000-0x41D05000 in Process
'NK.EXE' (0x82A17C80)
OSAXST1: >>> Loading Module 'com16550.dll' (0x8F25B648) at address
0x41CF0000-0x41D05000 in Process 'udevice.exe' (0x8F25C000)
OSAXST1: >>> Loading Module 'ceddk.dll' (0x8F25B780) at address
0x40270000-0x4027A000 in Process 'NK.EXE' (0x82A17C80)
OSAXST1: >>[NOTIFY] HandleSystemEvent 7 /ADD DMA1:
[NOTIFY] HandleSystemEvent 7 /ADD NFY0:
> Loading Module 'ceddk.dll' (0x8F25B780) at address 0x40270000-0x4027A000 in Process 'udevice.exe' (0x8F25C000)
DeviceFolder::LoadDevice(Drivers\BuiltIn\Serial) last 556
TicksDEVICE!RegReadActivationValues
RegQueryValueEx(Drivers\BuiltIn\Parallel\BusPrefix) returned 2
OSAXST1: >>> Loading Module 'parallel.dll' (0x8F0B4818) at address
0xC0E00000-0xC0E0C000 in Process 'NK.EXE' (0x82A17C80)
parallel port process attach
[LPT_Init]: entry Drivers\Active\4294967292.
>RegisterLPTName
Regis[NOTIFY] HandleSystemEvent 7 /ADD COM1:
terLPTName: adding 'LPT1:' as 'Port5'
<RegisterLPTName
DeviceFolder::LoadDevice(Drivers\BuiltIn\Parallel) last 108
TicksDEVICE!RegReadActivationValues
RegQueryValueEx(Drivers\BuiltIn\NLed\BusPrefix) returned 2
OSAXST1: >>> Loading Module 'nleddrvr.dll' (0x8F0B4960) at address
0xC0E10000-0xC0E15000 in Process 'NK.EXE' (0x82A17C80)
DeviceFolder::LoadDevice(Drivers\BuiltIn\NLed)[NOTIFY] HandleSystemEvent 7
/ADD LPT1:
[NOTIFY] HandleSystemEvent 7 /ADD NLD1:
last 56 TicksDEVICE!RegReadActivationValues
RegQueryValueEx(Drivers\BuiltIn\TAPI\Prefix) returned 2
DEVICE!RegReadActivationValues
RegQueryValueEx(Drivers\BuiltIn\TAPI\BusPrefix) returned 2
OSAXST1: >>> Loading Module 'tapi.dll' (0x8F0B4B58) at address
0xC08C0000-0xC0904000 in Process 'NK.EXE' (0x82A17C80)
OSAXST1: >>> Loading Module 'unimodem.dll' (0x8F0B4E10) at address
0xC0910000-0xC0934000 in Process 'NK.EXE' (0x82A17C80)
DeviceFolder::LoadDevice(Drivers\BuiltIn\TAPI) last 111
TicksDEVICE!RegReadActivationValues
RegQueryValueEx(Drivers\BuiltIn\NTLMSSP_SVC\BusPrefix) returned 2

Exception 'Access Violation' (14): Thread-Id=015e0006(pth=8f0bc1a4),
Proc-Id=00400002(pprc=82a17c80) 'NK.EXE', VM-active=00400002(pprc=82a17c80)
'NK.EXE'
PC=802aec24(kernel.dll+0x0005cc24) RA=802bd400(kernel.dll+0x0006b400)
SP=d064fa40, BVA=d004f000

WriteMsgQueue: copy data error
Exception 'Access Violation' (14): Thread-Id=015e0006(pth=8f0bc1a4),
Proc-Id=00400002(pprc=82a17c8OSAXST1: >>> Loading Module 'coredll.dll'
(0x8F5F9630) at address 0x40010000-0x400E4000 in Process 'udevice.exe'
(0x8F0BC5A4)

OSAXST1: >>> Loading Module 'udevice.exe' (0x8F0BC5A4) at address
0x00010000-0x00016000 in Process 'udevice.exe' (0x8F0BC5A4)
udevice.exe $udevice_1002
FSDMGR!MountTable_t::RegisterVolumeName: Registered "$udevice_1002" at index
11APISCreateAPIHandle: p0) 'NK.EXE', VM-active=00400002(pprc=82a17c80)
'NK.EXE'
PC=802af08a(kernel.dll+0x0005d08a) RA=802af27e(kernel.dll+0x0005d27e)
SP=d064fa20, BVA=cccccce4
vData == NULL
FSDMGR!MountTable_t::RegisterVolume: Registered volume at index 11
(Name="$udevice_1002", MountFlags=0x101)OSAXST1: >>> Loading Module
'ntlmssp_svc.dll' (0x8F0BB888) at address 0x41D30000-0x41D57000 in Process
'NK.EXE' (0x82A17C80)
OSAXST1: >>> Loading Module 'ntlmssp_svc.dll' (0x8F0BB888) at address
0x41D30000-0x41D57000 in Process 'udevice.exe' (0x8F0BC5A4)
OSAXST1: >>> Loading Module 'rsaenh.dll' (0x8F0BB9E4) at address
0x41D60000-0x41D84000 in Process 'NK.EXE' (0x82A17C80)
OSAXST1: >>> Loading Module 'rsaenh.dll' (0x8F0BB9E4) at address
0x41D60000-0x41D84000 in Process 'udevice.exe' (0x8F0BC5A4)

<--- Logging stops here--->