This forum uses cookies. Click X button to hide this message. What is stored? 
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 

"Error loading plugin file"

 
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
m^2
Power Member
Power Member


Joined: 12 Jul 2006
Posts: 1413
Location: Poland

PostPosted: Mon Jun 30, 2008 2:12 am    Post subject: "Error loading plugin file" Reply with quote

I just started writing a wdx plugin. With my test executable it works great, but whenever I try to load it to TC, I got the following error:
Code:
---------------------------
Total Commander
---------------------------
Error loading plugin file!

The plugin probably needs some DLLs missing on your system.
---------------------------
OK   
---------------------------

TC doesn't even call my DllMain.
There is no dll missing, I'm 100% sure that TC has a correct version of msvcrt.dll in %PATH% (I stripped it for testing, so there are no other imports). The dll is 32 bit, so is TC. Wink What else can be the problem?
_________________
Image: http://img201.imageshack.us/img201/2110/pcbsdec7.jpg
Back to top
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger
ghisler(Author)
Site Admin
Site Admin


Joined: 04 Feb 2003
Posts: 33858
Location: Switzerland

PostPosted: Mon Jun 30, 2008 9:43 am    Post subject: Reply with quote

Try using the fileinfo plugin to find out whether there are any other dependencies, and how the functions are exported:
http://www.totalcmd.net/plugring/fileinfo.html

The functions may be exported in the form _functionname@8 or similar. To prevent this, use a .def file containing

exports
functionname
_________________
Author of Total Commander
http://www.ghisler.com


Last edited by ghisler(Author) on Mon Feb 06, 2017 8:33 am; edited 1 time in total
Back to top
View user's profile Send private message Send e-mail Visit poster's website
m^2
Power Member
Power Member


Joined: 12 Jul 2006
Posts: 1413
Location: Poland

PostPosted: Mon Jun 30, 2008 10:13 am    Post subject: Reply with quote

Yes, I use FileInfo. Functions are exported correctly, but even if they weren't, DllMain should be called. With the zeroed version I can't really tell if it is, but a slightly bigger version, where DllMain starts with MessageBox(0,0,0,0) shows nothing.
( No, the zeros don't cause a crash. Wink )
I think I can upload the files, maybe it works for somebody? I tried with different TC versions already, so it's not the case.
Code:
MIME-Version: 1.0
Content-Type: application/octet-stream; name="TrID.wdx"
Content-Transfer-Encoding: base64
Content-Disposition: attachment; filename="TrID.wdx"

TVqQAAMAAAAEAAAA//8AALgAAAAAAAAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
AAAA2AAAAA4fug4AtAnNIbgBTM0hVGhpcyBwcm9ncmFtIGNhbm5vdCBiZSBydW4gaW4gRE9TIG1v
ZGUuDQ0KJAAAAAAAAAB9FD3POXVTnDl1U5w5dVOc0WpZnD11U5w5dVKcNXVTnLp9Dpw6dVOc0WpY
nDp1U5zRalecOnVTnFJpY2g5dVOcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUEUAAEwBAgC1EmlI
AAAAAAAAAADgAA4hCwEGAAAAAAAABgAAAAAAAOoQAAAAEAAAABAAAAAAABAAEAAAAAIAAAQAAAAA
AAAABAAAAAAAAAAAMAAAAAQAAAAAAAACAAAAAAAQAAAQAAAAABAAABAAAAAAAAAQAAAAMBIAAI8A
AACkEQAAKAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAgAAAwAAAAAAAAAAAAAAAAAAAAAAAA
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAABQAAAAAAAAAAAAAAAAAAAAAAAAA
AAAAAAAAAAAuZGF0YQAAAL8CAAAAEAAAAAQAAAAEAAAAAAAAAAAAAAAAAABAAADALnJlbG9jAAB6
AAAAACAAAAACAAAACAAAAAAAAAAAAAAAAAAAQAAAQgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA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AAAAAAAAAAAAAAAAAAAAAAAAAAAA
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA==

And the MessageBox one:
Code:
MIME-Version: 1.0
Content-Type: application/octet-stream; name="TrID.wdx"
Content-Transfer-Encoding: base64
Content-Disposition: attachment; filename="TrID.wdx"

TVqQAAMAAAAEAAAA//8AALgAAAAAAAAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
AAAA0AAAAA4fug4AtAnNIbgBTM0hVGhpcyBwcm9ncmFtIGNhbm5vdCBiZSBydW4gaW4gRE9TIG1v
ZGUuDQ0KJAAAAAAAAADFIGLmgUEMtYFBDLWBQQy1aV4GtYVBDLWBQQ21jEEMtQJJUbWEQQy1aV4H
tYJBDLVpXgi1gkEMtVJpY2iBQQy1AAAAAAAAAAAAAAAAAAAAAFBFAABMAQIAhhNpSAAAAAAAAAAA
4AAOIQsBBgAAAAAAAAYAAAAAAAD+EAAAABAAAAAQAAAAAAAQABAAAAACAAAEAAAAAAAAAAQAAAAA
AAAAADAAAAAEAAAAAAAAAgAAAAAAEAAAEAAAAAAQAAAQAAAAAAAAEAAAAIASAACPAAAAvBEA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AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEAAA
NAAAADgwXTBlMGswdjCDMIswmTCeMKMwqDCzMMAwyjDfMOsw8TATMSUxgTGeMQAAAAAAAAAAAAAA
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA==

_________________
Image: http://img201.imageshack.us/img201/2110/pcbsdec7.jpg
Back to top
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger
m^2
Power Member
Power Member


Joined: 12 Jul 2006
Posts: 1413
Location: Poland

PostPosted: Wed Jul 02, 2008 3:34 am    Post subject: Reply with quote

I figured out how to make TC load the plugin, though I don't understand why this thing causes problems. It's a linker switch that tells it to merge .text and .data sections.
_________________
Image: http://img201.imageshack.us/img201/2110/pcbsdec7.jpg
Back to top
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger
Hacker
Moderator
Moderator


Joined: 06 Feb 2003
Posts: 10492
Location: Bratislava, Slovakia

PostPosted: Mon Feb 06, 2017 4:32 am    Post subject: Reply with quote

Hi,
Any chance of a 64-bit version? Or a way to run in TC x64?

TIA
Roman
_________________
Mal angenommen, du drückst Strg+F, wählst die FTP-Verbindung (mit gespeichertem Passwort), klickst aber nicht auf Verbinden, sondern fällst tot um.
Back to top
View user's profile Send private message Send e-mail
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