Professional Web Applications Themes

Best way to load CFM shared libs from a Mach-O app? - Mac Programming

So far I've been using GetDiskFragment and FindSymbol, and the CFM->MachO glue to create a callable function pointer. But I've got some cases where calling the modified function pointer crashes, and I don't know why. Is there an alternate scheme for doing this with a better chance of success?...

  1. #1

    Default Best way to load CFM shared libs from a Mach-O app?

    So far I've been using GetDiskFragment and FindSymbol, and the CFM->MachO
    glue to create a callable function pointer. But I've got some cases where
    calling the modified function pointer crashes, and I don't know why.

    Is there an alternate scheme for doing this with a better chance of
    success?


    Paul Guest

  2. #2

    Default Re: Best way to load CFM shared libs from a Mach-O app?

    In article <com>,
    Paul Miller <com> wrote:
     

    That code works fine, but without the details of your failure it's impossible to
    figure out what the problem is. My guess is that you are using C++ objects
    across the ABI boundary and you are losing because of the different vtable
    layout between the CFM and the Mach-O code, but correct me if I am wrong.

    meeroh

    --
    If this message helped you, consider buying an item
    from my wish list: <http://web.meeroh.org/wishlist>

    Miro Guest

  3. #3

    Default Best way to load CFM shared libs from a Mach-O app?

    Follow up to:

    http://groups.google.com/groups?hl=de&lr=&ie=UTF-8&oe=UTF-8&selm=jfo5ov8ijl91bkcchha15hmvna8seceb4a%404ax.co m
     
    CFM->MachO 
    where 
     

    I am also having the problem to call a CFM (or PEF) library from a
    Carbon MachO application. What is the "CFM->MachO glue"? Where can I
    get it?
    Andreas Guest

  4. #4

    Default Re: Best way to load CFM shared libs from a Mach-O app?

    In article <google.com>,
    de (Andreas Kromke) wrote:
     

    <http://developer.apple.com/samplecode/Sample_Code/Runtime_Architecture.htm>

    hth

    meeroh

    --
    If this message helped you, consider buying an item
    from my wish list: <http://web.meeroh.org/wishlist>

    Miro Guest

  5. #5

    Default Re: Best way to load CFM shared libs from a Mach-O app?

    de (Andreas Kromke) wrote in message news:<google.com>... 
    > CFM->MachO 
    > where 

    >
    > I am also having the problem to call a CFM (or PEF) library from a
    > Carbon MachO application. What is the "CFM->MachO glue"? Where can I
    > get it?[/ref]


    I am also looking for the CFM->Mach0 glue. my code is crashing when I
    try to use the pointer from FindSymbol directly. Where can we find a
    good example of this "glue"?
    Marie Guest

Similar Threads

  1. remote shared object doesn't want to load!
    By Mario Vieira in forum Macromedia Flash Flashcom
    Replies: 1
    Last Post: September 23rd, 01:10 PM
  2. Coldfusin MX 6.1 Load Balance and Shared File Access
    By Kent01 in forum Coldfusion Server Administration
    Replies: 3
    Last Post: May 10th, 04:28 PM
  3. Shared library / Mach-O: Application crashs if I call a function
    By Hans Stoessel in forum Mac Programming
    Replies: 2
    Last Post: September 22nd, 01:02 PM
  4. How can I load a CFM shared library in a Mach-O bundle?
    By Hans Stoessel in forum Mac Programming
    Replies: 0
    Last Post: September 19th, 12:23 PM
  5. core dump and shared libs
    By Vlada in forum AIX
    Replies: 3
    Last Post: August 15th, 04:38 AM

Bookmarks

Posting Permissions

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

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139