I am porting a Windows DLL developed with Visual Studio 6.0 under S60 2nd edition, I have a NOKIA 6630 to check all.
Because the Windows DLL uses static memory I implemented on the S60 the client/server synchronous architecture, the server one being practically the Windows DLL.
I am trying to change the DLL sources to have the same sources compiled for Windows or for Nokia.
I defined a __SYMBIAN32__ token to differentiate the code.
I substitute all the <windows.h> inclusions with symbian ones, after a quite big effort I now have my Nokia application compiling correctly and running but...
I have at a certain point the phone resetting.
I added breaks during my code to see exactly when it resets and I think it is something to do with the stack because the phone resets just entering in a new function.
I searched between the GCC compiler options if there was something to do with the stack dimensions, I found the compiler option -fstack-check that stops NOKIA resetting but makes the server side application stops executing.
Is there anyone who can help me ???