Total Commander Forum Index Total Commander
Forum - Public Discussion and Support
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

RadStudio XE10.1 C++ plugin troubles

 
Post new topic   Reply to topic    Total Commander Forum Index -> Plugins and addons: devel.+support (English) Printable version
View previous topic :: View next topic  
Author Message
BobGo
Junior Member
Junior Member


Joined: 26 Feb 2006
Posts: 29

PostPosted: Sun Oct 09, 2016 3:30 am    Post subject: RadStudio XE10.1 C++ plugin troubles Reply with quote

I am trying to port a C++/VCL rad2010 plugin to xe10.1, since I wanted to move my plugins to x64 finally. But I fail already by simply "moving" the x32 version of my plugin! The plugin works perfect when being built in rad2010 but with xe10.1 it reports an EOutOfResources error, when it tries to allocate something for TApplication.
Is there anything already known, which I am not aware of? Why does the same code work with rad2010?
Was there anything changed in the VCL as I am wondering why TApplication is initizialied at all?
Back to top
View user's profile Send private message
Horst.Epp
Power Member
Power Member


Joined: 06 Feb 2003
Posts: 2190
Location: Germany

PostPosted: Sun Oct 09, 2016 9:35 am    Post subject: Reply with quote

Please use the another forum
or how is your problem related to Total Commander ?
_________________
Windows 10 x64, TC 9.0a RC1 x64 and x86
Back to top
View user's profile Send private message
BobGo
Junior Member
Junior Member


Joined: 26 Feb 2006
Posts: 29

PostPosted: Sun Oct 09, 2016 9:51 am    Post subject: Reply with quote

Sorry to say, but as the topic of this board is "Plugins and addons: devel.+support (English)" where else should I ask a development question?
Standard VCL C++ boards are also totally wrong, since my problems are TC related. Nobody outside the TC world will have any useful answer on this. If anyone already experienced similar problems, the chances are unlike higher to get a proper answer here.

I just also found http://totalcmd.net/plugring/ListSimpleBcb.html, which will also not work with XE10.1.[/url]
Back to top
View user's profile Send private message
ghisler(Author)
Site Admin
Site Admin


Joined: 04 Feb 2003
Posts: 32958
Location: Switzerland

PostPosted: Wed Oct 12, 2016 8:58 am    Post subject: Reply with quote

It sounded like you were writing a plugin for the RAD studio IDE, not for Total Commander.

There is probably an incompatibility because TC x64 is written in Lazarus/Free Pascal.
_________________
Author of Total Commander
http://www.ghisler.com


Last edited by ghisler(Author) on Wed Oct 12, 2016 3:10 pm; edited 1 time in total
Back to top
View user's profile Send private message Send e-mail Visit poster's website
BobGo
Junior Member
Junior Member


Joined: 26 Feb 2006
Posts: 29

PostPosted: Wed Oct 12, 2016 10:18 am    Post subject: Reply with quote

Thx for the answer. I managed to get the x32 version running with the standard "Borland" compiler. But with the clang x32 compiler, TC reports an incompatibilty error when trying to register the plugin. Of course the x64 DLL does not work as well. Is the new Emba-stuff not able to create Windows resp. MS compatible DLLs anymore? Are DLLs not general purpose things anymore, but specific for certain applications?
btw: my x64 DLLs built with VS work of course.
Back to top
View user's profile Send private message
ghisler(Author)
Site Admin
Site Admin


Joined: 04 Feb 2003
Posts: 32958
Location: Switzerland

PostPosted: Wed Oct 12, 2016 3:11 pm    Post subject: Reply with quote

Try using the "fileinfo" Lister plugin to check whether all the exported functions are correct.
_________________
Author of Total Commander
http://www.ghisler.com
Back to top
View user's profile Send private message Send e-mail Visit poster's website
BobGo
Junior Member
Junior Member


Joined: 26 Feb 2006
Posts: 29

PostPosted: Thu Oct 13, 2016 9:53 am    Post subject: Reply with quote

ghisler(Author) wrote:
Try using the "fileinfo" Lister plugin to check whether all the exported functions are correct.


Not sure if I understand fully. Do you mean wlx_fileinfo222.zip ?
But my plugin is based on the listplugin.hlp interfaces.
The funny thing is, that ListLoad() is entered properly when built with Borland compiler, but already the loading of the DLL fails, when I use the clang compiler.
Back to top
View user's profile Send private message
BobGo
Junior Member
Junior Member


Joined: 26 Feb 2006
Posts: 29

PostPosted: Thu Oct 13, 2016 1:39 pm    Post subject: Reply with quote

Hey! I got the x32 clang working, finally. A prototype declaration in an include file override the function declaration.
But the x64 DLL can still not be loaded from TC. Emba does not to create compatible x64 DLLs? They cannot even be investigated by 'depends'?
Back to top
View user's profile Send private message
ghisler(Author)
Site Admin
Site Admin


Joined: 04 Feb 2003
Posts: 32958
Location: Switzerland

PostPosted: Fri Oct 14, 2016 10:17 am    Post subject: Reply with quote

Yes, I mean wlx_fileinfo! When you view your dll with it, it will show you the exported functions. Make sure they are all there, and they don't have decorations like 16,24 etc. at the end.
_________________
Author of Total Commander
http://www.ghisler.com
Back to top
View user's profile Send private message Send e-mail Visit poster's website
BobGo
Junior Member
Junior Member


Joined: 26 Feb 2006
Posts: 29

PostPosted: Fri Oct 14, 2016 2:27 pm    Post subject: Reply with quote

ghisler(Author) wrote:
Yes, I mean wlx_fileinfo! When you view your dll with it, it will show you the exported functions. Make sure they are all there, and they don't have decorations like 16,24 etc. at the end.


I always use the 'depency walker' instead.. Nevermind, everything is working now, both the x32 and the x64! As a TC user from the very beginning, it's great to see, that the latest C++Builder creates still TC compatible stuff.

If anyone needs the updated bcb6 plugins from Evgeniy Savich, contact me.

PS:
It would be helpful, if plugin developers would find any information about how to install ".wxx64" files. In general, finding deeper developer documentation is not so easy these days.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Total Commander Forum Index -> Plugins and addons: devel.+support (English) All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Impressum: This site is maintained by Ghisler Software GmbH

Using phpBB © 2001-2005 phpBB Group