• <ins id="pjuwb"></ins>
    <blockquote id="pjuwb"><pre id="pjuwb"></pre></blockquote>
    <noscript id="pjuwb"></noscript>
          <sup id="pjuwb"><pre id="pjuwb"></pre></sup>
            <dd id="pjuwb"></dd>
            <abbr id="pjuwb"></abbr>

            milkyway的窩

            最初想法的誕生地

             

            "Out of Memory" and Required components for ActiveSync

            來自 http://www.cnblogs.com/walzer/archive/2006/02/05/325574.html
            Author: Walzer
            Date:??? 2005.5.20

            摘要: WINCE 5.0中關于ActiveSync的Dependence沒有做好,這肯定是MS的一處BUG。我們必須手動地添加這些相關的組件(有4個),否則就會在啟動ActiveSync連接時出現Out of Memory的讓人匪夷所思的錯誤。文章的最后給出了如何在注冊表中注冊一個USB連接作為ActiveSync默認連接的做法。

            ??? At first I?was so puzzled by this problem?for several?days. I connected my target to?PC?by usb and wana enable ActiveSync, the usb serial function seems work well and? repllog.exe is autoloaded. But on the?target, there jumps out a ?warning window with the title "Out of Memory", and the descriptions are "Cannot connect to PC. No program memory available. Stop some programs, and try again. If the problem persist, reset your device according to the owner's manual".
            ????This platform have?32MB flash? and?32MB SDRAM. I burn nk.nb0 (20M) into the flash and use XIP, so the memory must be enough for this application. But what's the problem?
            ??? The debug messages are shown below.
            ?
            0x83f21000: [NOTIFY] HandleSystemEvent 9 none
            0x83f21000: [NOTIFY] HandleSystemEvent found repllog.exe for event 9
            0x83f21000: [NOTIFY] HandleSystemEvent schedules immediate notify for repllog.exe AppRunAtRs232Detect
            0x83f21000: [NOTIFY] SetUserNotification (or replacing 00000000)
            0x83f21000: [NOTIFY] SetUserNotification::Setting event semaphore
            0x83f21000: [NOTIFY] ProcessDatabase::started at local time 01/01/2003 12:00:42
            0x83f24434: NOTIFICATION::NewPacket attempt to exec 0000073e:repllog.exe AppRunAtRs232Detect
            0x83d14000: >>> Loading module coredll.dll at address 0x03F40000-0x03FF4000 (RW data at 0x01FFE000-0x01FFF145)
            0x83d14000: >>> Loading module ws2.dll at address 0x03BB0000-0x03BC4000 (RW data at 0x01FCD000-0x01FCDB24)
            0x83d14000: >>> Loading module winsock.dll at address 0x03BD0000-0x03BD6000 (RW data at 0x01FCF000-0x01FCF08C)
            Loaded symbols for 'D:\SOURCE_CODE\WINCE500\PBWORKSPACES\WINDOWTV\RELDIR\WINDOWTV_ARMV4I_DEBUG\WINSOCK.DLL'
            0x83d14000: >>> Loading module repllog.exe at address 0x0E010000-0x0E02E000
            Loaded symbols for 'D:\SOURCE_CODE\WINCE500\PBWORKSPACES\WINDOWTV\RELDIR\WINDOWTV_ARMV4I_DEBUG\REPLLOG.EXE'
            0x83d14000: RLOG: [0x43F24D0E] Started with cmdline: AppRunAtRs232Detect
            0x83d14000: AddToProcessInputLocaleTable: Added process to ProcessInputLocale table, hProcess = 0x43D3A242
            0x83d14000: RLOG: [0x43F24D0E] Using '`USB' connection
            0x83d14000: RLOG: [0x43F24D0E] Welcome to repllog. Port in use: Dccman: 5679; RRA: 5678
            0x83d14000: RLOG: [0x43F24D0E] WM_WINDOWREADY
            0x83d14000: RLOG: [0x43F24D0E] About to run rapisrv.exe
            0x83f24434: [NOTIFY] DeleteUserNotification 0000073e
            0x83f24434: [NOTIFY] DeleteUserNotification: 0000073e deleted
            0x83e84bb4: >>> Loading module coredll.dll at address 0x03F40000-0x03FF4000 (RW data at 0x01FFE000-0x01FFF145)
            0x83e84bb4: >>> Loading module ws2.dll at address 0x03BB0000-0x03BC4000 (RW data at 0x01FCD000-0x01FCDB24)
            0x83e84bb4: >>> Loading module winsock.dll at address 0x03BD0000-0x03BD6000 (RW data at 0x01FCF000-0x01FCF08C)
            0x83e84bb4: >>> Loading module rapisrv.exe at address 0x10010000-0x10031000
            Loaded symbols for 'D:\SOURCE_CODE\WINCE500\PBWORKSPACES\WINDOWTV\RELDIR\WINDOWTV_ARMV4I_DEBUG\RAPISRV.EXE'
            0x83e84bb4: AddToProcessInputLocaleTable: Added process to ProcessInputLocale table, hProcess = 0xE3D4A1BE
            RpcSrv: Rapi Server running on DeviceType: 2
            0x83d14000: RLOG: [0x43F24D0E] Using '`USB' connection
            0x83d14000: RLOG: [0x43F24D0E] About to run rnaapp.exe -n -m -e"`USB"
            RpcSrv: Winsock Started version 1.1
            0x83d01000: >>> Loading module wspm.dll at address 0x03B90000-0x03B97000 (RW data at 0x01FC9000-0x01FC9154)
            Loaded symbols for 'D:\SOURCE_CODE\WINCE500\PBWORKSPACES\WINDOWTV\RELDIR\WINDOWTV_ARMV4I_DEBUG\WSPM.DLL'
            RpcSrv: SocketBufSize=16384 bytes
            0x83d01000: <RPC:RESLIST>?
            0x83d01000: CResList::CResList()
            0x83d01928: CreateNewProc failure on rnaapp.exe!
            0x83d14000: RLOG: [0x43F24D0E] CreateProcess rnaapp.exe failed. GetLastError: 2

            0x83d14000: Grow Gdi handle table from 448 to 512
            0x83d14000: DlgMgr: FindDlgItem id 1 returning NULL.
            ?
            BTW, the source code of rapllog.exe is at private\datasync\apps\conn31\rep\repllog\ . But Microsoft haven't publish these codes yet.
            ?
            ----------------------------------------------------------------------------------------------------------------
            ?
            In fact, "out of memory" is a fake message. I asked it on the newsgroup and someone tell me they have seen a similar message when missing a required OS component. I?am?so sorry to say that, the dependency checks on ActiveSync in WinCE5.0 are not very good, so we have to add them into our OSDesign manually.
            ?
            The required and relative components?are:
            ??(1) Core OS->Applications - End User->ActiveSync->File Sync
            ??(2) Core OS->Communication Services and Networking->Networking - Wide Area Network (WAN)->Dial Up Networking (RAS/PPP)?
            ? (3) Core OS->Communication Services and Networking->Networking - Wide Area Network (WAN)->Telephony API (TAPI 2.0)->Unimodem Support
            ? (4) Core OS->Shell and User Interface->User Interface->Network User Interface
            ?
            ----------------------------------------------------------------------------------------------------------------
            ?
            After the system completely booted, we need to creat a new connection in control pannel -> Dial Up Networking. Select USB direct connection then OK, for example use?the default name "My Connection". ?In the other hand, set PC connection to the newly created "My Connection". Now connect the USB cable, and the ActiveSync on desktop will sound a dulcet tune~~~
            ?
            But these two steps we can?wirte them into registry before. To take an easy way, I compare the registry on traget device before these settings and after it, and these are the changes:
            ?
            [HKEY_CURRENT_USER\Comm\RasBook\USB Connection]
            "Entry"=hex:\
            ????? 08,02,40,00,00,00,00,00,00,00,00,00,00,00,00,00,f4,db,04,12,d0,77,01,7c,01,\
            ????? 00,00,00,01,00,00,00,01,00,00,00,1c,e3,04,12,0a,00,00,00,74,dc,04,12,01,00,\
            ????? 00,00,18,dc,04,12,68,53,03,00,f0,4b,01,7c,18,dc,04,12,d8,55,03,00,20,dc,04,\
            ????? 12,ca,1b,05,12,00,00,00,00,00,00,00,00,00,00,00,00,f0,4b,01,7c,00,00,00,00,\
            ????? 0a,00,00,00,00,00,00,00,ec,3b,37,03,54,dc,04,12,f0,4b,01,7c,00,1c,1a,00,00,\
            ????? 00,00,00,07,18,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,\
            ????? 00,00,b8,dd,04,12,00,00,00,00,f0,aa,00,00,08,00,00,00,00,00,00,00,0a,00,00,\
            ????? 00,00,00,00,00,4c,f7,f6,03,00,00,00,00,6c,02,00,00,00,00,00,00,4a,c0,d7,83,\
            ????? 00,00,00,00,a4,dc,04,12,00,00,00,00,f0,4b,01,7c,01,00,00,00,04,6e,f6,03,b0,\
            ????? dc,04,12,b8,c5,14,80,38,22,05,00,c0,71,01,7c,38,22,05,00,38,22,05,00,b0,dc,\
            ????? 04,12,c0,71,01,7c,f0,4b,01,7c,01,00,00,00,4a,c0,d7,83,74,dc,04,12,74,dc,04,\
            ????? 12,0a,00,00,00,01,00,00,00,eb,ff,ff,ff,4a,cf,d7,83,00,00,00,00,00,00,00,00,\
            ????? 00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,01,00,00,00,64,00,69,00,72,\
            ????? 00,65,00,63,00,74,00,00,00,04,12,00,00,00,00,00,00,00,00,0a,00,00,00,f0,4b,\
            ????? 01,7c,f0,4b,55,00,53,00,42,00,20,00,43,00,61,00,62,00,6c,00,65,00,3a,00,00,\
            ????? 00,00,00,00,00,a0,6f,fe,80,00,00,00,00,01,00,00,00,0a,00,00,00,02,00,00,00,\
            ????? 00,00,00,00,78,dd,04,12,b4,df,0f,00,d0,77,01,7c,89,01,00,00,00,00,00,00,ca,\
            ????? 1b,05,12,0a,00,00,00,7c,09,f6,03,00,00,00,00,0a,00,00,00,00,00,00,00,0a,00,\
            ????? 00,00,0a,00,00,00,ca,1b,05,12,b0,dd,04,12,b8,af,0f,00,00,ca,2a,0a,81,00,00,\
            ????? 00,ca,1b,05,12,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,ca,2a,0a,\
            ????? ca,1b,05,12,50,18,00,00,03,00,00,00,05,00,00,00,74,66,2a,0a,df,fd,ff,ff,00,\
            ????? 00,00,00,4a,c0,d7,83,ca,1b,05,12,88,01,00,00,7c,fd,ff,ff,84,02,00,00,94,66,\
            ????? 2a,0a,00,de,04,12,00,00,00,00,0c,de,04,12,0c,de,04,12,04,6e,f6,03,0c,de,04,\
            ????? 12,9c,66,2a,0a,80,12,05,00,a0,5f,01,7c,80,12,05,00,80,12,05,00,0c,de,04,12,\
            ????? a0,5f,01,7c,80,22,05,00,80,22,05,00,00,00,00,00,44,e0,04,12,18,08,e3,03,00,\
            ????? 00,00,00,d4,e1,e2,03,08,00,00,00,0a,00,00,00,01,00,00,00,01,00,00,00,38,22,\
            ????? 05,00,00,ca,2a,0a,4a,c0,d7,83,ca,1b,05,12,ca,1b,05,00,ca,1b,05,00,0c,00,00,\
            ????? 00,7c,09,f6,03,00,00,00,00,0a,00,00,00,88,de,04,12,cc,f3,f6,03,88,de,04,12,\
            ????? 4c,f7,f6,03,4a,c0,d7,83,4a,c0,d7,83,e4,b9,14,80,4a,c0,d7,83,a8,de,04,12,fc,\
            ????? 5c,08,00,ca,1b,05,12,ac,de,04,12,4a,c0,d7,83,4a,c0,d7,83,00,00,00,00,4a,c0,\
            ????? d7,83,d6,9a,f9,e3,01,00,00,00,4a,c0,d7,83,00,ff,04,12,f0,4b,01,7c,f0,4b,01,\
            ????? 7c,64,aa,0f,00,4a,cf,d7,83,01,00,00,00,01,00,00,00,00,00,00,00,f4,de,04,12,\
            ????? 58,bf,02,00,00,00,00,00,f0,4b,01,7c,04,df,04,12,b4,5b,08,00,18,df,04,12,28,\
            ????? df,04,12,10,df,04,12,01,00,00,00,00,00,00,00,ca,1b,05,12,00,00,00,00,00,87,\
            ????? 03,00,d6,9a,f9,e3,0a,00,00,00,00,00,00,00,d0,76,01,7c,00,4b,01,7c,64,aa,0f,\
            ????? 00,ca,1b,05,12,01,00,00,00,0a,00,00,00,00,00,00,00,d0,76,01,7c,01,00,00,00,\
            ????? 01,4b,01,7c,38,df,04,12,01,df,04,12,60,c1,02,00,d0,76,01,7c,01,00,00,00,01,\
            ????? 00,00,00,01,00,00,00,1c,e3,04,12,0a,00,00,00,f4,df,04,12,01,00,00,00,98,df,\
            ????? 04,12,68,53,03,00,f0,4b,01,7c,98,df,04,12,d8,55,03,00,a0,df,04,12,ca,1b,05,\
            ????? 12,00,00,00,00,00,00,00,00,00,00,00,12,00,00,00,00,00,00,00,00,01,00,00,00,\
            ????? fc,82,cb,03,20,8f,d4,83,a0,6f,fe,80,a0,6f,fe,80,02,00,00,00,00,00,00,12,dc,\
            ????? df,04,12,bc,0a,12,80,e4,fc,d3,83,01,00,00,00,20,8f,d4,83,a0,6f,fe,80,a0,6f,\
            ????? fe,80,02,00,00,00,e4,fc,d3,83,a0,e0,04,12,00,00,00,00,20,8f,d4,83,d0,1f,f7,\
            ????? 83,00,00,00,00,00,00,00,00,fc,82,cb,03,00,00,00,00,0f,00,00,00,f0,6a,fe,80,\
            ????? fc,82,cb,03,20,8f,d4,83,00,00,00,00,00,00,00,00,ec,df,04,12,01,d2,06,00,01,\
            ????? 00,00,00,23,00,00,00,00,00,00,00
            ?
            [HKEY_CURRENT_USER\ControlPanel\Comm]
            ??? "Cnct"="USB Connection"
            ?
            I can't understand what?does the table of hexes mean, but?it did work well in the registry. So, after the system booted, we can conntect usb cable and enable ActiveSync automatically without any manual settings.

            posted on 2007-01-16 09:51 milkyway 閱讀(2096) 評論(2)  編輯 收藏 引用 所屬分類: wince(別人的文章技巧總結)

            評論

            # re: "Out of Memory" and Required components for ActiveSync 2007-08-31 19:29 join

            非常感謝!  回復  更多評論   

            # re: "Out of Memory" and Required components for ActiveSync [未登錄] 2007-10-19 09:27 eric

            我也非常感謝!正為這個莫名其妙的提示煩惱中,及時啊  回復  更多評論   

            導航

            統(tǒng)計

            公告

            隨筆皆原創(chuàng),文章乃轉載. 歡迎留言!

            常用鏈接

            留言簿(37)

            隨筆分類(104)

            隨筆檔案(101)

            文章分類(51)

            文章檔案(53)

            wince牛人

            搜索

            積分與排名

            最新評論

            閱讀排行榜

            評論排行榜

            国产精品成人久久久| 日韩人妻无码精品久久免费一 | 久久亚洲国产精品123区| 久久国产高清一区二区三区| 久久这里只有精品视频99| 狠狠色婷婷久久一区二区| 青草影院天堂男人久久| 久久久久一级精品亚洲国产成人综合AV区 | 国产精品成人久久久| 久久亚洲私人国产精品vA | 一本色道久久HEZYO无码| 91久久九九无码成人网站| 热久久最新网站获取| 色综合久久精品中文字幕首页 | 久久精品水蜜桃av综合天堂| 国产精品热久久无码av| 国产情侣久久久久aⅴ免费| 欧美亚洲另类久久综合婷婷| 97久久国产亚洲精品超碰热| 亚洲国产综合久久天堂 | 久久久久国产精品熟女影院| 久久久国产精品| 国产69精品久久久久9999| 奇米影视7777久久精品| 久久这里只精品99re66| 国产精品免费久久| 久久亚洲高清观看| 国产精品久久影院| AV无码久久久久不卡蜜桃| 99久久这里只精品国产免费| 久久九九免费高清视频| 青青青伊人色综合久久| 久久婷婷久久一区二区三区| 久久99精品久久久久久| 思思久久好好热精品国产| 久久se精品一区二区影院| 久久伊人精品青青草原高清| 97久久综合精品久久久综合| 久久亚洲精品成人av无码网站| 精品久久久中文字幕人妻| 狠狠精品久久久无码中文字幕|