aiaf Posted December 10, 2016 Share Posted December 10, 2016 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 ? Quote I made this with Leadwerks/UAK: Structura | Stacky Desktop Edition Website: Binary Station Link to comment Share on other sites More sharing options...
reepblue Posted December 10, 2016 Share Posted December 10, 2016 Yeah, I get odd issues with the debug builds when loading a map. I thought it was something with my map loading code. Does the stock code have issues? Quote Cyclone - Ultra Game System - Component Preprocessor - Tex2TGA - Darkness Awaits Template (Leadwerks) If you like my work, consider supporting me on Patreon! Link to comment Share on other sites More sharing options...
aiaf Posted December 11, 2016 Author Share Posted December 11, 2016 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 ? Quote I made this with Leadwerks/UAK: Structura | Stacky Desktop Edition Website: Binary Station Link to comment Share on other sites More sharing options...
Josh Posted December 13, 2016 Share Posted December 13, 2016 A full build is released. If you continue to have problems please let me know. Quote My job is to make tools you love, with the features you want, and performance you can't live without. Link to comment Share on other sites More sharing options...
aiaf Posted December 14, 2016 Author Share Posted December 14, 2016 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. Quote I made this with Leadwerks/UAK: Structura | Stacky Desktop Edition Website: Binary Station Link to comment Share on other sites More sharing options...
Josh Posted December 14, 2016 Share Posted December 14, 2016 I am changing it to use VS 2015. There may be problems rolling out the 2017 version right now. Quote My job is to make tools you love, with the features you want, and performance you can't live without. Link to comment Share on other sites More sharing options...
Recommended Posts
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.