flat assembler
Message board for the users of flat assembler.
Index
> IDE Development > The milestone version: Fresh 1.0.0E pre-alpha Goto page Previous 1, 2 |
Author |
|
scientica 21 Oct 2003, 11:36
Still get a null sized com file (in 2k).
Any ideas to where the problem is? _________________ ... 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 |
|||
21 Oct 2003, 11:36 |
|
roticv 21 Oct 2003, 11:49
Weird, on my win2k, fresh is shows that my code is compiled but there is no exe produced. Also my attempts to compile the example code produced a 0byte size com file. Something must be wrong. Let me try debugging it.
|
|||
21 Oct 2003, 11:49 |
|
JohnFound 21 Oct 2003, 13:13
I think that the problem is in virtfiles.asm. LocalReAlloc some times returns NULL, but I don't know why.
|
|||
21 Oct 2003, 13:13 |
|
roticv 21 Oct 2003, 13:42
hmm LocalReAlloc returns the correct value for me, but it is the LocalLock that fails with the error :
ERROR_DISCARDED The segment is already discarded and cannot be locked. Anyway I was pretty shocked when I heard that you used Local Functions. I think it would be much better if you had used Heap stuffs, as so claimed f0dder. Let me test some codes. |
|||
21 Oct 2003, 13:42 |
|
Blag 21 Oct 2003, 17:16
Doesn't work on my XP......just a 0 Kb .com
And were is the toolbar......i can't drag & drop controls into the form?????? What's up with that John?????? |
|||
21 Oct 2003, 17:16 |
|
scientica 21 Oct 2003, 17:30
roticv wrote: hmm LocalReAlloc returns the correct value for me, but it is the LocalLock that fails with the error : Try one of these flags: Quote: LMEM_NOCOMPACT _________________ ... 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 |
|||
21 Oct 2003, 17:30 |
|
decard 21 Oct 2003, 21:01
hmmm, John, it seems that you should look carefully at source editor code. Something is wrong with that. See:
I'm working on searching in many source files, and displaying results in a window. I need to 'ask' hEditorTab for the name of each tab, like: Code: xor esi,esi lea edi,[.tci] .load_file: push ecx invoke SendMessage, [hEditorTab], TCM_GETITEM, esi, edi pop ecx mov eax,[.tci.hdr.pszText] (it's a part of a loop, that's why it looks like this) after this eax contains garbage. When I do mov eax,[.tci.hFileName] It sometimes returns real file name, and sometimes - garbage... Furthermore, I can't create new source now - it worked before, now it doesn't... even when I downloaded a new version. It seems that asmedit is created (it shows and disappears quickly), but no new tab is created (so I can't acces new source). I can't find the reason... And I wonder why it was OK before... |
|||
21 Oct 2003, 21:01 |
|
roticv 22 Oct 2003, 04:46
Reading up on msdn, it was stated that Local and Global Functions are slower than other memory managment functions, and it was suggested that Heap* stuffs are used. Perhaps JohnFound should replace those code, or I must go changing the internals of the fresh. hehe.
|
|||
22 Oct 2003, 04:46 |
|
JohnFound 22 Oct 2003, 14:37
Hi all.
I come to the same opinion, that the "Local" functions are garbage. So I rewrite 'virtfiles.asm' to use heap functions instead. The file in the begining of the thread is updated. Please, check it now. decard wrote: hmmm, John, it seems that you should look carefully at source editor code. Something is wrong with that. I will check this and I think to introduce new message: SEM_GETFILENAME to return handle of the filename by index. Quote: Furthermore, I can't create new source now - it worked before, now it doesn't... even when I downloaded a new version. It seems that asmedit is created (it shows and disappears quickly), but no new tab is created (so I can't acces new source). I can't find the reason... And I wonder why it was OK before... I made, when you create/open new source file, and if the last one is empty and named "untitled.asm" and is only file in the editor, it is destroyed. FASMW works this way for example. Are you talking about this? Or there is some another bug? |
|||
22 Oct 2003, 14:37 |
|
decard 22 Oct 2003, 14:50
Quote: I made, when you create/open new source file, and if the last one is empty and named "untitled.asm" and is only file in the editor, it is destroyed. FASMW works this way for example. Yeah, it wasn't a bug. I realized that before I was typing something in the editor, and then created new tab (so the first one wasn't destroyed). But FASMW destroys first editor only when you open some file, not when you create new one, so you can have eg. you can have 5 untitled empty files. But now it's not as important as another bugs... Quote: I will check this and I think to introduce new message: SEM_GETFILENAME to return handle of the filename by index. In my case it won't help because I need more information about the tab (ie handle of AsmEdit), so I will still have to use TCM_GETITEM. regards |
|||
22 Oct 2003, 14:50 |
|
JohnFound 22 Oct 2003, 17:17
decard wrote: But now it's not as important as another bugs... BTW, did someone check last updated version on Win 2000/NT/XP etc.? |
|||
22 Oct 2003, 17:17 |
|
roticv 22 Oct 2003, 17:25
Yippy, it is now able to compile the file. Aye, I get a 3kb file on my win2k system.
|
|||
22 Oct 2003, 17:25 |
|
Kevin_Zheng 23 Oct 2003, 02:27
Hi,Johnfound:
The newest version worked ok on the win2000/nt/win2003. But on NT platform, the system will show a error message when quited fresh.exe. Thanks a lot. |
|||
23 Oct 2003, 02:27 |
|
JohnFound 23 Oct 2003, 07:55
Thank you guys. That's good news.
Kevin_Zheng wrote: But on NT platform, the system will show a error message when quited fresh.exe. Probably there are some memory leaks. Today I will try to clean up the whole project. Please send me, what error message appear on quit. Regards. |
|||
23 Oct 2003, 07:55 |
|
Betov 23 Oct 2003, 10:44
john, all i saw in this treath recalls me the problem i had in the first years of SpAsm developement... that only ended the day i wrote a complete memory manager. You might take a look at the [Mem] Title in RosAsm Sources....
(VirtualAlloc is the evident way to go, for a Project like Fresh...). Betov. |
|||
23 Oct 2003, 10:44 |
|
Kevin_Zheng 23 Oct 2003, 11:15
Hi,Johnfound:
The attached photo is the error message on NT platform. Thanks your reply. [img] fresh.jpg [/img]
|
||||||||||
23 Oct 2003, 11:15 |
|
scientica 23 Oct 2003, 14:54
Compiles ok for me too now (plus that I see the splitter and the window beneath it now, the icons are ok).
_________________ ... 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 |
|||
23 Oct 2003, 14:54 |
|
Goto page Previous 1, 2 < Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2024, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.