flat assembler
Message board for the users of flat assembler.
Index
> IDE Development > Fresh 1.0.0D pre-alpha |
Author |
|
scientica 15 Oct 2003, 17:19
GPF on write for me :/
... "0x040FF71" referenced memory at "0x00105E6E". The memory could not be "written" ... btw, did you miss my question in another thread: how do I get the TDesignTimeInfo of the currently selected component? Could you make some function for that, or some message to send to the project manager window? (btw I noticed that you've changed the WinStyles, I missed to see that in the history (you'right 255 char should be more than enoguht for the name and desc. Must remeber to make some changes in to the code to reflect this change)) _________________ ... a professor saying: "use this proprietary software to learn computer science" is the same as English professor handing you a copy of Shakespeare and saying: "use this book to learn Shakespeare without opening the book itself. - Bradley Kuhn |
|||
15 Oct 2003, 17:19 |
|
JohnFound 15 Oct 2003, 17:51
Hi scientica.
Sorry, I missed that question. Every control in form designer have TBaseWin structure attached to it. But actually this is not TBaseWin, but derivative structure: TCustomControl. (Look at controls.inc) So, TCustomControl is extended form of TBaseWin and there is field .DesignInfo with pointer to TDesignTimeInfo structure of given control. WinStyles is changed by incident, visibly I used some old/work version of the macro. But it will make smaller data, so let it stay, if this is not very unhandy for you. About GPF, I will check it just now, but it works good for me. |
|||
15 Oct 2003, 17:51 |
|
JohnFound 15 Oct 2003, 18:21
Some bugfixes for GPF reported by Scientica. Please try do download and check it now.
Regards. |
|||
15 Oct 2003, 18:21 |
|
scientica 15 Oct 2003, 18:29
Ok, good then I'll "only" need to make some adjust ments to the code.
Then I'd suggest changng "ofsTBaseWinPtr" to "ofsTCustomControlPtr". I'll let the "size of"s be byte-sized instead of dword-sized, I'll just (iirc, unless I've been naughty in some procs ) have to change lodsd to lodsb [EDIT]Just posted, -- downloading new version now, wait 5 sek and I'll see how it went -- [/EDIT] [EDIT2]The bug has been fixed, no crash so far [/EDIT2] _________________ ... a professor saying: "use this proprietary software to learn computer science" is the same as English professor handing you a copy of Shakespeare and saying: "use this book to learn Shakespeare without opening the book itself. - Bradley Kuhn |
|||
15 Oct 2003, 18:29 |
|
JohnFound 15 Oct 2003, 18:41
scientica wrote: Then I'd suggest changng "ofsTBaseWinPtr" to "ofsTCustomControlPtr". So, generally you are right, but there is some blurry things, because the forms for now have no Designtime info. I will change it soon, because I want to make forms and components to behave uniformly. BTW: If you need some changes in TDesignTimeInfo related with Style editor, please post a message and I will change it. (The same applyes to WinStyle macro too. If you prefere to have dwords for length, simply say. ) Regards. |
|||
15 Oct 2003, 18:41 |
|
scientica 15 Oct 2003, 19:32
Maybe it's the best to let it be byte sized - the strings are just intended to be short/brief descriptions and names, putting a 255 chars limit will avoid long fariy tales about the controlls.
Just noticed, there are two versions of designtime.inc, one in the source dir and one in the Source\Doc\designtime\ Here is a suggestion on changes thought: Code: macro WinStyles [_nme, _value, _dsc] { common local index index = 0 forward index = index + 1 common dd index ; The first dword is count of the items in the list. forward local name, namelen, hint, hintlen ; Style value dd _value ; Style name - Pascal string - the first byte is length of the string. db namelen name db _nme, 0 namelen = $ - name if namelen > 255 display '<E> Too long name, must be <256 chars.' halt end if ; Style description - Pascal string. db hintlen hint db _dsc, 0 hintlen = $ - hint if hintlen > 255 display '<E> Too long hint, must be <256 chars.' halt end if } _________________ ... a professor saying: "use this proprietary software to learn computer science" is the same as English professor handing you a copy of Shakespeare and saying: "use this book to learn Shakespeare without opening the book itself. - Bradley Kuhn |
|||
15 Oct 2003, 19:32 |
|
JohnFound 15 Oct 2003, 19:47
OK, scientica. I am agree 100%.
|
|||
15 Oct 2003, 19:47 |
|
decard 15 Oct 2003, 20:06
Heh nice
I was afraid if data macroses could slow down compilation, but it wasn't significant. I wanted to include finddate.inc in findreplace.asm but John did it for me John: I'm just curious, but why message window is as an AsmEdit? |
|||
15 Oct 2003, 20:06 |
|
JohnFound 15 Oct 2003, 20:09
decard wrote: John: I'm just curious, but why message window is as an AsmEdit? So, I wanted to try something. It is already not AsmEdit in my version. |
|||
15 Oct 2003, 20:09 |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2024, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.