RE: LDAP running on Window CE device always returning LDAP_LOCAL_ERROR

Tech-Archive recommends: Speed Up your PC by fixing your registry



Hi:

More information. I debugged this through an SDK420 Emulator and got the
same behavior. Except debugging through the assembly was easier to read. It
looks like 538 bytes are requested to HeapAllocTrace and 0 bytes are returned.

Since I can't step into HeapAllocTrace, I'm now stuck. Can anyone suggest
anything? Why couldn't memory be allocated from the heap in the emulator?

Thank you,

David.

"David Miller" wrote:

> Hi:
>
> I am debugging a code snippet that runs on my PC, but not on by Windows CE
> (ARMV4I) device. It fails on the first call, ldap_init with a
> LDAP_LOCAL_ERROR. I changed to ldap_open and this fails too with the same
> error.
>
> pLdapConnection = ldap_open( TEXT("server.ldap.com"), LDAP_PORT );
>
> I traced into the assembly code and kind of followed it down this path:
>
> ldap_open
> LdapConnectionOpen
> LdapAllocateConnection
> LdapInitializeWinsock
> LdapInitSecurity
> CreateEventW
> ldapMalloc
> CloseHandle
> SetLastError
> and goes to exitWithError all the way back out to ldap_open.
>
> It appears to be failing on ldapMalloc. But, I don't seem to understand why
> this code would fail this way. Does anyone have any ideas?
>
> Thank you,
>
> David.
.



Relevant Pages

  • Re: Emulator is slow
    ... I find the emulator is slower at doing it, ... Again, if it's the same speed for debugging, and one is unreliable, why ... >>Ethernet, as any other option was unbearable. ... >>> real devices connected via Ethernet. ...
    (microsoft.public.pocketpc.developer)
  • Re: Emulator Performance
    ... Is there any chance you could try your debugging on a fresh machine? ... > my app initialization is heavy due to form caching and DB preparations. ... > As a note, I'm using referenced DLLs in the app, and my app uses about 8 ... >> rather than on the emulator, but this is beyond the point. ...
    (microsoft.public.dotnet.framework.compactframework)
  • PPC Emulator Debugging
    ... most of the replies in the newsgroup as I've tried to figure out the ... When debugging Smart Device Application in VS.Net, ... the physical device, but still no debugging on the emulator ... - Installation of Windows CE Utilities ...
    (microsoft.public.dotnet.framework.compactframework)
  • Re: Does Evc4 can download executable file to wm5 device or emulator for debug or something else?
    ... Emulator" Installed, and it can sync by using activesync. ... But it will definitely not allow direct debugging on a WM 5 ... These choices come from the Pocket PC 2003 SDK you installed. ... For the few problems that still require indirect debugging, ...
    (microsoft.public.windowsce.embedded.vc)
  • Re: how important is an emulator to an embedded engineer?
    ... >> Now an interactive debugger is not an emulator, and neither is an ICE. ... presumably much less hardware debugging between components when those ... all day without once compiling, ...
    (comp.arch.embedded)