Posts by RawBean

    YIIIIIIHAAAAAAA! I'm so glad because I've found the way to fix it! I finally spent 2 days to find it.

    Explanation are there

    From my understanding it is due to the memory limit of 32MB of the stack in debug mode. So my memory measurement was not accurate. You simply need to add this key in the registry to fix it:
    [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\.NETCompactFramework] "JITCodeBufferSizeLimitEnabled"=dword:1
    and it works out.

    I will definitely program all our new NetDCUA5 with this registry key enabled.

    Hello Christian,

    I've measured the application memory usage with the Remote Performance Monitor, and I got a Peak Bytes Allocated (native + managed) = 10 479 576
    so you're right it doesn't exceed 32MB, except if my measurement is wrong. If wrong, how would you measure it?

    What do you mean by


    have a look at the CAB

    ? Wihci file is it? the one generated for my application deployment?


    Can you locate the occuring of the exception with the debugger, by go step by step?

    What is strange is when I run every lines of code one by one with the debugger (with the Step Into or Step Over), it doesn't crach. But when I do a "Continue debugging (F5)" then it crashes. It really looks like there is a problem with the debugger.


    I am developping an WCE application for months, and a couple of days ago it started to crash.
    What I found is that

    • It works fine when I start the application outside Visual Studio. I just do Deploy, and run it from the device.
    • In DCUTermi I can read message starting with Exception 'Prefetch Abort' (3): Thread-Id= ...... when the crash happened.
    • It looks like this issue is known by Microsoft and filed as KB973905

    Now I'm stucked in due to that issue, and I'm wondering how to proceed to implement this fix, if it's the right thing to do.
    Any help would be appreciated.

    Best Regards,

    Hi Guy roelant,

    I didn't notice are working on efusA9. Take it easy. I can't move it to another forum so I will close it now in replying to the F&S support (below).

    Hi Christian,

    Thanks for your answer, it helped me, especially about the "reg save" after touch calibrate. I was working in a hurry and forgot this thing. About USB Stick it was due to a damaged stick, an electronic issue I guess.
    Best Regards.

    I have same strange behavior with 3 modules.
    After having done a touch calibrate, touch screen works, but after a reboot touch screen is no longer working, I must redo a touch calibrate.
    I also have troubles on my USB connection, it can't read a USB stick I've plugged in.

    From DCUTerm, I can read, among others:
    Boot Loader, Version 1.1
    NBoot, Version VN11
    HW rev. 1.10
    NetDCUA5 V1.09 - Firmware Init
    FMD: NAND ID:0x92f18095 --> EON: 1GBit (128MB)
    WARNING: SNVS was reset.

    On the NetDCUA5 there are 2 Ethernet controllers.
    When I call Dns.GetHostEntry() method it returns 2 IPAdresses. I guess (but may be wrong) that one is for the 1st controller, for example ETHNETA1, and the other one is for the second one ETHNETB1.

    In my application, I use only 1 controller.
    My problem is that order of the IPAdressList returned by the call to Dns.GetHostEntry() is random. So, sometimes I get ETHNETA1 first, sometomes I get ETHNETB1 first.

    To fix it, please tell me if I can disable the extra controller, and how?
    I've already tried to set a dword flags = 4 in the registry under \Comm\ETHNETB1\ and also under \Comm\ETHNETB1\Parms (then reboot) with no success.

    I'm making the portability of my application from WinCE 5 (NetDCU8) to WinCE 6 (NetDCUA5). One thing is not working, and after unsuccessful searching the web I must post the question here.
    Changing the BackColor property (for highlighting purposes) has no effect. Changing the ForeColor does. In the same function I'm changing both the ForeColor and the BackColor. But only the ForeColor actually changes on screen.

    According to this post:…w-to-set-button-backcolor
    If "The platform has the Skinnable UI OS component (SYSGEN_XPSKIN) built into it. The skin behavior overrides the behavior of setting the control color, so any color change you try to implement is unseen."

    Is it the case for the NetDCUA5 Kernel "NKVYB_CE6Core_140414.bin" ?

    I've got the solution now, and I will post it here for the next guy in troubles, like I've been.

    I created below structure

    I've used 2 overloaded declaration

    Then, I have 2 functions (among others) for Schedule and GetResults.

    • Schedule


    • GetResult
    1. Public Function GetResult(ByVal msg As NI2C_MSG_HEADER(), ByVal data As Byte()) As Integer
    2. Dim bytesreturned As Int32
    3. Return DeviceIoControl(hPort, IOCTL_NI2C_GET_RESULT, _
    4. msg, msg.Length * Marshal.SizeOf(GetType(NI2C_MSG_HEADER)), _
    5. data, data.Length, _
    6. bytesreturned, IntPtr.Zero)
    7. End Function

    Thanks for your replies.

    fs-support_ZU If I would save no time, then I understand better why it's hard for me to find information about that on the web.
    When I realized it takes 2-3 minutes for my PC to upload the application to the NetDCU8 I was just afraid!
    But if with the NetDCUA5 it's done in a couple of seconds it's fine for me.

    fs-support_HK I think VPC does support ARM code, but if it wouldn't I'm still interested in finding another Virtual Machine software. If I understand well, a virtual device could be configured to emulate any kind of hardware, if it has been configured to.

    My conclusion: If you expert guys tell me that you never used such virtual device, I would definitely not need it to develop my application. Thanks again for your support!


    I'm new to NetDCU, and I'm new to Windows Embedded development.

    I would like to set up a stand-alone virtual device, for my NetDCUA5.
    Why? I would start developping without the HW, and I could save the deployment time when I will run and test my application during the development. Among others.

    According to Microsoft "Developer Guide", to Run the application without Platform Builder:


    You must have one of the following:

    • A device that has the OS image stored in flash memory.
    • A stand-alone virtual CEPC that you created or have access to, which includes the OS image on a virtual drive.

    I created a virtual hard disk, I added the bootloader and the OS image I downloaded from F&S website download area. I added it to my virtual device hard disk, renamed it NK.bin. Then I created a Virtual Device with Virtual PC, and changed the Virtual Device's settings in order to make it boot on the local disk instead of the network.
    Unfortunately, when I started my stand-alone virtual device, it automatically closes displaying the 5 messages "Hit Space to enter configuration menu".

    Any idea?