Recent Posts

Pages: 1 ... 8 9 [10]
91
ObjAsm / Re: ObjAsm C.1.0 release
« Last post by 2B||!2B on December 03, 2019, 08:31:27 AM »
Hi biterider,

Thanks for the advice.
I have yes old ObjASM and uninstalled then did fresh installation.
However, there seems to have an error in the path. I have already set it in the installer to the correct one but in radasm, it still shows the old paths?

Paths set on installer:
Code: [Select]
%ProgramFiles%\Microsoft Visual Studio 14.0\VC\bin
%ProgramFiles%\Windows Kits\8.1\bin\x86

Paths show in RadASM project options
Code: [Select]
4,O,C:\Program Files (x86)\Windows Kits\10\bin\10.0.17763.0\x64\rc.exe /v /I$H,1
5,O,"C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.22.27905\bin\Hostx64\x64\link.exe" @$A\Build\Options\OPT_LNK_DBG_32.txt /OUT:"$5" "$3" "$4"

0,0,"C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\Common7\IDE\devenv.exe" $5,5
PS: RadASM path is set to empty in installer. Is this the reason?
I am on a 32bit Windows.
92
ObjAsm / Re: ObjAsm C.1.0 release
« Last post by Biterider on December 03, 2019, 07:53:26 AM »
Hi 2B||!2B
Any progress with the fresh installation?
Biterider
93
The Campus / Re: Handle exceptions inside a critical section
« Last post by 2B||!2B on December 03, 2019, 07:14:33 AM »
Good point AW. However, it is nice addition to have just in case because if such things happened, a deadlock is very likely to happen.
I have seen a concept called RAII in OOP languages where the object constructor encapsulates EnterCriticalSection and the destructor calls LeaveCriticalSection. Stack unwind does it all in case an exception is generated.

Code: [Select]
struct CSHolder {
    explicit CSHolder(CRITICAL_SECTION& cs): lock(cs) {
        ::EnterCriticalSection(&lock);
    }
    ~CSHolder() { ::LeaveCriticalSection(&lock); }
    CRITICAL_SECTION& lock;
};


CRITICAL_SECTION gLock;
void foo() {
    CSHolder lockIt(gLock);
    // lock is held until lockIt is destroyed
}

It could also be done in assembly with masmbasic try/catch macro i think.
94
The Campus / Re: Handle exceptions inside a critical section
« Last post by AW on December 03, 2019, 03:13:20 AM »
AFAIK, there are no special ASM facilities to handle them any easier than a HLL.
And real ASM programmers don't care about exceptions - good ASM code never faults.  :cool:
95
The Campus / Handle exceptions inside a critical section
« Last post by 2B||!2B on December 02, 2019, 06:37:38 PM »
Is there an easy way to handle an exception when a lock is acquired?

For example, inside a critical section, there may be an exception generated. How to leave critical section in such case?
96
The Soap Box / Re: how fast do you type your code?
« Last post by hutch-- on December 02, 2019, 04:57:57 PM »
I can generally type fast enough to match the speed I design at. If repetition is involved I am faster using the clipboard. Global or selection replace makes changing values fast and easy but finally the speed you type at matters little if it does not match what you are doing. I have known secretaries that could type at 100 words a minute but back then it was only useful for duplication, these days a laser printer is faster.
97
The Soap Box / Re: how fast do you type your code?
« Last post by cman on December 02, 2019, 04:45:45 PM »
I learned to touch type in high school ( I think I can type around 40 words per minute - not great , but fast enough ). It's nice to be able to type code laying down with a laptop on my stomach or in dim light. :biggrin:
98
ObjAsm / Re: ObjAsm C.1.0 release
« Last post by HSE on December 02, 2019, 12:17:11 PM »
Hamlet:
There is some differences between OA32 and OAF.
Because spacename, now you must write $Obj(DialogAbout)  or OA_DialogAbout .
Now you have to make New without Init, and later OCall object Init.

Regards. HSE.
99
Examples / Bitmap button test piece.
« Last post by hutch-- on December 02, 2019, 11:56:42 AM »
The code works fine, I am starting to get a little tired of the demands of the artwork which is yet another learning curve but the example shows how they work. These 64 pixel images are large, even as PNG files so the exe size is large by assembler standards but probably not by modern high level code standards. The logic is simple, one up and one down image that changes as you click on it and it sends a WM_COMMAND message to the parent app.
100
Game Development / Re: SWGPTG - 02 - Drawing Basic Shapes
« Last post by Siekmanski on December 02, 2019, 11:19:22 AM »
They work fine, as all your demos do on my Win 8.1 64 bit PC.  :thumbsup:
Pages: 1 ... 8 9 [10]