Jump to content

Exceptions problem visual studio 17


aiaf
 Share

Recommended Posts

Im on windows 10 updated to beta branch and visual studio 17

 

I took a sln project from Documents\Leadwerks\Projects and added some simple code i was using earlier for testing: App.cpp App.h and main.cpp.

 

Project builds ok.

 

But i get this kind on errors when running:

 

Exception thrown at 0x00202616 in test.debug.exe: 0xC0000005: Access violation reading location 0x40000004.

This looks like memory corruption to me.

 

But im not able to track what is the cause of this.

Seems is not related to the code it happens anyway.

 

Any idea ?

I made this with Leadwerks/UAK:

Structura Stacky Desktop Edition

Website:

Binary Station

Link to comment
Share on other sites

With Leadwerks closed i delete the project in Documents\Leadwerks\Projects.

 

I create a new project Tutorial Sample, game doesnt start:

Error: Failed to read file "C:/Users/alex/Documents/Leadwerks/Projects/tes1/Maps/start.map".

 

In Maps there is a temp.map. If i change to start.map it will start.

 

And for your question reepblue yes with stock code it works.

 

This is the code i use and have issues:

 

bool App::Start()
{
//GAME BASIC INITIALIZATION
    System::Print("lep start\n");

    tick = 0;

    int WindowFlags = 0;
    WindowFlags = Leadwerks::Window::Titlebar;
    vs = true;

    window = Leadwerks::Window::Create("lep", 0, 0, 1024, 768, WindowFlags);

    context = Context::Create(window);
    world = World::Create();

    camera = Camera::Create();
    camera->SetPosition(2, 3, -1);
 camera->SetClearColor(0.1, 0.1, 0.2);

//GAME SPECIFIC
    Light* light1 = DirectionalLight::Create();
    light1->SetPosition(100, 100, 0);
    light1->SetColor(2.9,2.9,3.0);

    world->SetAmbientLight(1.0,1.0,1.18);
    //window->HideMouse();

return true;
}
bool App::Loop()
{
    Leadwerks::Time::Update();

    world->Update();
    world->Render();

    context->Sync(vs);
return true;
}

 

 

Maybe it needs something more im not aware of ?

I made this with Leadwerks/UAK:

Structura Stacky Desktop Edition

Website:

Binary Station

Link to comment
Share on other sites

Yes got same problems.

 

I deleted Leadwerks from steam and reinstalled the beta.

Now i tried it simpler, just copied the App.cpp from above over the project created by Leadwerks.

 

Severity Code Description Project File Line Suppression State

Error C1083 Cannot open include file: 'corecrt.h': No such file or directory nt C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.10.24629\include\crtdefs.h 10

 

I have both SDK for 10 and 8.1 installed.

Maybe is something with my Visual Studio, the default project cant find the Windows SDK include it seems.

I made this with Leadwerks/UAK:

Structura Stacky Desktop Edition

Website:

Binary Station

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

×
×
  • Create New...