當前位置:首頁 » 以太坊知識 » 以太坊delegatecall

以太坊delegatecall

發布時間: 2021-09-06 21:13:07

『壹』 被拒兩次了,還是沒搞定一個CRASH LOG,求助

還是需要手工。先從Archive包中解出.dSYM文件,再從dSYM文件/Contents/Resources/DWARF下找到最終文件(假設為MyAPP)。
然後在cmd窗口運行
atos -o MyAPP 0Xxxxxxxx -arch armv7 -l XXXXX
-l 後面跟的是動態載入的初始地址
這樣就可以了。希望對其他人也有幫助。

/*********************************************************************************************************************************/
一個中文的資料庫應用,提交了兩次,兩次都說因為Crash被拒。測試的硬體設備據說是iPAD3, iOS 6.0.1。可是我自己的iPAD3,也是6.0.1,運行起來一點問題沒有。
再看發給我的Crash Log也不得要領---全是偏移量。
在網上學習了一陣子,試驗了兩個辦法:
1、在Xcode Organizer的Devices > Library > Device Log裡面Import這個Crash Log(Archive裡面有當時上傳的Binary和dYSM文件)
結果顯示的跟Crash文件一樣,還是沒有行信息;
2、乾脆手工運行。在命令行方式,運行cd /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/Library/PrivateFrameworks/DTDeviceKit.framework/Versions/A/Resources ,然後手工運行./symbolicatecrash /Users/Sue/Downloads/大眼睛圖書館_2012-12-12-140343_AQ-an.crash /Users/Sue/Downloads/大眼睛圖書館.app.dSYM,這里的crash文件是蘋果發給我的,dSYM是當時上傳時的Archive文件中解開的。
不幸,結果跟Crash Log還是沒有什麼不同。
這下完全沒方向了。還請各位不吝賜教,為啥會出現這個情況,有什麼辦法可以知道是哪行出錯了?謝謝!

附:部分Crash Log
Incident Identifier: 83238367-AC70-404B-89C6-7AC9E20C6BB0
CrashReporter Key:
Hardware Model: xxx
Process: 大眼睛圖書館 [9424]
Path: /var/mobile/Applications/1D524195-0340-43A1-AECA-4F2503B78428/大眼睛圖書館.app/大眼睛圖書館
Identifier: 大眼睛圖書館
Version: ??? (???)
Code Type: ARM (Native)
Parent Process: launchd [1]

Date/Time: 2012-12-12 14:03:43.673 -0800
OS Version: iOS 6.0.1 (10A523)
Report Version: 104

Exception Type: EXC_CRASH (SIGABRT)
Exception Codes: 0x0000000000000000, 0x0000000000000000
Crashed Thread: 0

Thread 0 name: Dispatch queue: com.apple.main-thread
Thread 0 Crashed:
0 libsystem_kernel.dylib 0x31bb9350 __pthread_kill + 8
1 libsystem_c.dylib 0x3991011e pthread_kill + 54
2 libsystem_c.dylib 0x3994c9f2 __abort + 90
3 libsystem_c.dylib 0x3994d03e __stack_chk_fail + 194
4 大眼睛圖書館 0x000427d6 0x3f000 + 14294
5 大眼睛圖書館 0x00042172 0x3f000 + 12658
6 UIKit 0x389be588 -[UIViewController loadViewIfRequired] + 360
7 UIKit 0x389fed6c -[UIWindow ] + 60
8 UIKit 0x389faae0 -[UIWindow _setHidden:forced:] + 360
9 UIKit 0x38a3c1c4 -[UIWindow makeKeyAndVisible] + 56
10 大眼睛圖書館 0x00041cd8 0x3f000 + 11480
11 UIKit 0x389ffacc -[UIApplication _:isSuspended:restoreState:] + 248
12 UIKit 0x389ff656 -[UIApplication _:payload:suspended:] + 1186
13 UIKit 0x389f783e -[UIApplication _runWithURL:payload:launchOrientation:statusBarStyle:statusBarHidden:] + 694
14 UIKit 0x3899fc34 -[UIApplication handleEvent:withNewEvent:] + 1000
15 UIKit 0x3899f6c8 -[UIApplication sendEvent:] + 68
16 UIKit 0x3899f116 _UIApplicationHandleEvent + 6150
17 GraphicsServices 0x3611b5a0 _PurpleEventCallback + 588
18 CoreFoundation 0x32c64680 __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__ + 12
19 CoreFoundation 0x32c63ee4 __CFRunLoopDoSources0 + 208
20 CoreFoundation 0x32c62cb2 __CFRunLoopRun + 642
21 CoreFoundation 0x32bd5eb8 CFRunLoopRunSpecific + 352
22 CoreFoundation 0x32bd5d44 CFRunLoopRunInMode + 100
23 UIKit 0x389f6478 -[UIApplication _run] + 664
24 UIKit 0x389f32f4 UIApplicationMain + 1116
25 大眼睛圖書館 0x00041b1a 0x3f000 + 11034
26 大眼睛圖書館 0x00041adc 0x3f000 + 10972

