English
Forum

Done: Weird Phenomenon list for Directories

 

Dieter
Zornow
I have me at times one List view attempts, the Directories einliest, thereby go The to that entry
suitable Icons uses, even How with Totalcommander or Freecommander.
the functions too very well, but on my Hauptrechner and on my Notebook crashes the program
with only one directory "Adressen" ex. under Profan at the latest at second open, with Profan2CPP compiled
can I it up to 5x open before it abstürtzt. I Search now beautiful since Meet to one Error and can nothing
find, there it Yes on each computer only these a directory is, any others functions correct.
the directory has no Besonderheiten and is neither big. Weder XPSE yet the in profane2cpp installed
+ Edit having a Errors in the code found. might time someone testing, whether it on seinem computer ditto so
one Phänomen gives.
Lauffähiger View source and Exe with Profan2Cpp compiled lying with. functions because of Subclassing Double click and
Rechtsklick only under XProfan 11. The Hauptbestandteile dürften but too in others versions walk.

237 kB
Hochgeladen:07/15/09
Downloadcounter52
Download
 
Er ist ein Mann wie ein Baum. Sie nennen ihn Bonsai., Win 7 32 bit und Win 7 64 bit, mit XProfan X2
07/15/09  
 




RGH
Hi,

means by me crashes it already at attempt ex, into directory "Adressen" To change, gleiches could so did i for Verzeichnisnamen "RGH-Entw" and "SVP" check. i'd time in Getfolder.inc Search and Perhaps time a couple Debug-Messageboxen install, circa to find out where very The Schutzverletzung results. And if there then reaches and API-Aufrufe involviert are, ought to The Solution not any more far away lying. there the trouble reproduzierbar is, ought to it only a question the Time his ...

Greeting
Roland
 
Intel Duo E8400 3,0 GHz / 4 GB RAM / 1000 GB HDD - ATI Radeon HD 4770 512 MB - Windows 7 Home Premium 32Bit - XProfan X4
07/15/09  
 




Jörg
Sellmeyer
Hello Dieter,
I suspect time, the Error lying in the procedure getFolder - and of course in the If-structure to the While-Loop. building there time one Window Title you$ one and you see To where the program comes.
it must moreover with the procedure ApiFindFile concern.
following Error Message have I receive:



the could too mean, that evtl. a While-Loop not correctly leave becomes.
Also should You The If-request on CaseOf adjust. this is, faith I, something faster.
and absolutely whom "substr$(put$,1,"|")" in a Variable abspeichern, before You The compare anstellst. so must You 4-5time with SubStr$() the value detect, what naturally unnecessary Time cost.

I see: it could yet so concern, the the Ordner on first place standing. then is by me the program on the häufigsten abgestürzt.

Greeting
Jörg

13 kB
Hochgeladen:07/15/09
Downloadcounter32
Download
 
Windows XP SP2 XProfan X4
... und hier mal was ganz anderes als Profan ...
07/15/09  
 




Dieter
Zornow
thanks for Hilfestellung, yet be I not yet weitergekommen. attrib$ is Yes eindeutig declariert. the had already XPSE or the + Edit bemängelt. too The position the Verzeichnisses isn't of interest, by me is it on 3. place. on the names Adressen becomes but apparently only Hauptverzeichnis reacted. the directory into differently copies goes correct.

@Jörg: i think The Error Message is a Falschmeldung of Profan. Perhaps becomes with you fixes, that something not is correct but it is not clear what its, then becomes something gemeldet. have myself already often erlebt

Currently try I with the Errorsystem of Profan something to find. whom external Debugger can in of my Version apparently forget. he's in the Profanverzeichnis and finds not The dazugehörende Include, because it apparently not in that directory the Source code changes or there thereafter seek. so scheidet the time from. it shining so, that something verbotener point in a address written becomes. the alone helps but neither moreover.
 
Er ist ein Mann wie ein Baum. Sie nennen ihn Bonsai., Win 7 32 bit und Win 7 64 bit, mit XProfan X2
07/15/09  
 



