Orbiter-Forum  

Go Back   Orbiter-Forum > Orbiter Space Flight Simulator > Orbiter SDK
Register Blogs Orbinauts List Social Groups FAQ Projects Mark Forums Read

Orbiter SDK Orbiter software developers post your questions and answers about the SDK, the API interface, LUA, meshing, etc.

Reply
 
Thread Tools
Old 01-06-2017, 11:33 AM   #1
Topper
Addon Developer

Default Using Orbiter d3d9 client in debug mode

Hi, is it possible to use debug mode from visual studio with the d3d9 graphic client and if yes how?
I have trouble using the inline graphic client with windows 10 so I can't use this.

Thanks for help!
Topper is offline   Reply With Quote
Old 01-06-2017, 11:50 AM   #2
Face
Beta Tester
 
Face's Avatar

Default

Quote:
Originally Posted by Topper View Post
 Hi, is it possible to use debug mode from visual studio with the d3d9 graphic client and if yes how?
I have trouble using the inline graphic client with windows 10 so I can't use this.
Why do you want to debug it? Is it also not working for you, just like the inline client?
Face is offline   Reply With Quote
Old 01-06-2017, 12:00 PM   #3
Topper
Addon Developer

Default

No sorry maybe my description was not so good...
Normaly I used the orbiter.exe in debug mode for developting plugins.
Now, I just want to use the orbiter_ng.exe in debug mode for developing another plugin. I don't want to debug the d3d9 client.

But when I use "orbiter_ng.exe" as command in the debug solution and I press Run in VS, I got the message "orbiter_ng.exe has exit with code 0" in the VS log window, however, the Orbiter launchpad is open.

I think the orbiter_ng.exe just starts the orbiter.exe without inline graphic client and the process of the orbiter_ng.exe will be terminated after.
Maybe there is a parameter to start orbiter.exe without inline graphic client or so...?
Topper is offline   Reply With Quote
Old 01-06-2017, 02:23 PM   #4
Weirdo Earthtorch
Orbinaut
Default

What about /Modules/Server/Orbiter.exe? Isn't it that that gets launched by Orbiter_ng.exe?
Weirdo Earthtorch is offline   Reply With Quote
Thanked by:
Old 01-06-2017, 02:52 PM   #5
martins
Orbiter Founder
Default

Quote:
Originally Posted by Weirdo Earthtorch View Post
 What about /Modules/Server/Orbiter.exe? Isn't it that that gets launched by Orbiter_ng.exe?
That is correct. When debugging a plugin under orbiter_ng, set Modules/Server/Orbiter.exe as the launch application, but also make sure to set the Orbiter root directory as the working directory, otherwise Orbiter won't find its subdirectories.
martins is offline   Reply With Quote
Thanked by:
Old 01-10-2017, 08:46 PM   #6
Topper
Addon Developer

Default

Hi again,
thanks generaly, it's working now...

But sometimes, I have a "CTD" and an error in VS "binary data are not filled with debug informations".

source position: C:\Orbiter\Orbiter2016\Modules\Server\orbiter.exe

I have no idea why and can't debug :-(

---------- Post added at 21:46 ---------- Previous post was at 21:45 ----------

Hi again,
thanks generaly, it's working now...

But sometimes, I have a "CTD" and an error in VS "binary data are not filled with debug informations".

source position: C:\Orbiter\Orbiter2016\Modules\Server\orbiter.exe

I have no idea why and can't debug :-(
Any idea please?
Topper is offline   Reply With Quote
Old 01-10-2017, 08:53 PM   #7
martins
Orbiter Founder
Default

You can't debug inside orbiter.exe, only in your own addon code.
If the call stack is usable, it may be a good idea to check if it contains a reference to one of the functions in your code. If so, this is a good point to start debugging. For example, check if the parameters passed to API calls are valid, etc.
martins is offline   Reply With Quote
Thanked by:
Old 01-11-2017, 11:27 PM   #8
Topper
Addon Developer

Post

Thanks Martin,
it's a "0xC0000005" error.
The last call is from oapiWriteLog, but i'm not using this method in my plugin.
I can't reproduce this it's only "sometimes"

I have no Idea.
So do you think I should check all my "oapi" - calls if their parameters are corect right?
Only the "oapi" - calls or also other api calls (like Vesesl-> blablabla)?



---------- Post added 12-01-17 at 00:27 ---------- Previous post was 11-01-17 at 21:45 ----------

Maybe I've got the mistake...
I had send a "NAN" value to the "SetThrusterGroupLevel" method.

Code:
vessel->SetThrusterGroupLevel(THGROUP_ATT_YAWLEFT, thrust);
I can avoid the CTD like this:

Code:
if (thrust == thrust)
   vessel->SetThrusterGroupLevel(THGROUP_ATT_YAWLEFT, thrust);
However, I have to check WHY it's nan...

Last edited by Topper; 01-11-2017 at 08:55 PM.
Topper is offline   Reply With Quote
Reply

  Orbiter-Forum > Orbiter Space Flight Simulator > Orbiter SDK


Thread Tools

Posting Rules
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
Forum Jump


All times are GMT. The time now is 07:48 PM.

Quick Links Need Help?


About Us | Rules & Guidelines | TOS Policy | Privacy Policy

Orbiter-Forum is hosted at Orbithangar.com
Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright 2007 - 2012, Orbiter-Forum.com. All rights reserved.