『貳』 C#...正在找一個委託實現非同步調用的例子,高手請!

using System;
using System.Threading;

//使用委託調用非同步例子
namespace
{

class AsyncDelegatesBlocked
{
public static int Add(int op1, int op2, out int result)
{
Thread.Sleep(3000); // Simulating work
return (result = op1 + op2);
}
public delegate int AddDelegate(int op1, int op2,
out int result);//聲明AddDelegate委託

static void Main()
{
int result;
/*定義一個AddDelegate類型委託add,將方法Add綁定到委託實例上*/
AddDelegate add = new AddDelegate(Add);

Console.WriteLine("[Main] Invoking the asynchronous " +
"Add method");

/*BeginInvoke 方法用於啟動非同步調用。它與您需要非同步執行的方法具有相同的參數,還有兩個額外的參數
*BeginInvoke 立即返回,不等待非同步調用完成。BeginInvoke 返回 IasyncResult,可用於監視調用進度。*/

//定義IAsyncResult介面類型實例iAR
//6, 42, out result為非同步執行的方法的參數列表
IAsyncResult iAR = add.BeginInvoke(6, 42, out result,
null, null);

// Here we're simulating doing some work before
// blocking on the Add method's completion.
Console.Write("[Main] Doing other work");
for (int i = 0; i < 10; i++)
{
Thread.Sleep(200);
Console.Write(".");
}

Console.WriteLine(" [Main] Waiting for Add to finish");
/*使用 IAsyncResult.AsyncWaitHandle 獲取 WaitHandle,
* 使用它的 WaitOne 方法將執行一直阻塞到發出 WaitHandle 信號,然後調用 EndInvoke。
* 注意:非同步調用完成時會發出 WaitHandle 信號,可以通過WaitOne 來等待它*/
iAR.AsyncWaitHandle.WaitOne();

Console.WriteLine("[Main] Add finished, cleaning up");
/*EndInvoke 方法用於檢索非同步調用結果。調用 BeginInvoke 後可隨時調用 EndInvoke 方法;
* 如果非同步調用未完成,EndInvoke 將一直阻塞到非同步調用完成。
* EndInvoke 的參數包括所需要非同步執行的方法的 out 和 ref 參數以及由 BeginInvoke 返回的 IAsyncResult。*/
add.EndInvoke(out result, iAR);

Console.WriteLine("[Main] The result is {0}", result);
Console.ReadLine();
}
}
}

『叄』 怎麼生成圖片預覽

Image有個GetThumbnailImage(int, int,delegateCallBack, System.IntPtr);
方法可以生成小圖片,試下.

『肆』 C# 獲取 C++指針函數