only überflogen but I faith one Error is, that You to filefindhndl&=FindFirstFile(file#,info#) not examine, whether fileFindHndl& validly befüllt is.
 
07/15/09  
 




Dieter
Zornow
I have it given, I have whom Error of course eingegrenzt and some changed, it helps but everything nothing. The Findfile-routine can I, How i think, exclude, there the whole without The Apifindfile proc only with list and addstring whom equal Error hervorruft. is indeed To unusual if a directory namensabhägig is whether it functions or not. with all names go The equal routines called, Why functions some names not. i'll the thing well verschrotten must.

after I with the external Debugger The *.enh File probiert have, because only The goes, there everything in a File is, coming The following Message
-----------------------------------------------------------------------------------
it found one Debug-Ausnahmeereignis with the code EXCEPTION_ACCESS_VIOLATION instead of.
the Debug-Ausnahmeereignis has the signal EXCEPTION_CONTINUABLE.
the Debug-Ausnahmeereignis found on the address $401BA3 instead of.
it'll attempts into Speicheradresse $1 unerlaubt To write.
-----------------------------------------------------------------------------------

here my Eingrenzung with the Changes
CompileMarkSeparation
if filefindhndl& > 0

    whilenot GetLastError()= 18

        Put$ = ApiFindFile("",filefindhndl&)
        comp$ = substr$(put$,1,"|")
        Messagebox(put$,comp$,0) danach
        case comp$ = "":break

        if (comp$ <> "[.]") and (comp$ <> "[..]")

            temp$ = doubletrim(comp$,"[","]")

            if isdir(temp$)

                size$ = "|<DIR>|"
                datum$ = substr$(put$,5,"|")+" "
                uhr$ = substr$(put$,6,"|")+"|"
                attr$ = Right$(substr$(put$,13,"|"),4)
                put$ = comp$+size$+datum$+uhr$+attr$
                addstring(folder&,put$)

            else

                size$ = "|"+substr$(put$,3,"|")+"|"
                datum$ = substr$(put$,5,"|")+" "
                uhr$ = substr$(put$,6,"|")+"|"
                attr$ = substr$(put$,13,"|")
                put$ = comp$+size$+datum$+uhr$+attr$
                addstring(file&,put$)

            endif

            Messagebox(put$,"",Dir$) davor

        endif

    endwhile

endif

FindClose(<
filefindhndl&)
 
Er ist ein Mann wie ein Baum. Sie nennen ihn Bonsai., Win 7 32 bit und Win 7 64 bit, mit XProfan X2
07/16/09  
 




RGH
Dieter Zornow, Beitrag=53269, Zeitpunkt=16.07.2009
after I with the external Debugger The *.enh File probiert have, because only The goes, there everything in a File is, coming The following Message


with the Debuger can You Yes line by line by the Program weg. with which row comes because The Message?

Greeting
Roland
 
Intel Duo E8400 3,0 GHz / 4 GB RAM / 1000 GB HDD - ATI Radeon HD 4770 512 MB - Windows 7 Home Premium 32Bit - XProfan X4
07/16/09  
 




Dieter
Zornow
i haven't been line by line probiert, I have me Protokolldatei write let. I have now another simple
Version tested without something To filtern The with list and addfiles operates (in the attachment). it'll too only The first slot befüllt.
The same effect, though I in integral area on any Apiaufrufe verzichte and directories and Files with request of "[" distinguish. alone the name reicht from in order to crashen, with all others names goes too these simple Version. clear is, that the crash in the Loop happens, in the directories and Files separiert go. so far be I, white but not How turn off.

4 kB
Hochgeladen:07/16/09
Downloadcounter29
Download
 
Er ist ein Mann wie ein Baum. Sie nennen ihn Bonsai., Win 7 32 bit und Win 7 64 bit, mit XProfan X2
07/16/09  
 



means the program in the AddFiles.zipper bekomm I do not to that crash. (be but strain too "nur" in a XPHomeSP3-computer)

Nachtrag: OK, crashes too - only less reliably.

(time today evening home over again look at)
 
07/16/09  
 




Jörg
Sellmeyer
I have the Start List time on "Cokumente and EinstellungenJörgDesktopgriddir" staid.
therein lying not The prf-File! If I the program starte (without any Changes) and thereafter same again finish, comes one crash.
If I the program but in "Cokumente and EinstellungenJörgDesktopgriddir1" starte (here lying The File), happens nothing Auffälliges.
can it on the Callback lying or is it The AddBackSlash-procedure?
by me falls of course on, that directories with "A" more frequently crashen, but I Have not yet tested, as with others Verzeichnisnamen is, The at the beginning stand. means one Verz. "Beton" without a directory "Alu"
 
Windows XP SP2 XProfan X4
... und hier mal was ganz anderes als Profan ...
07/16/09  
 




Dieter
Zornow
becomes always seltsamer the whole.
@IF: means by me crashes it reliably ex, if I try Adressen to open.
@Jörg: One callback is Yes not drin. I open always in C:\ and it happens nothing. it'll indeed into directory changed the called becomes. have you got too waited To the reading complete ready was, because then could
it crash. by me depends it neither on the first letters. Abiword can I many Male open without, that something happens.
it shining if in the Hauptverzeichnis this name opened becomes happens it, the same directory in another as Unterverzeichnis functions. If I the directory in BAdressen umbenenne GEHTS too correct.

I Try now already 4 days and I already almost everything abgeändert, but it changes itself nothing on the behaviour.
 
Er ist ein Mann wie ein Baum. Sie nennen ihn Bonsai., Win 7 32 bit und Win 7 64 bit, mit XProfan X2
07/16/09  
 



as i even your Sourcecode for me one bisl sortiert have is me noticed, that You Createest inside the SubClassProc u.v.m..

The SubClassProc would I always only as Indikator for Events benefit, The Abarbeitung however ought to well rather not in that waitInput. simply from the SubClassProc a userMessage Send circa ausserhalb the WaitInput abzuarbeiten. thereby goes not yet once something lost.

so seen, obiger code can not at all functions, because it not into gesamtheitlichen Ablaufplan einpasst.

The Help says "WICHTIG: in the SubClassProc ought to so little How possible happen. In many Make becomes one with SetMenuItem a Befehlscode settle. once this staid is, becomes the WaitInput leave and the Befehlscode can with MenuItem() or %MenuItem quizzed go.".

Perhaps. ought to one in the Help little more allude.
 
07/16/09  
 




Answer


Topictitle, max. 100 characters.
 

Systemprofile:

no Systemprofil laid out. [anlegen]

XProfan:

 Posting  Font  Smilies  ▼ 

Please register circa a Posting To verfassen.
 

Topic-Options

8.773 Views

Untitledvor 0 min.
Michael W.07/07/16
Ernst05/21/16
Michael Borowiak12/29/12
Jörg Sellmeyer11/06/11
More...

Themeninformationen



Admins  |  AGB  |  Applications  |  Authors  |  Chat  |  Privacy Policy  |  Download  |  Entrance  |  Help  |  Merchantportal  |  Imprint  |  Mart  |  Interfaces  |  SDK  |  Services  |  Games  |  Search  |  Support

One proposition all XProfan, The there's!


My XProfan
Private Messages
Own Storage Forum
Topics-Remember-List
Own Posts
Own Topics
Clipboard
Log off
 Deutsch English Français Español Italia
Translations

Privacy Policy


we use Cookies only as Session-Cookies because of the technical necessity and with us there no Cookies of Drittanbietern.

If you here on our Website click or navigate, stimmst You ours registration of Information in our Cookies on XProfan.Net To.

further Information To our Cookies and moreover, How You The control above keep, find You in ours nachfolgenden Datenschutzerklärung.


all rightDatenschutzerklärung
i want none Cookie