English
Forum

Temporary gratuitous Zugriffsverletzungen with API's

 
Hello Profaner...

Have time again (since längerem) what merkwürdiges:

under XP sustain I with of/ one API zeitweise Zugriffsverletzungen, The I I do not explain can (are too very seldom and zurück apparently only in the compilierten EXE on).
with of/ one others API verweigert these me zeitweise under windows95 grundlos whom service. I have whom local, that this to all Things with APIs happens, The on The Registry grab or Systemeinstellungen Change.

who knows except me yet this trouble? (Frank evtl.? have [...]  with interest red!)

I have in the moment whom unbegründeten suspicion, that the on the Profan Messagehandling lying could (Roland möge me forgive) - have the API one DulcoIF missed, thereafter trod the Error not any more on.
 
04/09/05  
 




Frank
Abbing
Hi,

circa the of me angesprochene trouble To come: it trod under Assembler on, though inside the Subclassings one Profan-Mainwindow.
Have but in another Forum red, the someone other selfsame trouble having. The having with Profan but sure nothing To do...
 
04/09/05  
 



Hello Frank...

the shining really not To my trouble To fit.
by me there to that a Problems windows95 with the function RegLoadKey, The zeitweise simply none Hive loading wants and to that others XP with the function LSAEnumerateAccountRights or Perhaps the function LSAFreeMemory, The zeiweise a Access violation bring.

The Problems zurück, How said, only under whom named Betriebssystemen and with compiliertem Program on - utterly strange...
 
04/10/05  
 



too in the Fastmode?
 
04/10/05  
 



Hello IF...

I have here no XP, on the I program can - I could therefore with whom LSA-functions not yet testing.

with RegLoadKey shining the trouble u.a. of Appearance the whole Quelltextes abzuhängen. Fügt one somewhere a row one, exit the Error under Umständen almost none More on.

I have The thing with Fastmode not yet tested - I have lastly directly to The besagte function one DulcoIF inserted. since then shining it To walk. strange...
 
04/11/05  
 



Hello Profaner...

only integrally short - the trouble lying still not to profane. some APIs shine extreme aggressively on a GetLastError To react, the not 0 is (evtl. by the letzt FindNext$ hervorgerufen. I Search now sooner there whom Error...
 
05/03/05  
 



The problem is - faith I - resolved. The Error lying at one Quelltextschnipsel, whom I then without self to think a Helpfile of Uwe Passcal Niemeier übernommen have:
CompileMarkSeparation
def @RegOpenKeyEx(5) !"ADVAPI32","RegOpenKeyExA"
def @RegQueryValueEx(6) !"ADVAPI32","RegQueryValueExA"
def @RegCloseKey(1) !"ADVAPI32","RegCloseKey"
declare Handle#
dim Handle#,4
declare Key#
dim Key#,100
string Key#,0="SoftwareMicrosoftWindowsCurrentVersionPoliciesExplorer"  Pfad des Schlüssels
declare Name#
dim Name#,100
string Name#,0="NoDrives" Name des Wertes
declare Size#
dim Size#,1
long Size#,0=4  Länge des Wertes: 4 Bytes bei DWord
declare Wert#
dim Wert#,4     Empfangsbereich für Wert: 4 Bytes bei DWord
print @RegOpenKeyEx($80000001,Key#,0,1,Handle#)                0 wenn ok
print @RegQueryValueEx(@Long(Handle#,0),Name#,0,0,Wert#,Size#) 0 wenn ok
print @RegCloseKey(@Long(Handle#,0))                           0 wenn ok
print hex$(long(Wert#,0))	 Wert als Hex$ ausgeben
dispose Handle#
dispose Key#
dispose Wert#
dispose Name#
dispose Size#
waitkey


thereby becomes The Variable for Size the dimensionierten Bereichs (size#) with 1 dimensioniert. Sowohl Long as well as Windows itself settle but a 4 byte worth. thereby go evtl. reaches überschrieben, in them variables stand, The I thereafter yet for others APIs use RegQueryValueEx operates but correctly!.
whether and what there überschrieben becomes, depends from the Speicherorganisation, d.h. of construction the Program and of OS (or. whom yet ongoing Programs) ex => it comes To Fehlfunktionen in the program or To Zugriffsverletzungen, its origin not logical To lokalisieren is .

Ahnliche things can also appear, if one of/ one API of/ one Größeren area for a Variable commit as one before dimensioniert has. too here bleats windows zumindestens not always and bring - according to Size of their own Program, in the background laufender programs, OS, Programmstarts etc. - different Fehlermeldunge, its cause not To lokalisieren is!

who means with unerklärlichen Bug, Systemabstürzen, Zugriffsverletzungen... fight, ought to absolutely The APIs to check on, with them in a Parameter The Size of a dimensionierten Bereichs transfer becomes.


I hope, I can others of these Posting wildly headaches save...

Greeting

AH
 
08/30/05  
 



over again: As I said, not The API The whom Error contains making problems, separate any hereon following Programmteile (to supra schieb)!
 
08/30/05  
 



Answer


Topictitle, max. 100 characters.
 

Systemprofile:

no Systemprofil laid out. [anlegen]

XProfan:

 Posting  Font  Smilies  ▼ 

Please register circa a Posting To verfassen.
 

Topic-Options

6.067 Views

Untitledvor 0 min.

Themeninformationen

this Topic has 3 subscriber:

unbekannt (6x)
iF (1x)
Frank Abbing (1x)


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