none
CreateControlEx windows API logs Raised exception on WinCE platform RRS feed

  • Question

  • Hi All,

    I have called the 'CreateControlEx' windows API on WinCE platform in my application. The call was successful and return HRESULT S_OK(0x00000000) but logs the below error :

    Exception 'Raised Exception' (-1): Thread-Id=04680152(pth=874a14b0), Proc-Id=074a0006(pprc=8773b384) 'AppName.exe', VM-active=074a0006(pprc=8773b384) 'AppName.exe'
    PC=4006b0ac(coredll.dll+0x0005b0ac) RA=8052a364(kernel.dll+0x0000d364) SP=0021f35c, BVA=0021f390
    Exception 'Raised Exception' (-1): Thread-Id=04680152(pth=874a14b0), Proc-Id=074a0006(pprc=8773b384) 'AppName.exe', VM-active=074a0006(pprc=8773b384) 'AppName.exe'
    PC=4006b0ac(coredll.dll+0x0005b0ac) RA=8052a364(kernel.dll+0x0000d364) SP=0021f354, BVA=0021f388

    Same API is working fine without exception on Win32 platform.

    Can someone please tell me the reason for the above exception on WinCE platform?

    Is there any way that the exception didn't get logged?

    Thanks In Advance!

    Friday, November 18, 2016 3:55 AM

All replies

  • Hi Nikhil,

    You state "Same API is working fine without exception on Win32 platform" but CE is a win32 platform.  can you please provide far more detail on what OS you are using in all cases, including version and chipset?

    Also, what do you see when you step through the code? Why do you think the successful call cause the exception log?

    Sincerely,

    IoTGirl


    Friday, November 18, 2016 4:05 AM
    Moderator
  • Hi,

    I have build my application under "wince-gs3target (armv4i)" solution platform and ran the application successfully. My concern was exception observed while calling the 'CreateControlEx' windows API, and the call was successful as it return S_OK HRESULT. This exception is observed on putty.

    When I ran same application on windows, whaich was now build under "Win32" solution platform, no exception observed on "DebugView".

    Thanks

    Friday, November 18, 2016 4:29 AM
  • Hi Nikhil,

    What version of Windows CE? what is "wince-gs3target"? Is it an SDK or do you have Platform Builder involved?

    What version of Windows Desktop?

    I assume you are using VS2008 with Smart device support?

    My suspicion is your CE device image is missing something that the control you are trying to create needs but you will need to work with the image provider to truly debug any missing components.  Have you given your reproduction details to the creator of the device/SDK?

    Sincerely,

    IoTGirl

    Friday, November 18, 2016 6:13 PM
    Moderator
  • Hi,

    I don't know how to check Windows CE version. Please let know how to check that.

    Yes, ""wince-gs3target" is as SDK and we didn't included Platform Builder .

    We are using VS2005. I am not sure if we are missing any component, as everything is working fine except that eception observed on Putty.

    Thanks

    Friday, November 25, 2016 1:25 PM
  • Hi Nikhil,

    Please reach out to the company that provided you the SDK for support. You will have to step through your 'AppName.exe' to figure out what line of code raises the exception. Potentially the control relies on a feature that is not available on the device you are targeting but that is just a guess at this point.  The OEM will be able to provide more detail on their custom OS build.

    Sincerely,

    IoTGirl

    Friday, November 25, 2016 7:51 PM
    Moderator