I'm facing terrible crash while I use DOpus to manage my files, the most things I do is almost like the following code:
Dim objCmd
Set objCmd = DOpus.CreateCommand
objCmd.SetSourceTab (DOpus.Listers.lastactive.activetab)
'...
objCmd.ClearFiles()
objCmd.RunCommand("Select * DESELECT")
For Each selItem In DOpus.Listers.lastactive.activetab.files
'...
' if match the conditions then put to file list.
objCmd.AddFile selItem
'....
Next
objCmd.RunCommand("Select FROMSCRIPT")
objCmd.RunCommand("Select NOPATTERN HIDEUNSEL")
objCmd.SetDest(dstPath)
objCmd.RunCommand("Copy MOVE")
It will crash in several minutes while I use DOpus, I want to report the problem to someone, so whom I can send email to and what log files I need to report?
I've tried and get a easy way to get the bug, details are as follows:
I've put more than 200 image files in the folder.
Set view mode to "Thumb"
Open view panel
Create a button and put the following code in the script window, and close the script window.
Option Explicit
Function OnClick(ByRef clickData)
Dim objCmd, i, selItem, wsh
Set objCmd = DOpus.CreateCommand
objCmd.SetSourceTab (DOpus.Listers.lastactive.activetab)
For i = 1 to 10
objCmd.ClearFiles()
objCmd.RunCommand("Select * DESELECT")
For Each selItem In DOpus.Listers.lastactive.activetab.files
If CLng(selItem.size.val) Mod CInt(10 * Rnd + 2) = 0 Then
objCmd.AddFile selItem
End If
Next
objCmd.RunCommand("Select FROMSCRIPT")
objCmd.RunCommand("Select NOPATTERN HIDEUNSEL")
objCmd.RunCommand("Go REFRESH=source")
Next
End Function
Now click the button, and when the files show and hide, just try to click some file, and you many get the crash.
By the way, you should normally use DOpus.Listers.lastactive.activetab in an OnClick script. That could get a random window if you click somewhere else while the script is running. The clickData object provides you with both the active tab and a Command object which is pre-configured to use the active tab. Use those instead of creating a new Command and changing its source.
(I assume the rest of the script isn't the real one you're using, but something made to demonstrate the bug, since what it's doing doesn't really make sense.)
I've already send the dump files to crashdumps@gpsoft.com.au, hope it will help.
The older one is created by my normal operation, and the latest one is created when I debug the issue use the crazy code above.
I'm manage my photos these days, and mark some keywords in the filename, move the useless photos to a trash folder(not the trash of windows), move some other photos to the folder where they should in.
So, I use a button to show a Dialog which I create by Script Editor, this dialog have several function area: renaming, moving, file timestamp fixing and so on. The DOpus.Listers.lastactive.activetab is more suitable, because the Dialog always showing, and I reselect files frequently, also I need work in deferent tabs, the clideData only get the first status when the Dialog popup, if I move to other tab rather than the one when I click the button, it will not work correctly.
Crash again with DOpus 13.4.2 beta, just simply open the PDF file.
Step 1: Open the view panel of DOpus
Step 2: Download offline manual of DOpus from https://cdn.gpsoft.com.au/files/Opus12/Opus12_Reference_Manual.zip
Step 3: unzip the zip file and get a PDF file
Step 4: Select the PDF file, and wait for a while
Step 5: Right click the PDF file and select "Open with ... " , and don't select any sub menu of "Open with..." just wait for a while, it will popup a error window like following
I think not simply the 3rd part software cause this crash, almost all of the application to open a pdf file while use "Open with..." will popup that error window.
Btw, dump files already send to the email address.
I don't doubt what you're saying, but this is somewhat surprising. Tracker Software is the maker of PDF-XChange PDF Editor. I use it and, based on past posts, so do other Opus users. I'm not currently having any issues with it and, to my knowledge, there haven't recently been any other posts here involving it,
@tyysoft do you have the current version of PDF-XChange PDF Editor.?