English
Forum

Done: Weird Phenomenon list for Directories

 
- Page 1 -



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  
 



 
- Page 2 -



Jörg
Sellmeyer
I meant too The SubClassProc. What is because in Your directory drin. As I said: by me crashes it too more frequently with "A" ex but even too with others Verzeichnissen.
 
Windows XP SP2 XProfan X4
... und hier mal was ganz anderes als Profan ...
07/16/09  
 




Frank
Abbing
Stell time sure, that on the Pfadende no "/", or. "" standing. or. that it there standing, habs not any more so well in recollection. I mean, I had already these Problems so had with list view.dll.
 
07/16/09  
 




Dieter
Zornow
thanks for Tipps, but it changes itself nothing.

@If: my subclassing is Perhaps unusual and simply, but it functions correct and might accordingly permitted his. If I the Subclassing herausnehme and on einfachen Click respond changes itself nothing on the crash.
@Jörg in the directory are normal Files, has but so too nothing To do, there it with the names BAdressen without trouble goes.
@Frank in the direction is everything ok, have me already any Paths Show let.

there it apparently no Solution gives, must I the thing well forsaking, though it me brennend interested what the reason is.
 
Er ist ein Mann wie ein Baum. Sie nennen ihn Bonsai., Win 7 32 bit und Win 7 64 bit, mit XProfan X2
07/17/09  
 



If one The subClassProc umgestellt has, then reicht one
CompileMarkSeparation
Proc AddAssociatedIcon

    Parameters name$,i&,Imagelist&
    return 0//<--/pre>
so nothing crashes.

I Have of course with imageListen yet nothing started but without Icons can I in each directory change.
 
07/17/09  
 



look time:
CompileMarkSeparation
Proc AddAssociatedIcon

    Parameters name$,i&,Imagelist&
    var Hicon&= External("Shell32","ExtractAssociatedIconA",%hinstance,addr(name$),addr(i&))
    External("comctl32.dll","ImageList_AddIcon",Imagelist&,HIcon&)       Icon in Imagelist hinzufügen
    External("USER32.DLL","DestroyIcon",HIcon&)                         Handle löschen
    messagebox str$(imageList&),name$,0
    var a&=External("comctl32.dll","ImageList_GetImageCount",Imagelist&)
    messagebox "5","",0
    return a&

oc

 
07/17/09  
 



without:
CompileMarkSeparation
Proc PlusBackslash

    parameters pfad$
    declare pfad#,result$
    Dim pfad#,len(pfad$)+1
    string pfad#,0 = pfad$
    External("shlwapi","PathAddBackslashA",pfad#)
    result$ = string$(pfad#,0)
    Dispose pfad#
    return result$

oc

crashes the program not any more ex, at least that here: [...]  . I have simply bisl backward "geproggt" (in the senses the Minimalbeispieles) To it fehlerfrei working. the means naturally not, that Error not too on others to put emerged his can, but a working Base is seldom badly to that Fehlerfinden. ^^
 
07/17/09  
 




Dieter
Zornow
OK, thanks

i'll it time try, if the by me too runs, I will whom Error certainly find, through hinzutun step for step.
 
Er ist ein Mann wie ein Baum. Sie nennen ihn Bonsai., Win 7 32 bit und Win 7 64 bit, mit XProfan X2
07/17/09  
 




Dieter
Zornow
@IF Thanks your preparatory work functions it now by me correct. I can Adressen zig time open. I have To Beginn first time any Api-functions so umgestellt How in your example, of Addr() To area# and with the Stringzuweisung of/ one Memory-Variables one zero-byte appended. already the has it brought. is me though unverständlich Profan ought to the right make and with String area#,0 already one zero-byte append. with addr(variable) must then apparently too very softly-softly bypass, best none use. in the attachment is the new version with icons and everything, could someone test times whether it now everywhere functions, the would super if it so would.

On each drop cordial Thanks, I had The hope already almost given, here yet weiterzukommen.

5 kB
Hochgeladen:07/17/09
Downloadcounter21
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/17/09  
 



gladly happen!

from such reagierendem ListView could one too one Control make, then had one it always and everywhere and should not ums Drumherum concern. create("loadFile",getDir$("@"),10,10,200,200)
 
07/17/09  
 




Frank
Abbing
your code liesse itself sure yet optimize. so see The Icons unfortunately right humble from, something fit not yet so integrally.
left a Fileliste through list view.dll, right the Result with your code.

 
07/17/09  
 



 
- Page 3 -



Dieter
Zornow
Yes, The Icons are blasser, probably because the origin differently is. with list view.dll have I but by me fixes, that not each File one Icon get, therefore have I another origin chosen. time see what itself there make can.
 
Er ist ein Mann wie ein Baum. Sie nennen ihn Bonsai., Win 7 32 bit und Win 7 64 bit, mit XProfan X2
07/18/09  
 




Frank
Abbing

with list view.dll have I but by me fixes, that not each File one Icon get, therefore have I another origin chosen.


have you got with the newest Version tested? with the engineering, The I former uses have (via COM), was is well so. If now but not any more the case his.
time as Anregug, I use The API SHGetFileInfo in lieu of the of you verwendeten ExtractAssociatedIcon. supply eindeutig better Results.
 
07/18/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.739 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