[Cegcc-devel] _close_r() can deadlock?

2008-08-28 Thread Pawel Veselov
Hi, Was looking at the _close_r() in src/newlib/newlib/libc/sys/wince/io.c, at the top: EnterCriticalSection(&critsect); FDCHECK(fd); FDCHECK() macro can return from the method if file handle is invalid, and if it does, wouldn't that leave the lock, and cause deadlock for I/O operations? Th

[Cegcc-devel] cegcc functionality

2008-08-28 Thread Pawel Veselov
Hi, this may be a stupid question, really, but I couldn't find anything about this online... For the cegcc functionality, it seems that the header files define way more functions than are implemented in the libraries. There are no bugs or feature requests submitted for missing functions. Is there

Re: [Cegcc-devel] mingw32ce profiling

2008-08-28 Thread Danny Backx
It looks like the assembler stub in src/profile/profile/profile.h is broken. Does anyone understand enough ARM assembler to figure out what is going on ? Note that there's also a weird construction with macros. The assembler stub is supposed to call mcount_internal with some stack pointer informa

[Cegcc-devel] Executable from an unknown publisher

2008-08-28 Thread Danny Backx
See http://blogs.msdn.com/windowsmobile/archive/2006/12/07/why-does-my-signed-cab-prompt.aspx There is a way to disable sign verification at install and run-time. Change this registry key (original value is 0) : [HKEY_LOCAL_MACHINE\Security\Policies\Policies] "101a"=dword:0001 After th

Re: [Cegcc-devel] xxx is not a valid Pocket PC application if SizeOfImage>10000

2008-08-28 Thread Jérôme Decoodt
> Yes I know but Platform Builder 6 only provides sources for windows CE 5.2 > and the bug seems to happen only > with Windows Mobile 6.1 ie Windows CE 5.2 + AKU. > As a developer I don't think you have access to these AKU, only OEM or > Microsoft partners can have this kind of updates. I'm curre

Re: [Cegcc-devel] xxx is not a valid Pocket PC application if SizeOfImage>10000

2008-08-28 Thread forumer
> I wouldn't call it a BUG for now because Visual exe works fine. > But this BUG is BLOCKER for cegcc project because more and more device Hum my post is not very logic ;-) I have posted on some newsgroups dedicated to platform builder but I don't really expect answers because it'a Microsoft NG a

Re: [Cegcc-devel] xxx is not a valid Pocket PC application if SizeOfImage>10000

2008-08-28 Thread forumer
Yes I know but Platform Builder 6 only provides sources for windows CE 5.2 and the bug seems to happen only with Windows Mobile 6.1 ie Windows CE 5.2 + AKU. As a developer I don't think you have access to these AKU, only OEM or Microsoft partners can have this kind of updates. About the device in

Re: [Cegcc-devel] xxx is not a valid Pocket PC application if SizeOfImage>10000

2008-08-28 Thread Jérôme Decoodt
Hello, > I have tried to launch application on a device in debug mode and I have > found this : > > LoadDLL(4873762a,8bc3e7e0,coredll.dll,03f5b000) > LoadDLL(,8a4c73e0,cegcc.dll,7881) > [...] > So there is an access violation in kernel, unfortunately without map file > it's going to b

Re: [Cegcc-devel] xxx is not a valid Pocket PC application if SizeOfImage>10000

2008-08-28 Thread forumer
I have tried to launch application on a device in debug mode and I have found this : CreateProcess(4873762a,testDLLexe.exe,2a00) CertVerify: \Temp\testDLLexe.exe trust = 2 LoadDLL(4873762a,8bc3e7e0,coredll.dll,03f5b000) [Cpu] 71 70802731 03F6CE4C 8B8FBB6C 03FE5744 08/28/2008 14:49:03 [D :: KE

Re: [Cegcc-devel] xxx is not a valid Pocket PC application if SizeOfImage>10000

2008-08-28 Thread Jérôme Decoodt
Hello, > I have attached an bz2 archive with sources you provided and two > "makefile", one for cegcc and the other one for Visual 2005. > Could you please check we are using same compilation flags. Indeed, I was compiling this way : /opt/mingw32ce/libexec/gcc/arm-wince-mingw32ce/4.1.0/cc1 -quie