TheFabFab
Topic Author
Posts: 4
Joined: 22 Jan 2014, 21:29

"Building an Application" tutorial

19 Feb 2014, 00:27

Hi guys!

I managed to run the the tutorial with the gui launcher - but when I try to run it as standalone application (the last bit of the tutorial), I'm getting "Unable to create device Unknown[0x80070057]" error.

Here's the stack trace:
{{{
Unable to create device

Unknown[0x80070057]
}}}
{{{
[ 0] [0x100156C6] Noesis.dll!Noesis::Core::InvokeErrorHandler + 0x76 bytes
[ 1] [0x1009559B] Noesis.dll!Noesis::Render::IDX9RenderSystem::SetDevice + 0x74eb bytes
[ 2] [0x1001B00C] Noesis.dll!NsGetKernel + 0x75c bytes
[ 3] [0x1001BB21] Noesis.dll!NsGetKernel + 0x1271 bytes
[ 4] [0x1001BD33] Noesis.dll!NsGetKernel + 0x1483 bytes
[ 5] [0x1032732C] Noesis.dll!Noesis::Gui::BaseApplication::Init + 0x13c bytes
[ 6] [0x0135309E] RssReader.exe!NsMain!program.cpp (line 33 + 0x11 bytes)
[ 7] [0x01354C54] RssReader.exe!WinMain!entrypoint.h (line 33 + 0x16 bytes)
[ 8] [0x0135DA83] RssReader.exe!__tmainCRTStartup!crtexe.c (line 528 + 0x15 bytes)
[ 9] [0x0135D84D] RssReader.exe!WinMainCRTStartup!crtexe.c (line 377)
[10] [0x770D850D] KERNEL32.DLL!BaseThreadInitThunk + 0xe bytes
[11] [0x776FBF39] ntdll.dll!RtlInitializeExceptionChain + 0x85 bytes
[12] [0x776FBF0C] ntdll.dll!RtlInitializeExceptionChain + 0x58 bytes
}}}
 
User avatar
jsantos
Site Admin
Posts: 4266
Joined: 20 Jan 2012, 17:18
Contact:

Re: "Building an Application" tutorial

19 Feb 2014, 15:42

Really strange, it is failing when creating the DirectX9 device. Are you sure that both the launcher and your application are being executed under the same conditions? (same path even)
 
TheFabFab
Topic Author
Posts: 4
Joined: 22 Jan 2014, 21:29

Re: "Building an Application" tutorial

19 Feb 2014, 19:20

Yes, I'm running them both from the same folder.
 
User avatar
jsantos
Site Admin
Posts: 4266
Joined: 20 Jan 2012, 17:18
Contact:

Re: "Building an Application" tutorial

20 Feb 2014, 17:43

I just verified this myself here. I compiled the exe using the code in the tutorial (by the way, there were minor errors when compiling because the code was not updated to the latest version of noesisGUI. I fixed them) and it display the window correctly.

This is really strange because all the initialization of the device happens in the same place for bot the launcher and the custom binary: inside noesis.dll

Any change you could activate the debug binaries of DX9 in your machine?
Does this happen in other machines?

Thanks.
 
david.lawson
Posts: 3
Joined: 21 Apr 2014, 19:28

Re: "Building an Application" tutorial

23 Apr 2014, 01:54

How was this resolved? I'm seeing the same stack trace and exception thrown if I try to create a standalone application with the TicTacToe.App class.

Unable to create device
Unknown[0x80070057]

[ 0] [0x100153B6] Noesis.dll!Noesis::Core::InvokeErrorHandler + 0x76 bytes
[ 1] [0x100931FB] Noesis.dll!Noesis::Render::IDX9RenderSystem::SetDevice + 0x72bb bytes
[ 2] [0x1001AE0C] Noesis.dll!NsGetKernel + 0x72c bytes
[ 3] [0x1001B921] Noesis.dll!NsGetKernel + 0x1241 bytes
[ 4] [0x1001BB33] Noesis.dll!NsGetKernel + 0x1453 bytes
[ 5] [0x10327729] Noesis.dll!Noesis::Gui::BaseApplication::Init + 0x149 bytes
[ 6] [0x00D11334] TickTacToe.exe!NsMain!nsmain.cpp (line 49 + 0xf bytes)
[ 7] [0x00D112B5] TickTacToe.exe!WinMain!entrypoint.h (line 34)
[ 8] [0x00D11B75] TickTacToe.exe!__tmainCRTStartup!crtexe.c (line 618 + 0xe bytes)
[ 9] [0x765E338A] kernel32.dll!BaseThreadInitThunk + 0x12 bytes
[10] [0x7777BF32] ntdll.dll!RtlInitializeExceptionChain + 0x63 bytes
[11] [0x7777BF05] ntdll.dll!RtlInitializeExceptionChain + 0x36 bytes

Does the startup code for the RSS tutorial apply when registering a Gui::Application class type like TicTacToe?
 
User avatar
jsantos
Site Admin
Posts: 4266
Joined: 20 Jan 2012, 17:18
Contact:

Re: "Building an Application" tutorial

23 Apr 2014, 15:24

Hi David,

Does the application launch if you use the Gui.Launcher instead?
 
david.lawson
Posts: 3
Joined: 21 Apr 2014, 19:28

Re: "Building an Application" tutorial

24 Apr 2014, 18:47

Yes it launches with Gui.Launcher. My guess its related to the initialization code. I was using the sample launcher application code at:

http://www.noesisengine.com/docs/Gui.Co ... orial.html

The only difference is I'm launching the TicTacToe app rather than RssReader shown in tutorial.
 
User avatar
jsantos
Site Admin
Posts: 4266
Joined: 20 Jan 2012, 17:18
Contact:

Re: "Building an Application" tutorial

25 Apr 2014, 12:10

Yes, the initialization code should be the same, only changing the following line:
theApp.SetApplicationFile("Gui/TicTacToe/App.xaml");
I am testing it here and it is working fine. Could you pack and send me the standalone application? There have to be a step I am missing here.
 
david.lawson
Posts: 3
Joined: 21 Apr 2014, 19:28

Re: "Building an Application" tutorial

07 May 2014, 23:53

I have the exact same line. I have another example I built where I did the DX9 initialization based on the integration example and that runs. I emailed zip file, too large to post here.
 
User avatar
jsantos
Site Admin
Posts: 4266
Joined: 20 Jan 2012, 17:18
Contact:

Re: "Building an Application" tutorial

08 May 2014, 02:26

Thanks for your collaboration!

We have detected and fixed the issue. Will be solved in the next release, planned for the next week.

Who is online

Users browsing this forum: Ahrefs [Bot], Google [Bot] and 3 guests