[solved] x64 Listview crashing in Configure dialog

Discuss and announce Total Commander plugins, addons and other useful tools here, both their usage and their development.

Moderators: Hacker, petermad, Stefan2, white

Post Reply
User avatar
TrePe
Junior Member
Junior Member
Posts: 41
Joined: 2004-02-10, 23:30 UTC
Location: Slovakia

[solved] x64 Listview crashing in Configure dialog

Post by *TrePe »

Hello,
I am trying to port my DiskDirExtended plugin to 64 bits but it keeps crashing in the Configure dialog. I stripped it down to figure out what I am doing wrong. It keeps crashing when I try to add an item to ListView.
Here is the VS2010 solution
http://leteckaposta.cz/704190883

Compile it for x64, install DiskDirExtended.wcx64 in TC 8beta (I tried 21 and few betas before that) - assign some extension to it, then start to pack something and click on Configure.

Thank you very much for pointing out what I am doing wrong, I spent quite a few hours with this. I assumed I had to corrupt memory somewhere before adding to ListView, but now I am clueless.
Last edited by TrePe on 2012-02-26, 21:36 UTC, edited 1 time in total.
Sob
Power Member
Power Member
Posts: 945
Joined: 2005-01-19, 17:33 UTC

Post by *Sob »

I don't know if it can help you in any way, but when I compiled it in VS2008 (I don't have VS2010), it does not crash. After clicking Configure I get settings dialog with "asd" and "asd2" strings in list.
Just wild guess, maybe the crashing has something to do with some project settings? As new vcxproj can't be imported into older VS directly, I had to create new all-defaults one (using File->New->Project from existing code).
User avatar
tbeu
Power Member
Power Member
Posts: 1354
Joined: 2003-07-04, 07:52 UTC
Location: Germany
Contact:

Post by *tbeu »

I once observed an access viloation when porting a 32bit packer plugin to x64 platform. I checked your project settings for Struct Member Alignment (Configuration Properties | C/C++ | Code Generation) compiler option 1 Byte (/Zp1) which caused the crash in my case. Please remove /ZP1 option, change it to Default and try again. I cannot test it right now (on WinXP 32bit).
Last edited by tbeu on 2012-02-27, 18:02 UTC, edited 1 time in total.
TC plugins: Autodesk 3ds Max / Inventor / Revit Preview, FileInDir, ImageMetaData (JPG Comment/EXIF/IPTC/XMP), MATLAB MAT-file Viewer, Mover, SetFolderDate, Solid Edge Preview, Zip2Zero and more
User avatar
TrePe
Junior Member
Junior Member
Posts: 41
Joined: 2004-02-10, 23:30 UTC
Location: Slovakia

Post by *TrePe »

tbeu wrote:Please remove /ZP1 option, change it to Default and try again.
Thank you very much, that is indeed what caused the crash.

Sob: thank you for trying to help
User avatar
tbeu
Power Member
Power Member
Posts: 1354
Joined: 2003-07-04, 07:52 UTC
Location: Germany
Contact:

Post by *tbeu »

I suggest that Chr. Ghisler adds a comment to the WCX Writer's Reference.hlp, section 64-bit support to not use /ZP1 option as it causes an access violation in the configuration dialog. I am not sure if other plugins (wdx, wfx, wlx) are affected, too.
TC plugins: Autodesk 3ds Max / Inventor / Revit Preview, FileInDir, ImageMetaData (JPG Comment/EXIF/IPTC/XMP), MATLAB MAT-file Viewer, Mover, SetFolderDate, Solid Edge Preview, Zip2Zero and more
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 50479
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

OK, I will add that note.
Author of Total Commander
https://www.ghisler.com
Post Reply