![]() |
|
|||||||
| XBMC Development Developers forums for XBMC related development. Programmers/Coders only! No end-user support, no bug reports, and no feature/function requests here! Please, add platform prefix for suggestions that are not platform-independent!: Thread prefixes; "[LINUX]", "[LIVE]", "[MAC]", "[WINDOWS]", and "[XBOX]" |
![]() |
|
|
Thread Tools | Search this Thread | Display Modes |
|
|
#1 |
|
Junior Member
Join Date: Feb 2004
Posts: 22
![]() |
okay, with the great help from pike i've got a compiled version of my g-force-port compiled with the vs.net2003. but when i try to load it in xbmc i get unresolved symbols!
unable to resolve kernel32.dll setendoffile unable to resolve kernel32.dll virtualprotect unable to resolve kernel32.dll lcmapstringw unable to resolve kernel32.dll lcmapstringa unable to resolve kernel32.dll writefile unable to resolve kernel32.dll rtlunwind unable to resolve kernel32.dll getcommandlinea unable to resolve kernel32.dll deletefilea unable to resolve kernel32.dll setlasterror unable to resolve kernel32.dll heapdestroy unable to resolve kernel32.dll heapcreate unable to resolve kernel32.dll virtualfree unable to resolve kernel32.dll virtualalloc unable to resolve kernel32.dll heaprealloc unable to resolve kernel32.dll isbadwriteptr unable to resolve kernel32.dll sethandlecount unable to resolve kernel32.dll getstdhandle unable to resolve kernel32.dll getfiletype unable to resolve kernel32.dll getstartupinfoa unable to resolve kernel32.dll exitprocess unable to resolve kernel32.dll terminateprocess unable to resolve kernel32.dll getcurrentprocess unable to resolve kernel32.dll getmodulefilenamea unable to resolve kernel32.dll freeenvironmentstringsa unable to resolve kernel32.dll getenvironmentstrings unable to resolve kernel32.dll freeenvironmentstringsw unable to resolve kernel32.dll widechartomultibyte unable to resolve kernel32.dll getenvironmentstringsw unable to resolve kernel32.dll unhandledexceptionfilter unable to resolve kernel32.dll heapsize unable to resolve kernel32.dll getstringtypea unable to resolve kernel32.dll multibytetowidechar unable to resolve kernel32.dll getstringtypew unable to resolve kernel32.dll getcpinfo unable to resolve kernel32.dll getlocaleinfoa unable to resolve kernel32.dll getacp unable to resolve kernel32.dll getoemcp unable to resolve kernel32.dll isbadreadptr unable to resolve kernel32.dll isbadcodeptr unable to resolve kernel32.dll setstdhandle unable to resolve kernel32.dll virtualquery unable to resolve kernel32.dll flushfilebuffers unable to resolve kernel32.dll raiseexception they're not in the dll-loader included, so no chance to get the plugin running is there a special trick with compiling; where does the symbols come from? i've copied the vs-goom-project-file and modified it to make it compile gforce instead.some functions i don't know why they are needed (example lcmapstringw). perhaps i have to modify the code a little bit more :/ any suggestions? |
|
|
|
|
|
#2 |
|
Team-XBMC Developer
Join Date: Dec 2003
Posts: 765
![]() |
most of those should be loadable, the xbox certainly has most of those functions, maybe some fixing required for the dll loader.
__________________
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.
|
|
|
|
|
|
#3 | |
|
Team-XBMC Project Manager
Join Date: Sep 2003
Location: Sweden
Posts: 10,582
![]() |
Quote:
please let us all know if you run into any problems and need our assistanse, we all love to see it make the visualization competition
__________________
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. |
|
|
|
|
|
|
#4 |
|
Junior Member
Join Date: Feb 2004
Posts: 22
![]() |
okay, i've finally got vs.net2003 and could compile the plugin. but there is a little problem left
the plugin needs the dll-functions "??2@yapaxi@z" (malloc) and "??3@yaxpax@z" (free). in the dllloader are these functions defined for the msvcrt.h, but not for the msvcr71.h. and the plugin imports the functions from the 7.1runtime... i've tried simply including the functions in 7.1 like they are included in the msvcrt, but that doesn't work even with the "normal" viz-plugins. don't know why?!? i always get a access-violation. can anyone help me with this one? |
|
|
|
|
|
#5 |
|
Team-XBMC Developer
Join Date: Dec 2003
Posts: 765
![]() |
hmm malloc and free should be imported as _malloc and _free. are you sure they aren't new and delete?
__________________
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.
|
|
|
|
|
|
#6 |
|
Junior Member
Join Date: Feb 2004
Posts: 22
![]() |
sorry, they are in fact new/delete
what i find strange: when i include them into the 7.1 runtime, the other plugins crash after one time activating/deactivating them, too. perhaps i'm doing something terrible wrong. including it generates a bufferover- or underrun... doesn't use the other plugins new/delete or why doesn't they have the import-problem? |
|
|
|
|
|
#7 |
|
Team-XBMC Developer
Join Date: Dec 2003
Posts: 765
![]() |
i think goom has this issue - it doesn't dealloc a lot of memory (~3mb). new is a layer on top of malloc/free though so for goom i just hooked malloc/free and clean up for it.
__________________
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.
|
|
|
|
|
|
#8 | ||
|
Junior Member
Join Date: Feb 2004
Posts: 22
![]() |
yes, goom uses malloc/free and not new/delete!
what have i done: downloaded sources this weekend and compiled and everything is ok. added the following code to msvcr71.h (in core\dllloader): Quote:
assertion failed: Quote:
i think there is a memover- or underrun, but don't now where/why?!? perhaps now it's clearer to reproduce/understand what's going on.... the import "??2@yapaxi@z" and "??3@yaxpax@z" are in the msvcrt.h defined, too. but that should be no problem at all.... i think the memleak is not the problem at all, but the internal management from dllmalloc/dlldelete. does it handle new and new[]? is there a difference between them? (there should be a difference between them; red it here: http://weblogs.asp.net/oldnewthing/a.../04/67384.aspx ) thanx for your help! |
||
|
|
|
|
|
#9 | |
|
Junior Member
Join Date: Feb 2004
Posts: 22
![]() |
ok, found the problem:
in dll.cpp are leaks detected and delete: Quote:
edit: hm. that doesn't make much sense. both uses malloc... |
|
|
|
|
|
|
#10 |
|
Team-XBMC Developer
Join Date: Dec 2003
Posts: 765
![]() |
um doing that is a bad idea as it makes goom leak 3mb a time...
__________________
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.
|
|
|
|
![]() |
| Bookmarks |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | Search this Thread |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| LinVDR video/control client built-into XBMC (ex. streamdev plugin) | Boxler | XBMC Feature Suggestions | 31 | 2008-09-11 17:14 |
| Xbmc locks on to one plugin | tigerclaw | XBMC for Xbox Specific Support | 2 | 2005-08-13 03:56 |
| Porting UnRar library to Xbox/XBMC | damien7579 | XBMC Development | 31 | 2005-01-23 11:48 |
| Audioscrobbler plugin for xbmc | italic_dj | XBMC Feature Suggestions | 0 | 1970-01-01 02:00 |