したらばTOP ■掲示板に戻る■ 全部 1-100 最新50 | |

悠久のハイパーカード

30名取@二重カキコすまそん:2003/10/18(土) 12:18
PPC external works fine in the demo stack, but crashes if I copy it to another stack
Kevin Calhoun's answer :

The problem is intrinsic to code fragments contained within resources, not just HyperCard externals. Here's what's happening:
- The code fragment is loaded into memory via GetResource (or equivalent)
- The fragment is prepared for execution by the Code Fragment Manager
- In preparing it for execution, pointers to its external links are written into its TOC; this accounts for the differences you're seeing
- The resource is then copied from in the form in which is currently exists in memory, containing pointers to addresses to its external links that are valid in the current context, but almost certainly invalid on any other machine

Note that anything that copies an xcmd or xfcn resource that has been loaded into memory and prepared for execution will exhibit this problem -- ResCopy, the resource externals that ship with HyperCard, the AddColor installer, the resource copying XCMD in the Dartmouth XCMDs, etc. The problem doesn't occur with ResEdit because in ResEdit you're copying the resource out of a stack that isn't open in HyperCard and therefore whose externals aren't currently in memory and prepared for execution by the CFM.

っていうのを読んだことがあって、以前スクールフォーラムであったAddColor落ちる事件は
これのせいか…などと思ったです。
んだもんで恐くてインストーラつけてないんです私のXには。
FATバイナリではどうなのか


新着レスの表示


名前: E-mail(省略可)

※書き込む際の注意事項はこちら

※画像アップローダーはこちら

(画像を表示できるのは「画像リンクのサムネイル表示」がオンの掲示板に限ります)

掲示板管理者へ連絡 無料レンタル掲示板