delegate
委託就是函數指針
用delegate就可以了,你可以參考下MSDN中的delegate的用法,
delegate可以定義一個代理,用這個代理可以是對一個函數或方法的代理,實現上就是指針了.
比如:
public
delegate
void
someMethod(
int
num,
string
str
);
someMethod
method
=
new
someMethod(
函數名字);
這個method就是函數的指針了.
C++
----
C#
傳入的char*
----string
傳出的char*
----
StringBuilder(預分配空間)
short
----short
char
----
byte
char[n]
----
fixed
byte[n]
結構指針
----結構指針
函數指針
----
委託
/////////////////////////以下是代碼////////////////////
在C#中使用Delegate可以方便的包裝Win32非託管dll中的函數指針(回調函數)。
如下面的Win32API:
typedef
void
(*PFNCLIENTCONNECTED)(DWORD
clientId,
DWORD
addr);
typedef
void
(*PFNCLIENTDISCONNECTED)(DWORD
clientId,
DWORD
addr);
typedef
void
(*PFNMESSAGERECEIVED)(DWORD
clientId,
DWORD
addr,
LPCSTR
message);
extern
"C"
__declspec(dllexport)
BOOL
InitializeServer(USHORT
port);
extern
"C"
__declspec(dllexport)
BOOL
UninitializeServer();
extern
"C"
__declspec(dllexport)
void
(PFNCLIENTCONNECTED
clientConnected);
extern
"C"
__declspec(dllexport)
void
(PFNCLIENTDISCONNECTED
clientDisconnected);
extern
"C"
__declspec(dllexport)
void
(PFNMESSAGERECEIVED
messageReceived);
可以使用類似下面的C#代碼來進行調用:
class
Win32Wrapper
{
public
delegate
void
ClientConnected(uint
clientID,
uint
address);
public
delegate
void
ClientDisconnected(uint
clientID,
uint
address);
public
delegate
void
MessageReceived(uint
clientID,
uint
address,
StringBuilder
message);
[DllImport("LogCenter.dll")]
public
static
extern
bool
InitializeServer(ushort
port);
[DllImport("LogCenter.dll")]
public
static
extern
bool
UninitializeServer();
[DllImport("LogCenter.dll",
CallingConvention
=
CallingConvention.Cdecl)]
public
static
extern
int
(Delegate
callback);
[DllImport("LogCenter.dll",
CallingConvention
=
CallingConvention.Cdecl)]
public
static
extern
int
(Delegate
callback);
[DllImport("LogCenter.dll",
CallingConvention
=
CallingConvention.Cdecl)]
public
static
extern
int
(Delegate
callback);
}

『伍』 NET網站後台突然出現這個,怎麼處理,請詳細說下處理辦法。

參數名: oldValue]
System.String.Replace(String oldValue, String newValue) +0
Ant.Web.Admin.Gathering.OO11lOl(String OOO, String O00l1ll11l) +3516
Ant.Web.Admin.Gathering.Page_Load(Object O10l01, EventArgs O) +3958
System.Web.Util.CalliHelper.EventArgFunctionCaller(IntPtr fp, Object o, Object t, EventArgs e) +14
System.Web.Util..Callback(Object sender, EventArgs e) +35
System.Web.UI.Control.OnLoad(EventArgs e) +99
System.Web.UI.Control.LoadRecursive() +50
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +627

熱點內容
區塊鏈開發公司價格表 發布:2025-07-08 14:51:10 瀏覽:494
s7挖螞蟻礦池 發布:2025-07-08 14:51:02 瀏覽:318
萊特幣爆塊 發布:2025-07-08 14:49:22 瀏覽:24
礦池電腦要求 發布:2025-07-08 14:46:25 瀏覽:308
萊特3十礦機多少錢一台 發布:2025-07-08 14:27:50 瀏覽:814
espi數字貨幣 發布:2025-07-08 14:20:36 瀏覽:782
11月8日北京區塊鏈大會 發布:2025-07-08 14:01:23 瀏覽:335
幣圈大資金流入 發布:2025-07-08 14:00:32 瀏覽:939
萊特幣是多少人民幣 發布:2025-07-08 13:42:50 瀏覽:493
萊特幣最高價是多少 發布:2025-07-08 13:38:55 瀏覽:464