×

Discussion Board

Results 1 to 4 of 4
  1. #1
    Registered User
    Join Date
    May 2005
    Posts
    17

    Porting a Windows C application under S60 2nd edition

    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 ???

  2. #2
    Nokia Developer Moderator
    Join Date
    Feb 2006
    Location
    Oslo, Norway
    Posts
    28,752

    Re: Porting a Windows C application under S60 2nd edition

    Search for EPOCSTACKSIZE in the SDK Help.

  3. #3
    Registered User
    Join Date
    May 2005
    Posts
    17

    Re: Porting a Windows C application under S60 2nd edition

    Quote Originally Posted by wizard_hu_
    Search for EPOCSTACKSIZE in the SDK Help.
    IT WORKS, thank you very very very much.
    I spent quite a lot hours doing this porting, the windows DLL is done by more than 50 modules by about 1000 lines each, it is a plate recognition engine and finally I have the plate in the image passed to the NOKIA recognised correctly by my NOKIA 6630.
    Thank you yet very much, life is beautiful...

  4. #4
    Regular Contributor
    Join Date
    Aug 2004
    Posts
    295

    Re: Porting a Windows C application under S60 2nd edition

    FYI you don't need to build client/server to get around dll static data limitation: http://pymbian.sourceforge.net/misc/statichack/

Similar Threads

  1. Dll::Tls(), porting from 2nd to 3rd edition
    By MethodSolutions in forum Symbian
    Replies: 12
    Last Post: 2010-04-02, 16:37
  2. S60 2nd edition FP3 SDK reports error in jar file entry
    By iwmonkey in forum Mobile Java Tools & SDKs
    Replies: 12
    Last Post: 2010-03-11, 01:39
  3. Can S60 2nd edition install intermediate VeriSign CA root?
    By qmei in forum Mobile Java Networking & Messaging & Security
    Replies: 4
    Last Post: 2009-05-28, 18:03
  4. Sending SMS to a specific port on S60 3rd Edition
    By gaohai in forum General Messaging
    Replies: 0
    Last Post: 2006-09-21, 09:45
  5. Strange lag on s60 2nd edition
    By damsku in forum Symbian
    Replies: 0
    Last Post: 2006-09-21, 06:59

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
×