> malpha from git is running without error. Good. Try replacing git mdemo.c with 0.91 mdemo, it should compile.
If it doesn't work, then I think the problem is somewher in src/mwin. It seems that it is failing before drawing the arc segment is drawn, but after the win32 combo box and edit box are drawn. You will want to comment out the "CreateWindowEx" calls in mdemo.c::CreateAppWindow() and see whether that stops the fault. One of the controls is causing the failure. If it works, then the changed mdemo if the culprit, and there's only two things that have changed: 1. The new mdemo is using allocated extra window bytes and stored via SetWindowLong. There may be an struct offset size issue. 2. Something to do with the random() routine called in SetTimer(). Comment out the SetTimer() call in the new mdemo.c. Finally, try running some of the other nano-X demos, like nxclock or nxeyes, nxroach, or tuxchess. These use a completely different API and it would be nice to see whether they work. Note that the server is linked into the application, so you can just run the binary file alone, as in the mdemo/malpha case. Regards, Greg ===== Original Message ===== > When I use following file from git to replace 0.91 working code, mdemo > will fail with the same result. > The other parts is still 0.91 working code. ================ src/mwin dir include/ dir src/drivers/genfont.c src/engine/devfont.c ================ > emulation is OK. > mine is OK too. mdemo uses images, perhaps that's an issue. Try whether malpha runs. Also, mdemo.c could have changed, see whether the working 0.91 mdemo works with the changed files. There was a case where mdemo.c used floating point, make sure that it's not defined in the file. There's quite a few changes in the src/mwin dir, did that have to be changed? I'm thinking this could be related to image drawing or floating point. Have you tried running any of the simpler nano-X demos? Regards, Greg I try to replace file one by one, by it too hard to locate the real file which causes this issue. There are great diffs in src/mwin and include dir. 2010-03-11 yut616 发件人: Greg Haerr 发送时间: 2010-03-11 11:46:49 收件人: yut...@21cn.com 抄送: 主题: Re: Re: Re: [nanogui] Re: Nano-X For PSP :I get a clean git code, and compile again, It could display the mdemo now, but it hang the whole system (352) immediately, it needs to power off/on to restart again. Does it work on the simulator? I've attached the diff of the difference between what was in your 0.91 source that works, and my git repository. There's not that much different. I assume you're running the psp-build.sh to convert the files properly. I did notice on some of the config.psp files looks like they possibly used mipsel compiler. Is that the processor/compiler in use for psp? : And the mdemo window does not display completely. What do you mean, is it wrong colors, or what? Please describe. You could run some other programs instead, perhaps demo2 or some other executables... Note that the 0.91 working version, and my patch now should bring up the psp debug window and print "Microwindows init...". Is that happening? : : I will check this later. : : Attached file is another link error patch. I've applied it. Funny - this was in the patch from the "working" 0.91a patch that works on your system. You will see it in the attached patch. It's removed now. Again! Regards, Greg : : : : ======= 2010-03-11 04:34:04 您在来信中写道:======= : : >> I could run mdemo which built from attached code (0.91) : >> on my PSP 3.52 system without any modification. : > : >> But I still could not run git code on my 3.52 system. : > : >I diffed the entire tree and applied the small changes, : >try it again. Check to make sure that the mdemo file is : >in fact being fully built and linked without errors. There : >were some changes in the build process that could have : >caused these to fail. Also, run src/contrib/psp-build.sh, : >this is new. : > : >There really weren't many changes, other than an : >enhanced kbd driver, and a CFLAGS change : >in Makefile.rules: -D_PSP_W_VERSION=371 : > : >Regards, : > : >Greg : > : : = = = = = = = = = = = = = = = = = = = = : : : 致 : 礼! : : : yut...@21cn.com : yut...@21cn.com : 2010-03-11 : -------------------------------------------------------------------------------- : : --------------------------------------------------------------------- : To unsubscribe, e-mail: nanogui-unsubscr...@linuxhacker.org : For additional commands, e-mail: nanogui-h...@linuxhacker.org --------------------------------------------------------------------- To unsubscribe, e-mail: nanogui-unsubscr...@linuxhacker.org For additional commands, e-mail: nanogui-h...@linuxhacker.org --------------------------------------- 购物券大派送! --------------------------------------------------------------------- To unsubscribe, e-mail: nanogui-unsubscr...@linuxhacker.org For additional commands, e-mail: nanogui-h...@linuxhacker.org