Ah I see the image size has an extra 0 on the end making it rather large.
You could use GrabImage to grab a region and copy it to another working image to process or display.
Search found 26 matches
- Tue Aug 31, 2021 12:02 am
- Forum: Coding Questions
- Topic: Reading POINTs from an image, to draw on another.
- Replies: 17
- Views: 5318
- Mon Aug 30, 2021 11:25 pm
- Forum: Coding Questions
- Topic: Reading POINTs from an image, to draw on another.
- Replies: 17
- Views: 5318
Re: Reading POINTs from an image, to draw on another.
I can't imagine loading an image would take up 1gb, counting too many 000's?
The way I read points from images is to load them into memory and directly read the RGB values.
Reading data to an array and processing before outputting to another image is magnitudes faster than trying to read an image ...
The way I read points from images is to load them into memory and directly read the RGB values.
Reading data to an array and processing before outputting to another image is magnitudes faster than trying to read an image ...
- Mon Jun 28, 2021 2:20 am
- Forum: Feature Requests and Wishlists
- Topic: jump to macro, variable, constants
- Replies: 4
- Views: 2675
Re: jump to macro, variable, constants
Bump
Along the same lines would be to display the constant value when hovering the mouse over a constant, how many times I need to jump back through code to find the definitions

Along the same lines would be to display the constant value when hovering the mouse over a constant, how many times I need to jump back through code to find the definitions

- Mon Jun 07, 2021 12:35 am
- Forum: Coding Questions
- Topic: Include Binary Crashing Program
- Replies: 27
- Views: 4858
Re: Include Binary Crashing Program
I'm pretty sure it's not a malware issue, the only events I have in Security Essentials are directly related to the compilation process for PB.
Well, you should get rid of Win7 and x86.
You shouldn't even use the Internet with Win7 anymore.
The program is made for a person who has to use x86, I ...
Well, you should get rid of Win7 and x86.
You shouldn't even use the Internet with Win7 anymore.
The program is made for a person who has to use x86, I ...
- Sun Jun 06, 2021 9:06 pm
- Forum: Coding Questions
- Topic: Include Binary Crashing Program
- Replies: 27
- Views: 4858
Re: Include Binary Crashing Program
I think it's solved, for anyone else going through something similar check the Windows Antimalware Security Essentials log to see if it is detecting a threat and deleting your files.
Not sure why it took me so long to find this out, it wasn't until I realized the compiled exe was being trashed that ...
Not sure why it took me so long to find this out, it wasn't until I realized the compiled exe was being trashed that ...
- Sat Jun 05, 2021 10:09 pm
- Forum: Coding Questions
- Topic: Include Binary Crashing Program
- Replies: 27
- Views: 4858
Re: Include Binary Crashing Program
Just when I thought I was in the clear... Defender is deleting my nice new compiled exe when I try to run it 

