English
Bugs and vermeintliche

Strange behavior with Parameter Passing on PROC

 

Uwe
''Pascal''
Niemeier
Hello Roland!

Wirf time a look hierauf (XProfan 11.1):
CompileMarkSeparation
window 10,10-500,500
declare Demo&,Dummy&--Geht
declare Demo&,Dummy%--Geht nicht
declare Demo&----------Geht nicht

proc Test----------------------------------

    parameters Text$,Pointer&
    long Pointer&,0=123
    endproc-------------------------------------
    Test(Text,addr(Demo&))
    print Test 1:,Demo&
    Test(Text,addr(Demo&))
    print Test 2:,Demo&
    CompileMarkSeparation
proc Test----------------------------------

    parameters Pointer&
    endproc-------------------------------------
    declare Dummy&--so goes it
    var Demo&=123
    print addr(Demo&),Demo&
    Test(addr(Demo&))
    print addr(Demo&),Demo&
    Test(addr(Demo&))
    print addr(Demo&),Demo&
    waitkey

Hierbei changes the address, on the Demo&  lying, by the 1. Proc-appeal, though only, if the übergebene worth by Parameters  read becomes.

with XProfan 10 reacted everything How expects.
there is correct still what not ?!

PS: was Yes clear, that just I over something like stolpere

SeeYou
Pascal
 
01/23/09  
 




RGH
there shining The dynamic Speicherverwaltung yet a unerwünschten Nebeneffekt to have. The address of/ one variables ought to itself really not change. and evident does tappt im dunkeln it only, if one Variablentyp only once vorkommt. well, that the into most Programs so not vorkommt ... i'll me in a ruhigen Minute therefore concern!

Greeting
Roland

PS: I had Yes almost calculated, that it sometime another couple bislang unentdeckte Spätfolgen this operation dynamischer Speicheicherverbrauch give would. even if one it from the outside not sees, so was is programmtechnisch still The aufwändigste and most dangerous Änderung of XProfan 10 on XProfan 11. but first therefore get dynamischer Arrays possible and some border eingerissen, The me already long disturbed.
 
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
01/23/09  
 




RGH
Nachtrag:

so as looks, have I the Übeltäter discover (one Weird Behavior of Delphi with OpenArrays) and ausgetrixt. in the next Version becomes it means klappen. (had we not too in the Betaphase Problems with flatterhaften Variablenadressen in the Context with OCX?)

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
01/23/09  
 




Uwe
''Pascal''
Niemeier
Roland
had we not too in the Betaphase Problems with flatterhaften Variablenadressen in the Context with OCX?


what Dou you mean, How I the Error discover have?
then can I Yes the proposition ocx for XProfan 11 first rest let

SeeYou
Pascal
 
01/23/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

2.528 Views

Untitledvor 0 min.
RudiB.04/06/20
Jörg Sellmeyer11/04/11

Themeninformationen

this Topic has 2 subscriber:

RGH (2x)
Uwe ''Pascal'' Niemeier (2x)


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