Search found 1329 matches
- Thu Mar 13, 2025 9:39 am
- Forum: Newbie questions
- Topic: safe to use enablelinehook/disablelinehook twice in a row?
- Replies: 2
- Views: 336
Re: safe to use enablelinehook/disablelinehook twice in a row?
In this case I dont think it is worth tracking it down, since this is caused by some extra options which increase the speed of the game, since by default it is too slow for Amigas. These extra speed options are not exactly safe, but they cause some other problems too, so one more bug there isn't tha...
- Wed Mar 12, 2025 4:11 pm
- Forum: Newbie questions
- Topic: safe to use enablelinehook/disablelinehook twice in a row?
- Replies: 2
- Views: 336
safe to use enablelinehook/disablelinehook twice in a row?
I have a bug in my code where for some reason Disablelinehook() in some case stays on, as in it goes to a part of code where EnableLineHook() should have already happened and yet it didnt. instead of finding out where this happens, I am instead using EnableLineHook() at that other part of code. But ...
- Sat Mar 08, 2025 8:29 pm
- Forum: Wishlist
- Topic: MakeButton to return ID also when ID is given
- Replies: 4
- Views: 1245
Re: MakeButton to return ID also when ID is given
@flinx
Thanks!
That works and solves my problem of needing to do two different makebuttons.
Thanks!
That works and solves my problem of needing to do two different makebuttons.
- Fri Mar 07, 2025 12:35 pm
- Forum: Wishlist
- Topic: MakeButton to return ID also when ID is given
- Replies: 4
- Views: 1245
MakeButton to return ID also when ID is given
To demonstrate: ID=2 NewID = MakeButton(ID, #SIMPLEBUTTON, 100, 100, 100, 100, {OnMouseDown = Function() DebugPrint("mouse down") EndFunction}) DebugPrint(NewID) WaitEvent() If you change ID to nil, it gives userdata. I was having in my program a makebutton function, which sends, along the...
- Thu Mar 06, 2025 7:13 am
- Forum: General programming
- Topic: Does FreeBrush frree Brush immediatelly?
- Replies: 3
- Views: 1405
Re: Does FreeBrush frree Brush immediatelly?
@jpv, thanks from that "GetMemoryInfo()" part, hadnt noticed command like that before.
- Wed Mar 05, 2025 9:04 pm
- Forum: General programming
- Topic: Any way deleting item from a table when only var containing it is known?
- Replies: 2
- Views: 488
Re: Any way deleting item from a table when only var containing it is known?
sorry my mistake in the example. ItemVar is a table, not variable.
Code: Select all
Function somefunc(Item)
Delete Item from Mytable?
EndFunction
mytable = { [1] = {},
[2] = {}
}
ItemVar = Mytable[n]
somefunc(ItemVar)
- Wed Mar 05, 2025 2:17 pm
- Forum: General programming
- Topic: Any way deleting item from a table when only var containing it is known?
- Replies: 2
- Views: 488
Any way deleting item from a table when only var containing it is known?
I am rewriting my code to work faster, and right now I am in bit of a problem. Situation is that I have this table containing items, and I am in need of deleting a specific one of them out. However, problem is that I don't have access to the table at that point, but only to the item. As in situation...
- Wed Mar 05, 2025 11:07 am
- Forum: General programming
- Topic: What is the idea with Add(), Div() etc.?
- Replies: 1
- Views: 468
What is the idea with Add(), Div() etc.?
I thought that using X = Add(x, 1) would be faster that using x = x + 1, but seems I was wrong: amount = 100000 x = 1000 y = 1000 a = 1000 b = 1000 c = 1000 StartTimer(1) start = GetTimer(1) For n = 0 To amount x = Add(x, 1) y = Add(y, 1) a = Add(a, 1) b = Add(b, 1) c = Add(c, 1) Next Endtime = GetT...
- Tue Mar 04, 2025 10:28 am
- Forum: General programming
- Topic: Does FreeBrush frree Brush immediatelly?
- Replies: 3
- Views: 1405
Does FreeBrush frree Brush immediatelly?
I am checking this to see if I can reduce the required amount of Memory needed. I have a program that is essentially doing the following: for n = 1 to 10 Local ID ID = LoadBrush(NIL, "file n") SaveBrush(ID, file) FreeBrush(ID) next I am wondering here that will this mean that there is only...
- Tue Mar 04, 2025 7:58 am
- Forum: General programming
- Topic: Error allocating bitmap, is it due to lack of memory?
- Replies: 2
- Views: 510
Re: Error allocating bitmap, is it due to lack of memory?
Noticed all I had to do was to install Update 1 to flowerpot, and it made me over 600 Mb of memory as a standard. And yes, the Bitmap allocation error ended too, so I suppose it was memory issue as I suspected.