Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8686523
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T22:52:23+00:00 2026-06-12T22:52:23+00:00

I have been working on a version of my XNA tutorials using DirectX 11

  • 0

I have been working on a version of my XNA tutorials using DirectX 11 and XAML and have been having a pretty good go at things in general.

Today, the trial version of VS 2012 Professional expired so I threw an install of the Express Edition on to make sure everything I had done up to this point would build/run ok. Turns out it doesn’t though.

In the section of my code where I am loading in vertex/pixel shaders I am using concurrency Tasks. Using Visual Studio 2012 Professional, this was all working great, but when I try to run the same project using Express Edition, I get the following exception:

First-chance exception at 0x76BA4B32 (KernelBase.dll) in Demo.exe: 0x40080201: WinRT originate error (parameters: 0x800700A1, 0x00000075, 0x0299DA88).
Here is the offending code block:

auto loadVSTask = DX::ReadDataAsync(m_vertex).then([=](const Platform::Array<byte>^ bytecode) {
    DX::ThrowIfFailed(
        device->CreateVertexShader(
            bytecode->Data,
            bytecode->Length,
            nullptr,
            &m_vertexShader
        )
    );

    DX::ThrowIfFailed(
        device->CreateInputLayout(m_layout, m_layoutElements, bytecode->Data, bytecode->Length, &m_inputLayout)
    );
});

// Function that reads from a binary file asynchronously.
inline Concurrency::task<Platform::Array<byte>^> ReadDataAsync(Platform::String^ filename)
{
    using namespace Windows::Storage;
    using namespace Concurrency;

    auto folder = Windows::ApplicationModel::Package::Current->InstalledLocation;

    return create_task(folder->GetFileAsync(filename)).then([] (StorageFile^ file) 
    {
        return FileIO::ReadBufferAsync(file);
    }).then([] (Streams::IBuffer^ fileBuffer) -> Platform::Array<byte>^ 
    {
        auto fileData = ref new Platform::Array<byte>(fileBuffer->Length);
        Streams::DataReader::FromBuffer(fileBuffer)->ReadBytes(fileData);
        return fileData;
    });
}

Using a non Async verison of the file loading works fine and everything runs perfectly. To reiterate this only happens in Visual Studio 2012 Express and does not occur in the Professional Edition.

Any ideas?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-12T22:52:24+00:00Added an answer on June 12, 2026 at 10:52 pm

    The issue seems to be related to the directory separator I used. Changing them from / to \\ in the file path makes things work in all versions. Not sure how the / was working before with no issues or why it would matter between Express and Professional.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have been working on a system which I'm using protobuf-net (version 2.0.0.480) for
I use TortoiseSVN for version control. In a working cooy I have been working
I have been working on a project in C# (.net4). Project pretty much allows
I have been working with the commercial version of Qt on Windows for some
I have been working with Xcode 4.2.1, but following some tutorials and videos from
Good Day all, i have been working with http://jsfiddle.net , the sample app i
I have been working on the project where application is using grails 1.2.2.... Now
I have been working with node and using vows to write tests. var vows
I have been working through the GWT tutorials on Google's developer site, and have
Have been working on this question for a couple hours and have come close

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.