TC 8.0b3, creating directory bug

Bug reports will be moved here when the described bug has been fixed

Moderators: Hacker, petermad, Stefan2, white

Post Reply
User avatar
hlloyge
Member
Member
Posts: 131
Joined: 2006-11-02, 23:14 UTC

TC 8.0b3, creating directory bug

Post by *hlloyge »

I was trying to create new directory with F7, and this window appeared:

---------------------------
Total Commander 8.0ß3
---------------------------
Access violation.
Access violation
Windows 7 SP1 6.1 (Build 7601)

Please report this error to the Author, with a description
of what you were doing when this error occurred!

Stack trace (x64):43B222
43B380 436D85 436C26 434F41 7ACF69 7C415D 7C1745 434EDE
4395CF 520F88 51FACC 51FD92 6914E1 69C516 68A1B2 7B1737

Press Ctrl+C to copy this report!
Continue execution?
---------------------------
Yes No
---------------------------
User avatar
Sir_SiLvA
Power Member
Power Member
Posts: 3378
Joined: 2003-05-06, 11:46 UTC

Post by *Sir_SiLvA »

According to my glassball you have win 7 64bit and are using TC8 64Bit and tried to create a new folder on a cd drive wich cant work ofc :twisted:
Hoecker sie sind raus!
User avatar
hlloyge
Member
Member
Posts: 131
Joined: 2006-11-02, 23:14 UTC

Post by *hlloyge »

Sir_SiLvA wrote:According to my glassball you have win 7 64bit and are using TC8 64Bit and tried to create a new folder on a cd drive wich cant work ofc :twisted:
Well, version of windows is written in bug report, also the version of beta TC, and if I wanted to create directory on CD drive, I wouldn't be able to post bug report in appropriate forum, now, would I? :)

Everything is standard - drive is NTFS formatted, NOT EXT4 or something more exotic, like FFS/DC. I do have all rights to write on it, and all the subfolders. I ruled out user error, and I've got this error twice in few hours. If the error is pressing F7 to create directory, then I am guilty as charged...
User avatar
Valentino
Power Member
Power Member
Posts: 709
Joined: 2003-02-07, 00:21 UTC
Location: Ukraine

Post by *Valentino »

Your stack trace is almost identical to mine :) Looks like same root.
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 50479
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

This is a strange bug, it happens in Windows function GetMonitorInfo, which TC uses to avoid that a dialog is shown outside of the current monitor.

Do you get this every time, or only after certain other operations?

2Valentino
Yes, it's the same problem, it's called for all dialogs which are centered over the main or parent form...
Author of Total Commander
https://www.ghisler.com
User avatar
Valentino
Power Member
Power Member
Posts: 709
Joined: 2003-02-07, 00:21 UTC
Location: Ukraine

Post by *Valentino »

GetMonitorInfo receives two arguments: HMONITOR and LPMONITORINFO.
In my case I was using remote desktop, so probably monitor handle that you supply to the function becomes invalid in scope of remote desktop session?
Another potential reason is wrong pointer to MONITORINFO(EX), or uninitialized cbSize.
User avatar
hlloyge
Member
Member
Posts: 131
Joined: 2006-11-02, 23:14 UTC

Post by *hlloyge »

I have dual monitor setup at work, where I use 64bit TC.
I don't get it all the time - I can create directory with TC without a crash. I am not aware of anything special that I might be doing... when I get back to work, I will pay more attention.
User avatar
Valentino
Power Member
Power Member
Posts: 709
Joined: 2003-02-07, 00:21 UTC
Location: Ukraine

Post by *Valentino »

Same to me. I open TC at work (with two monitors), leave it open, go home and use remote desktop to get to my office computer from home (where I have one monitor), TC crashed twice with this scenario.
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 50479
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

It seems that Lazarus sometimes returns null for Screen.ActiveCustomForm.Monitor or Application.MainForm.Monitor, no idea why. I will catch it.
Author of Total Commander
https://www.ghisler.com
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 50479
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

This should work now in beta 4, please test it!
Author of Total Commander
https://www.ghisler.com
User avatar
Valentino
Power Member
Power Member
Posts: 709
Joined: 2003-02-07, 00:21 UTC
Location: Ukraine

Post by *Valentino »

I don't experience this access violation anymore in beta 4.
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 50479
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

Great, thanks!
Author of Total Commander
https://www.ghisler.com
Post Reply