none
DisableCachedLeaseDialog does not work in Windows CE 6.0 R3? RRS feed

  • Question

  • Intermittently I will be getting a Message Box telling me something like "A DHCP server could not be contacted ... " and searching the web with the message shows that it could be suppressed with a registry "DisableCachedLeaseDialog" setting to 1. 

    I am pretty sure that the key should be put under HKLM\Comm\Tcpip\Parms but I still get the Message Box sometimes. In fact, referring to the MSDN of CE 6.0 R3 TCP/IP configurable registry settings does not return a hit of this key so I guess it is not applicable. But still I am trying to avoid the message because it is a little bit of annoying.

    Having to say that, do I have alternative options instead changing the code in \Private\WinceOS\Comm\DHCP?

    Thanks in advance.

    Tuesday, April 16, 2013 8:59 AM

Answers

  • Check that code and see if it has any checks for that flag. If it doesn't you could clone and modify the DHCP code. Make sure to clone it to your OS Design or BSP first (check my blog for some posts about cloning).

    Good luck,

    Michel Verhagen, eMVP
    Check out my blog: http://guruce.com/blog

    GuruCE
    Microsoft Embedded Partner
    http://guruce.com
    Consultancy, training and development services.

    • Marked as answer by foo100 Thursday, April 18, 2013 9:39 AM
    Wednesday, April 17, 2013 12:05 AM
    Moderator

All replies

  • Check that code and see if it has any checks for that flag. If it doesn't you could clone and modify the DHCP code. Make sure to clone it to your OS Design or BSP first (check my blog for some posts about cloning).

    Good luck,

    Michel Verhagen, eMVP
    Check out my blog: http://guruce.com/blog

    GuruCE
    Microsoft Embedded Partner
    http://guruce.com
    Consultancy, training and development services.

    • Marked as answer by foo100 Thursday, April 18, 2013 9:39 AM
    Wednesday, April 17, 2013 12:05 AM
    Moderator
  • I think in this version of CE the flag is not used. Searching the \WINCE600 directory with similar key like "AutoCfg" or "AutoIP" did return a hit but there is nothing for "DisableCachedLeaseDialog".

    As for the DHCP modifications, it looks like cloning is not needed. Moreover, I can't get the menu to clone the catalog item by a right click on the item for DHCP. Hopefully I am going to the right way to modify the codes in \Private directory.

    Thank you, Michel.


    • Edited by foo100 Thursday, April 18, 2013 9:55 AM
    Thursday, April 18, 2013 9:53 AM
  • What do you mean "cloning is not needed"? There is no way you can build your modifications in the private folder and have them included in your kernel (not unless you do a build and sysgen which is something you should NEVER EVER do).

    The automatic right-click clone works for almost no component, so no surprises there. The DHCP component is a fairly straight forward manual clone, see my blog for many examples on cloning public and private code.


    Good luck,

    Michel Verhagen, eMVP
    Check out my blog: http://guruce.com/blog

    GuruCE
    Microsoft Embedded Partner
    http://guruce.com
    Consultancy, training and development services.

    Thursday, April 18, 2013 10:07 AM
    Moderator
  • I thought that if it is not able clone a catalog item then it is not needed to perform cloning. But after reading up your blog then only I understand the meaning of cloning, it applies to source code as well. 

    I am now trying to build a subproject for the DHCP component.

    Sorry for the late reply and thank you, Michel.


    • Edited by foo100 Thursday, April 25, 2013 6:13 AM
    Thursday, April 25, 2013 6:13 AM