• If this is your first visit, you will have to register before you can post. To view messages, please scroll below and select the forum that you would like to visits. Questions? Be sure to check out the Forum FAQ.

Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

How to compile with unsafe code?

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • NinjaTrader_DaveI
    replied
    Thank you -- I've added your vote.

    Leave a comment:


  • NJA_MC
    replied
    I think this is important, but unlikely it will impact me until after BETA.

    Leave a comment:


  • NinjaTrader_DaveI
    replied
    EV, I've added your vote to SFT-501 for supporting the compilation of unsafe code. If anyone else would like to add their vote, please let me know so we can get an idea of the demand for this feature/ability.

    Leave a comment:


  • zweistein
    replied
    unsafe code

    unsafe code will be essentially use of pointers in C, C++ or asm.

    For sure you can compile an external dll , but then you have to interface to C code.

    In the past I used C++ managed code with unsafe code fragments to interface with the JNI (java native interface). Then you can call your C++ managed code exactly the same way as you would call a C# class/function.
    Be aware that you need all Visual Studio 8 patches otherwise the managed C++ code will not always compile.

    Andreas

    Leave a comment:


  • ETFVoyageur
    replied
    OK -- thanks for the update.

    --EV

    Leave a comment:


  • NinjaTrader_Brett
    replied
    Wont be in NT8 beta. Would be on the list to look into what would be required to do that until after we are through open beta but not sooner.

    Leave a comment:


  • ETFVoyageur
    replied
    Brett,

    What's the latest on when we'll be able to compile directly in Visual Studio? Aside from convenience, that would allow breakpoints active from the get-go instead of only after a human has time to attach to the process.

    --EV

    Leave a comment:


  • NinjaTrader_Brett
    replied
    Sorry Koganam, but outside the scope we could provide at the moment.

    Leave a comment:


  • koganam
    replied
    Originally posted by NinjaTrader_Brett View Post
    We use an internal compiler calls therefor not supported. To do this for now you would have to compile a DLL externally and reference it in. I'll add a vote for the unsafe option.
    Do we get to know what that internal compiler call is? I have been trying unsuccessfully to figure it out since NT7, so that I can use it in my installer for my goods. The current method I use is just too crude a hack for me to even describe: I am too ashamed of just how bad a hack it is.

    Leave a comment:


  • ETFVoyageur
    replied
    Thanks, Brett.

    I do think NT should support that, but it is not crucial for me right now. Perhaps the point will be moot when NT gets to where the compilation can be done in Visual Studio.

    --EV

    Leave a comment:


  • NinjaTrader_Brett
    replied
    We use an internal compiler calls therefor not supported. To do this for now you would have to compile a DLL externally and reference it in. I'll add a vote for the unsafe option.

    Leave a comment:


  • ETFVoyageur
    started a topic How to compile with unsafe code?

    How to compile with unsafe code?

    How do I compile with unsafe code?

    Trying to do so gets the correct error message: Unsafe code may only appear if compiling with /unsafe.

    My problem is that I do not know where to set /unsafe.

    --EV

Latest Posts

Collapse

Topics Statistics Last Post
Started by cls71, Today, 12:28 PM
0 responses
6 views
0 likes
Last Post cls71
by cls71
 
Started by NeverDownMoney, Today, 12:19 PM
0 responses
2 views
0 likes
Last Post NeverDownMoney  
Started by NT-Roland, Today, 11:24 AM
0 responses
6 views
0 likes
Last Post NT-Roland  
Started by NeverDownMoney, Today, 11:05 AM
0 responses
3 views
0 likes
Last Post NeverDownMoney  
Started by hothomas, Today, 08:40 AM
0 responses
5 views
0 likes
Last Post hothomas  
Working...
X