English
Bugs and vermeintliche

FreeProfan Bugs and vermeintliche

FreeProfan32 and API UpdateResource

 
- Page 1 -



Matthias
Arlt
with the Fehlersuche in a of my programs is me noticed, that one schreibender grabbed with "UpdateResource" on The Runtime (or. Interpreter) regularly The File useless power. so far I found out have, or this anyway annehme, becomes the Schreibvorgang of course carryed out, but the Änderung not Header registered... this lead then the Startversuch the File To unterschiedlichen Fehlermeldungen. mostly "Nur one part the ReadProcessMemory- or WriteProcessMemory-demand watts abgeschlossen" or "Falscher Parameter...".
it concerns too ausschliesslich FreeProfan, The XProfan-versions are of these effect not concerned.

Greeting Matthias
 
WinXP SP2, Win7 - XProfan 10/11/FreeProfan32 - Xpia
04/10/16  
 



 
- Page 2 -



Matthias
Arlt
but i'm the thing already one Piece hither come. The cause for shift lying therein begründet, that with FreeProfan 3 Sektionen are missing. the are .tls,.rdata and .reloc
These lying with XProfan live to .rsrc
with FreeProfan is a part the Platzes whom these Sektionen receive would with Auffüll-nobodies occupied, around the FileAlignment (mod 512) To gewährleisten. declared kümmert itself circa these nobodies not and interprets whom Space as spare.
the Simplest would now, either a Sektion this Size as Dummy einzufügen or The with FreeProfan to .rsrc liegende .edata circa this amount To enhance. means naturally only whom sizes-entry in the Header.

Greeting Matthias
 
WinXP SP2, Win7 - XProfan 10/11/FreeProfan32 - Xpia
04/20/16  
 




Matthias
Arlt
so, I Have the now time made. everything shining optimal To functions.
it reicht therefore from, in the originalen Runtime The Size of .edata To raise, so no Space between .edata and .rsrc remaining...

After further Tests can I say, it shining not only To functions, separate does it well reliably !

to that Understand:
with (long(runtime#,60) + 124) [These address is always same] standing The Size of .edata, namely $C8. Diesen worth around the difference To .rsrc (means circa 312) raise, there means $200 present.

the same then again with (.edata + 8) and with (.edata + 16)

the wars already... for FreeProfan32.

How the with 64 looks, can I not testing. the FileAlignment totals there anyway (mod 1024), with which the Differenzwerte accordingly Change...

Greeting Matthias
 
WinXP SP2, Win7 - XProfan 10/11/FreeProfan32 - Xpia
04/20/16  
 




RGH
thanks! the I will same time try!

but wieso carry the the FreePascal-Compiler not same so one? Must I to each Compile-process The arisen EXE-Files (OK, at Compiler is not necessary) patchen, so tappt im dunkeln correctly functions. there I will me well one small XProfan-Progrämmelchen write must ...

Greeting
Roland
 
XProfan X3
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
04/20/16  
 




RGH
EDIT: there must I even vertippt having! at that second attempt works it now. Sorry!

Greeting
Roland

FALSCHMELDUNG of a little while ago:
So I have now in the PRFRUN32.EXE on this three to put The Bytefolge $C8 $00 (= $00C8) through $00 $02 (= $0200) supplant. success: The EXE is same useless!
 
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
04/20/16  
 




Matthias
Arlt
well wonderful. now must it only yet with 64 klappen...
You can Yes whom Compiler in the 'winexecwait' run and if it is done, whom Patch perform.

Greeting Matthias
 
WinXP SP2, Win7 - XProfan 10/11/FreeProfan32 - Xpia
04/20/16  
 




Michael
W.
C:\FPC\fpc-3.0.0\compiler\systems\t_win.pas
would The place in the FreePascal-Compiler where The data gewurstelt go.

Perhaps can itself Yes on it something turn.
 
Alle Sprachen
System: Windows 8/10, XProfan X4
Programmieren, das spannendste Detektivspiel der Welt.
04/20/16  
 




Matthias
Arlt
would be 'ne Possibility. but whether it The einfachere is...?
 
WinXP SP2, Win7 - XProfan 10/11/FreeProfan32 - Xpia
04/20/16  
 




Michael
W.
sees heavy from, would then but for 86/64.

Evtl becomes it there also only generiert and it must into asm86 asm64 Unterbereichen changed go.

be To tired...
(evtl. is the already in the JediLib correct, who can tell)
 
System: Windows 8/10, XProfan X4
Programmieren, das spannendste Detektivspiel der Welt.
04/20/16  
 




Matthias
Arlt
i'd whom Compiler first not change. one can whom Yes well with different Options Call...and erschafft itself then evtl. further Macken...
 
WinXP SP2, Win7 - XProfan 10/11/FreeProfan32 - Xpia
04/21/16  
 




Matthias
Arlt
what FreeProfan64 angeht, so can I it of course not testing, have me but nevertheless times the Binary under The Lupe taken.

here lying to .rsrc not .edata, separate .idata

The first To ändernde worth lying on Offset (long(runtime#,60) + 148) [with 64bit too always on this place]. there would $6000 einzutragen.
The others both Offsets wären (.idata + 8) and (.idata + 16)
with (.idata + 8) wären again $6000 einzutragen.
though differieren with FreeProfan64 The virtual Size and the Rohdaten-Size. with whom Rohdaten, means on (.idata + 16) wären it therefore only $5800. otherwise ought to The Vorgehensweise identical his...
ought to not on attempt klappen, simply at times all 3 Offsets with both Values, $6000 or $5800, experiment. or rather only on whom first 2 Offsets, because with (.idata + 16) can it Yes maximum $5800 his.

something astonishes i was incidentally, that with FreeProfan64 The Runtime too with Prfrun32 benannt is....

Greeting Matthias
 
WinXP SP2, Win7 - XProfan 10/11/FreeProfan32 - Xpia
04/21/16  
 




RGH
Vielen Thanks for your trouble! the I will then soon time debug!

Matthias Arlt (21.04.2016)
something astonishes i was incidentally, that with FreeProfan64 The Runtime too with Prfrun32 benannt is....


the lying integrally simply on it, I for 64bit exakt whom equal Source use. smaller ones differences go through Compilerschalter Done. but so befinde I in guter fellowship, if one so some Filenames Windows viewing.

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
04/21/16  
 




Matthias
Arlt
Nix To thank...the was me one pleasure...and the Lerneffekt is neither To despise.


but so befinde I in guter fellowship, if one so some Filenames Windows viewing.


the is nothing hinzuzufügen...

Greeting Matthias
 
WinXP SP2, Win7 - XProfan 10/11/FreeProfan32 - Xpia
04/21/16  
 




Answer


Topictitle, max. 100 characters.
 

Systemprofile:

no Systemprofil laid out. [anlegen]

XProfan:

 Posting  Font  Smilies  ▼ 

Please register circa a Posting To verfassen.
 

Topic-Options

64.636 Views

Untitledvor 0 min.
Sven Bader09/16/21
Rainer Hoefs07/12/19
p.specht12/20/18
Walter05/23/18
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