- Sat Jun 05, 2021 9:51 pm
- Forum: Coding Questions
- Topic: Include Binary Crashing Program
- Replies: 27
- Views: 4858
Re: Include Binary Crashing Program
No luck with the purifier or moving chunks of data items around.
But... on a whim I created 2 completely new graphic files, then pasted the images from the 2 trouble files, so far I am not having any crashes and I can compile again and I can run the program without the debugger.
I'll keep an eye ...
But... on a whim I created 2 completely new graphic files, then pasted the images from the 2 trouble files, so far I am not having any crashes and I can compile again and I can run the program without the debugger.
I'll keep an eye ...
- Sat Jun 05, 2021 10:13 am
- Forum: Coding Questions
- Topic: Include Binary Crashing Program
- Replies: 27
- Views: 4858
Re: Include Binary Crashing Program
I think I have posted most of the info but maybe scattered among different posts.
Win 7 x64
5.73 LTS x86
i5-2500K 3.3 ghz
8gb ram
16gb vram (13.2 free)
RX 570 GPU
* Initial error was detected when running project from IDE, it would crash after 5 seconds, this is without moving mouse or keyboard ...
Win 7 x64
5.73 LTS x86
i5-2500K 3.3 ghz
8gb ram
16gb vram (13.2 free)
RX 570 GPU
* Initial error was detected when running project from IDE, it would crash after 5 seconds, this is without moving mouse or keyboard ...
- Sat Jun 05, 2021 4:46 am
- Forum: Coding Questions
- Topic: Include Binary Crashing Program
- Replies: 27
- Views: 4858
Re: Include Binary Crashing Program
I keep running in to issues with respect to this project, I'm starting to think it is PC related.
The latest issue is I'm getting Polink errors, fatal error access denied... Comment out 2 specific resource files, no issue... copy the entire project to another PC unchanged, no issues... anyone seen ...
The latest issue is I'm getting Polink errors, fatal error access denied... Comment out 2 specific resource files, no issue... copy the entire project to another PC unchanged, no issues... anyone seen ...
- Wed May 26, 2021 11:24 pm
- Forum: General Discussion
- Topic: sortarray, sortstructuredarray
- Replies: 5
- Views: 3119
Re: sortarray, sortstructuredarray
I tried this test, I got an error saying bad parameter type, array expected.
EDIT: Actually it worked when I fixed my typo... but I can't get the SortStructuredArray to work...
EDIT2: Got it working, the first sortarray didn't sort anything... the structured sort is arranged by the specified x ...
EDIT: Actually it worked when I fixed my typo... but I can't get the SortStructuredArray to work...
EDIT2: Got it working, the first sortarray didn't sort anything... the structured sort is arranged by the specified x ...
- Wed May 26, 2021 11:14 pm
- Forum: Coding Questions
- Topic: Include Binary Crashing Program
- Replies: 27
- Views: 4858
Re: Include Binary Crashing Program
Thanks Eck49,
I have changed the order of the includes and commented out the catchimage lines to no avail.
Interestingly I added a 500ms delay before the main loop and the issue goes away.
I've been stripping everything back to basics and now don't think it is the includes, but I still don't ...
I have changed the order of the includes and commented out the catchimage lines to no avail.
Interestingly I added a 500ms delay before the main loop and the issue goes away.
I've been stripping everything back to basics and now don't think it is the includes, but I still don't ...
- Wed May 26, 2021 2:59 am
- Forum: Coding Questions
- Topic: Include Binary Crashing Program
- Replies: 27
- Views: 4858
Re: Include Binary Crashing Program
Good point, I'll create a hello world and go from there.
Couple of side notes / observations:
* This version of my program is updated from an earlier version that has no crashes, I can introduce the crashing issue into the earlier version just by adding the 2 suspect datasection lines as per my ...
Couple of side notes / observations:
* This version of my program is updated from an earlier version that has no crashes, I can introduce the crashing issue into the earlier version just by adding the 2 suspect datasection lines as per my ...
- Wed May 26, 2021 2:40 am
- Forum: Coding Questions
- Topic: Include Binary Crashing Program
- Replies: 27
- Views: 4858
Re: Include Binary Crashing Program
Multithreaded no, but timer yes, I thought I disabled the timer at one stage during testing but maybe not... have you had something similar using timers?Keya wrote: Wed May 26, 2021 2:30 amBy any chance is your app multithreaded, or using a timer?FourthStone wrote: Sun May 23, 2021 11:23 pmWhen the files are included my program crashes after 5-10 seconds
- Wed May 26, 2021 2:09 am
- Forum: Coding Questions
- Topic: Include Binary Crashing Program
- Replies: 27
- Views: 4858
Re: Include Binary Crashing Program
I've updated the path although it still works with the extra slash so I don't think this is the issue.
I've recreated all the BMP's as PNG's - this worked for 2 days but now the problem is back.
The version I am using is 5.73 LTS and there are no updates available, is there some other version ...
I've recreated all the BMP's as PNG's - this worked for 2 days but now the problem is back.
The version I am using is 5.73 LTS and there are no updates available, is there some other version ...
- Sun May 23, 2021 11:23 pm
- Forum: Coding Questions
- Topic: Include Binary Crashing Program
- Replies: 27
- Views: 4858
Include Binary Crashing Program
Hello, I have a crash issue with a couple of resource files I am trying to include with a project, I'm using PureBasic 5.73 LTS (Windows - x86).
When the files are included my program crashes after 5-10 seconds, I suspect it's the files themselves but I wanted to ask the question anyway in case I ...
When the files are included my program crashes after 5-10 seconds, I suspect it's the files themselves but I wanted to ask the question anyway in case I ...