Discussion Board

Results 1 to 3 of 3
  1. #1
    Registered User
    Join Date
    Jun 2008

    Global variable init error

    I have make one dll and with two global variable.

    VideoBootStrap EPOC_bootstrap = {
    "epoc\0\0\0", "EPOC system",
    EPOC_Available, EPOC_CreateDevice

    /* Available video drivers */
    static VideoBootStrap *bootstrap[] = {

    bootstrap show 2 values but bootstrap[0]'s all memeber are 0xffffffff.

    After that, I make it one static link library, then everything become okay.
    What's wrong in dll?


  2. #2
    Registered User
    Join Date
    Aug 2003
    Oulu, Finland

    Re: Global variable init error

    Looks like the common writeable static data in DLL problem.

    To me the code hints that you don't need to change your struct/array after initialization so this can probably be fixed by making both of them const.


  3. #3
    Registered User
    Join Date
    Jun 2008

    Re: Global variable init error

    Caused by TRK, after upgrade TRK, all goes okay.

Similar Threads

  1. Help with lnk2019 lnk1120 error
    By yuenfatt in forum Symbian
    Replies: 8
    Last Post: 2007-08-24, 08:21
  2. Replies: 4
    Last Post: 2007-05-31, 07:06
  3. Carbide.vs 2.01 Registration Problem
    By baykal in forum Symbian Tools & SDKs
    Replies: 5
    Last Post: 2006-12-22, 16:55
  4. error LNK2001: Please Help
    By sourish_khan in forum Symbian
    Replies: 9
    Last Post: 2006-04-19, 11:16
  5. Building
    By pacman2000z in forum Symbian Tools & SDKs
    Replies: 0
    Last Post: 2003-07-17, 10:44

Posting Permissions

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