C#/ C++/ASM , small but tricky project

已完成 已发布的 Aug 4, 2009 货到付款
已完成 货到付款

UPDATE !!! As MOST of your bidders did not understand the scope I attached the final use of the method in an [login to view URL] solution. NOTE !! Its about getting the INSTANCE of the class which calls a static method, NOT !! the TYPE OR METHOD INFO ! So this CAN'T be done via simple reflection as many offered ! The attached project is RAR not zip, please rename it before opening it. ALTERNATIVE !! What we try to achieve could be BETTER solved by rewriting MSIL before the jitter compiles a method. I was able to do this using the profiler API, but we CANT use the profiler API in release mode and also need to attach a real profiler for testing purposes. So if you know how to catch the jitter compile event, let me know. End of update This project is about developing a single method which retrieves the caller of a static method in C#. In simple words, below code must run: public SomeClass { public bool WasCalled=false; puplic static void SomeStaticMethod() { SomeClass _Caller=[login to view URL]();//the method to develop !! Caller.WasCalled=true; } public void StaticCallTest() { [login to view URL](); if(this.WasCalled==false) throw new Exception("you did not do your job !") } } Of course this must work in all scenarios, independent on what code was run before the call. As we will have many of those calls, code must be ultra fast. You will need access to the machines register and memory using assembler. I do not know any way to do this in NET, so a C++ dll is ok along with a C# dll importing the C++ method.

## Deliverables

1) Complete and fully-functional working program(s) in executable form as well as complete source code of all work done.

2) Deliverables must be in ready-to-run condition, as follows? (depending on the nature? of the deliverables):

a)? For web sites or? other server-side deliverables intended to only ever exist in one place in the Buyer's environment--Deliverables must be installed by the Seller in ready-to-run condition in the Buyer's environment.

b) For all others including desktop software or software the buyer intends to distribute: A software? installation package that will install the software in ready-to-run condition on the platform(s) specified in this bid request.

3) All deliverables will be considered "work made for hire" under U.S. Copyright law. Buyer will receive exclusive and complete copyrights to all work purchased. (No GPL, GNU, 3rd party components, etc. unless all copyright ramifications are explained AND AGREED TO by the buyer on the site per the coder's Seller Legal Agreement).

* * *This broadcast message was sent to all bidders on Wednesday Aug 5, 2009 1:52:41 PM:

As many of you bidders did not understand the scope, I added some update and a [login to view URL] project demonstrating WHY we need this. As you can see from the attached project, the static method is a implicit operator method ALWAYS called from our Field class. So NO, this CAN'T be done with simple reflection. Please review the project and either place a new comment that you can do it, or remove your bid if you feel you can't solve it.

## Platform

C# on windows, using C++ and ASM to get it run

汇编 C 编程 C# 编程 工程 MySQL PHP 软件构架 软件测试

项目ID: #2822917

关于项目

16个方案 远程项目 活跃的Aug 26, 2009

授予:

DarthCoder1

See private message.

$127.5 USD 在14天内
(2条评论)
2.8

有16名威客正在参与此工作的竞标,均价$140/小时

gmit2

See private message.

$649.4 USD 在14天内
(78条评论)
7.7
danale72

See private message.

$85.85 USD 在14天内
(96条评论)
6.0
locdev

See private message.

$85 USD 在14天内
(56条评论)
5.8
yilin

See private message.

$85 USD 在14天内
(72条评论)
5.7
gdiab

See private message.

$85 USD 在14天内
(67条评论)
5.2
watcher17

See private message.

$212.5 USD 在14天内
(10条评论)
4.5
aronsky

See private message.

$85 USD 在14天内
(18条评论)
4.4
alexdevw

See private message.

$85 USD 在14天内
(8条评论)
4.1
adeelmumtazvw

See private message.

$85 USD 在14天内
(25条评论)
4.1
honeyexpert

See private message.

$148.75 USD 在14天内
(2条评论)
3.4
jramynke

See private message.

$85 USD 在14天内
(6条评论)
3.1
backdoors

See private message.

$85 USD 在14天内
(13条评论)
3.7
pacino786

See private message.

$85 USD 在14天内
(14条评论)
3.0
codeguruindia

See private message.

$170 USD 在14天内
(0条评论)
0.0
mkhaliq

See private message.

$85 USD 在14天内
(0条评论)
0.0