Click here to Skip to main content
15,916,600 members
Home / Discussions / C#
   

C#

 
GeneralRe: Drag & Drop under Windows7 Pin
Mycroft Holmes14-Apr-10 2:14
professionalMycroft Holmes14-Apr-10 2:14 
QuestionIs there a way in .NET to access the bytecode/IL/CLR that is currently running? Pin
blackblizzard13-Apr-10 20:43
blackblizzard13-Apr-10 20:43 
AnswerRe: Is there a way in .NET to access the bytecode/IL/CLR that is currently running? Pin
PIEBALDconsult14-Apr-10 4:31
mvePIEBALDconsult14-Apr-10 4:31 
GeneralRe: Is there a way in .NET to access the bytecode/IL/CLR that is currently running? Pin
blackblizzard14-Apr-10 4:39
blackblizzard14-Apr-10 4:39 
GeneralRe: Is there a way in .NET to access the bytecode/IL/CLR that is currently running? Pin
PIEBALDconsult14-Apr-10 5:08
mvePIEBALDconsult14-Apr-10 5:08 
GeneralRe: Is there a way in .NET to access the bytecode/IL/CLR that is currently running? Pin
blackblizzard14-Apr-10 5:18
blackblizzard14-Apr-10 5:18 
GeneralRe: Is there a way in .NET to access the bytecode/IL/CLR that is currently running? Pin
PIEBALDconsult14-Apr-10 5:29
mvePIEBALDconsult14-Apr-10 5:29 
GeneralRe: Is there a way in .NET to access the bytecode/IL/CLR that is currently running? Pin
blackblizzard14-Apr-10 5:39
blackblizzard14-Apr-10 5:39 
PIEBALDconsult wrote:
Ah, classes you didn't write, I see.

Yep. Smile | :)

PIEBALDconsult wrote:
That's probably not a good idea, but maybe someone can figure it out.

What isn't a good idea? If you mean the undo, it's a very important requirement of the system, and it's completely necessary. There are transactions running in the system, and if they fail I need to roll them back (undo what they've done). It's pretty standard, and I've seen it done at a higher level in Java, but the way they do it isn't possible in the .NET framework.

EDIT: I should clarify something about the "undo": it's not that you let the transaction write whatever it wants to memory and then with the undo change it back to how it was. Rather, when the transaction wants to write to a field I intercept the write and write to the transaction's write log instead (write, write, write). If the transaction commits (i.e., finishes successfully) I dump the contents of the write log to memory (actually perform the write it requested). Otherwise, if it rolls back, I simply discard the contents of the write log and they're never written to shared memory.

In any case I need to be able to monitor all accesses in order to register them and redirect them to the write log, if necessary.
AnswerRe: Is there a way in .NET to access the bytecode/IL/CLR that is currently running? Pin
Daniel Grunwald14-Apr-10 6:03
Daniel Grunwald14-Apr-10 6:03 
GeneralRe: Is there a way in .NET to access the bytecode/IL/CLR that is currently running? [modified] Pin
blackblizzard14-Apr-10 6:32
blackblizzard14-Apr-10 6:32 
QuestionGet output from console window (which is a different process) Pin
Programm3r13-Apr-10 20:19
Programm3r13-Apr-10 20:19 
AnswerRe: Get output from console window (which is a different process) Pin
Martin Jarvis13-Apr-10 20:44
Martin Jarvis13-Apr-10 20:44 
GeneralRe: Get output from console window (which is a different process) Pin
Programm3r13-Apr-10 20:56
Programm3r13-Apr-10 20:56 
AnswerRe: Get output from console window (which is a different process) Pin
Programm3r13-Apr-10 21:11
Programm3r13-Apr-10 21:11 
AnswerRe: Get output from console window (which is a different process) Pin
PIEBALDconsult14-Apr-10 3:24
mvePIEBALDconsult14-Apr-10 3:24 
Questiondrawing semi transparent boxes over richtextbox Pin
NarVish13-Apr-10 20:16
NarVish13-Apr-10 20:16 
QuestionWindows Forms Application versus Web Application Pin
polycom12313-Apr-10 19:28
polycom12313-Apr-10 19:28 
AnswerRe: Windows Forms Application versus Web Application Pin
Programm3r13-Apr-10 20:23
Programm3r13-Apr-10 20:23 
GeneralRe: Windows Forms Application versus Web Application Pin
polycom12313-Apr-10 20:49
polycom12313-Apr-10 20:49 
AnswerRe: Windows Forms Application versus Web Application Pin
Dan Mos14-Apr-10 3:50
Dan Mos14-Apr-10 3:50 
GeneralRe: Windows Forms Application versus Web Application Pin
polycom12314-Apr-10 18:19
polycom12314-Apr-10 18:19 
GeneralRe: Windows Forms Application versus Web Application Pin
Michael J. Eber16-Apr-10 21:02
Michael J. Eber16-Apr-10 21:02 
Questionhosting control in datagrid cell Pin
Member 59031013-Apr-10 19:20
Member 59031013-Apr-10 19:20 
AnswerRe: hosting control in datagrid cell Pin
Abhinav S13-Apr-10 19:28
Abhinav S13-Apr-10 19:28 
GeneralRe: hosting control in datagrid cell Pin
Member 59031013-Apr-10 19:58
Member 59031013-Apr-10 19:58 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.