HOW-TO debug a DLL for XBMC
#1
hi all,

i have added a how-to to the online manual, how to enable debug symbols for dlls, screensaver and visualisations.

you can find it here.

please add comments here if you have questions about it.

greets

bobbin007
Always read the XBMC online-manual, FAQ and search the forum before posting.
Do not e-mail XBMC-Team members directly asking for support. Read/follow the forum rules.
For troubleshooting and bug reporting please make sure you read this first.


Image
Reply
#2
Thumbs Up 
nice! ...so this includes mplayer, paplayer, and the dvdplayer as well right?
Always read the XBMC online-manual, FAQ and search the forum before posting.
Do not e-mail XBMC-Team members directly asking for support. Read/follow the forum rules.
For troubleshooting and bug reporting please make sure you read this first.
Reply
#3
this includes only dlls compiled with microsoft visual c++ compiler. i think all paplayer dlls are compiled with it. if i remember right mplayer and the dvdplayer dlls are compiled using mingw afaik the compiler doesn't provide a way of generating debug information in a compatible format. we would need codeview/pdb format.

greets

bobbin007
Always read the XBMC online-manual, FAQ and search the forum before posting.
Do not e-mail XBMC-Team members directly asking for support. Read/follow the forum rules.
For troubleshooting and bug reporting please make sure you read this first.


Image
Reply
#4
Is ther any way to debug mplayer.dll?

There is a bug in the current implementation when seeking past a cutpoint.
The xbox code is correct, so something goes wrong in mplayer.dll.
Reply
#5
You can use printf's is really the only way, as mplayer is not built with visualstudio debug info.
Always read the XBMC online-manual, FAQ and search the forum before posting.
Do not e-mail XBMC-Team members directly asking for support. Read/follow the forum rules.
For troubleshooting and bug reporting please make sure you read this first.


Image
Reply
#6
A little big stupid question... how-to make a .dll? I'm reading about to make "something interesting"™ with the visualizers now that i have finished my exams but i can't be able to. I have downloaded some little visualizers and screensavers (since both use the same dll loader -thanks for the info Gamester17 Wink ) and i'm not be able to compile them. I just have make a simple screensaver that only makes printf telling what function is running (Start(), Render() and Stop(), nothing more) and it compile, but i can't be able to run it with the TextXBS.exe (it crash with several error: visualization not found, get_module not found...) or with XBMC for Windows (here it simply doesn't appear as a selectionable screensaver). I have read the tutorial about how to debug a dll, but there is a tutorial about how to make them?

By the way, i'm using VisualC++ 2008 Express (i didn't found any other :-( ). I'm trying to get the DirectX 8 SDK but the "Printf Screensaver" doesn't need it and doesn't work too...
Reply
#7
Note that currently XBMC for Xbox support Direct3D/DirectX visualizations and screensavers. While XBMC for Linux, XBMC for Mac, and XBMC for Windows currently only support OpenGL visualizations and screensavers.

Checkout whole thread: http://forum.xbmc.org/showthread.php?tid=137

Also these articles in the wiki (XBMC Online Manual):
http://wiki.xbmc.org/?title=Appendix_D:_...ment_Notes
http://wiki.xbmc.org/?title=HOW-TO_debug..._Libraries
http://wiki.xbmc.org/?title=Basic_overvi...DLL_Loader

Wink

PS! Which platform are you trying to compile XBMC for? For Xbox you going to need Visual Studio .NET 2003 or older (plus the XDK).
Always read the XBMC online-manual, FAQ and search the forum before posting.
Do not e-mail XBMC-Team members directly asking for support. Read/follow the forum rules.
For troubleshooting and bug reporting please make sure you read this first.
Reply

Logout Mark Read Team Forum Stats Members Help
HOW-TO debug a DLL for XBMC0