flat assembler
Message board for the users of flat assembler.
![]() Goto page Previous 1, 2 |
Author |
|
scientica
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 |
|||
![]() |
|
roticv
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.
|
|||
![]() |
|
JohnFound
I think that the problem is in virtfiles.asm. LocalReAlloc some times returns NULL, but I don't know why.
|
|||
![]() |
|
roticv
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. |
|||
![]() |
|
Blag
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?????? ![]() |
|||
![]() |
|
scientica
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 |
|||
![]() |
|
decard
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... |
|||
![]() |
|
roticv
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.
|
|||
![]() |
|
JohnFound
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? |
|||
![]() |
|
decard
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 |
|||
![]() |
|
JohnFound
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.? |
|||
![]() |
|
roticv
Yippy, it is now able to compile the file. Aye, I get a 3kb file on my win2k system.
|
|||
![]() |
|
Kevin_Zheng
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. |
|||
![]() |
|
JohnFound
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. |
|||
![]() |
|
Betov
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. |
|||
![]() |
|
Kevin_Zheng
Hi,Johnfound:
The attached photo is the error message on NT platform. Thanks your reply. [img] fresh.jpg [/img]
|
||||||||||
![]() |
|
scientica
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 |
|||
![]() |
|
Goto page Previous 1, 2 < Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2020, Tomasz Grysztar. Also on GitHub, YouTube, Twitter.
Website powered by rwasa.