Search found 63 matches
- Sat Mar 08, 2025 12:03 am
- Forum: Coding Questions
- Topic: ReceiveHTTPMemory
- Replies: 11
- Views: 1027
Re: ReceiveHTTPMemory
ReceiveHTTPMemory() is giving you the exact data it received from the server... I think it's OK as-is.
You can go one step further and check the HTTP StatusCode, here is a helper function:
Procedure.i ReceiveHTTPMemoryStrict(URL.s, Flags.i = 0, UserAgent.s = "")
Protected *Buffer = #Null
If ...
- Fri Mar 07, 2025 11:23 pm
- Forum: Coding Questions
- Topic: ReceiveHTTPMemory
- Replies: 11
- Views: 1027
Re: ReceiveHTTPMemory
the calling routine is
DrawImage(ImageID(CatchImage(#PB_Any,get_image())),0,0)
Are you aware that this is a memory leak?
`CatchImage(#PB_Any, ...)` returns a freshly created object that is never stored in a variable. So you will never be able to use `FreeImage()` with it. So if that line is ...
- Fri Mar 07, 2025 1:07 am
- Forum: Coding Questions
- Topic: ReceiveHTTPMemory
- Replies: 11
- Views: 1027
Re: ReceiveHTTPMemory
If *Buffer always fires even if the file is not found.... normally the ]Buffer should be 0
It is "guilty" because there is something in this *Buffer... Image or not. Now it is on the developer to do something with it.
Thats why I try to use "Catchimage". This is the test, if it is a 404 HTTP ...
- Thu Mar 06, 2025 10:34 pm
- Forum: Coding Questions
- Topic: ReceiveHTTPMemory
- Replies: 11
- Views: 1027
Re: ReceiveHTTPMemory
Thanks thorium,
I already worked around like below.
Procedure.i GetImagePointer(File.s)
Define *Buffer = ReceiveHTTPMemory("https://www.listrik.be/ListrikTheme/" + File, #PB_HTTP_NoRedirect)
If FindString(PeekS(*Buffer, MemorySize(*Buffer), #PB_UTF8), "404 Not Found") > 0
Debug LoadImage(#PB_Any ...
I already worked around like below.
Procedure.i GetImagePointer(File.s)
Define *Buffer = ReceiveHTTPMemory("https://www.listrik.be/ListrikTheme/" + File, #PB_HTTP_NoRedirect)
If FindString(PeekS(*Buffer, MemorySize(*Buffer), #PB_UTF8), "404 Not Found") > 0
Debug LoadImage(#PB_Any ...
- Tue Mar 04, 2025 11:29 pm
- Forum: Coding Questions
- Topic: ReceiveHTTPMemory
- Replies: 11
- Views: 1027
Re: ReceiveHTTPMemory
Hi, thanks for your reply
the calling routine is
DrawImage(ImageID(CatchImage(#PB_Any,get_image())),0,0)
If the image is found then a it is in memory
If not found on the server the image is loaded locally from disk and the put in memory.
in both cases I return a pointer to the catchimage routine ...
the calling routine is
DrawImage(ImageID(CatchImage(#PB_Any,get_image())),0,0)
If the image is found then a it is in memory
If not found on the server the image is loaded locally from disk and the put in memory.
in both cases I return a pointer to the catchimage routine ...
- Tue Mar 04, 2025 10:56 pm
- Forum: Coding Questions
- Topic: ReceiveHTTPMemory
- Replies: 11
- Views: 1027
ReceiveHTTPMemory
Hello,
The following lines is returning a *Buffer while it should return 0 (the URL exists but the map BUTTONS does not)
The buffer in memory contains
<title>404 Not Found</title>
</head><body>
<h1>Not Found</h1>
<p>The requested URL was not found on this server.</p>
<p>Additionally, a 404 Not ...
The following lines is returning a *Buffer while it should return 0 (the URL exists but the map BUTTONS does not)
The buffer in memory contains
<title>404 Not Found</title>
</head><body>
<h1>Not Found</h1>
<p>The requested URL was not found on this server.</p>
<p>Additionally, a 404 Not ...
- Tue Jan 28, 2025 9:47 pm
- Forum: Applications - Feedback and Discussion
- Topic: IceDesign GUI designer
- Replies: 726
- Views: 281521
Re: IceDesign GUI designer
Chris,
It is fixed, thanks for the quick action.
It is fixed, thanks for the quick action.

- Tue Jan 28, 2025 6:17 pm
- Forum: Applications - Feedback and Discussion
- Topic: IceDesign GUI designer
- Replies: 726
- Views: 281521
Re: IceDesign GUI designer
Hi chris
Version 2.3.4 always set Container_Raised = checked
You can uncheck it but after saving and reloading it is checked again
I updated about 23 designs and all the ones having a container now are raised ??
Version 2.3.4 always set Container_Raised = checked
You can uncheck it but after saving and reloading it is checked again
I updated about 23 designs and all the ones having a container now are raised ??
- Thu Jul 25, 2024 1:56 am
- Forum: 3D Programming
- Topic: CreateEntity() failing
- Replies: 4
- Views: 4301
Re: CreateEntity() failing
Minimy,
I already found another way around, I simply used a cube entity to form a line.
But the explanation with the invisible Entity as container for some other visible entitys is usefull for another problem I have.
Thanks.
I already found another way around, I simply used a cube entity to form a line.
But the explanation with the invisible Entity as container for some other visible entitys is usefull for another problem I have.
Thanks.
- Sat Jul 13, 2024 9:36 pm
- Forum: Bugs - Documentation
- Topic: RayPick()
- Replies: 1
- Views: 1898
RayPick()
I am reporting an error in the 'PureBasic help' because i have been strugling for 3 days before I found the reason of strange behaviour
The helpfile says
Result = RayPick(x, y, z, DestinationX, DestinationY, DestinationZ [, PickMask])
This is not correct
Raypic() needs a direction NOT an endpoint ...
The helpfile says
Result = RayPick(x, y, z, DestinationX, DestinationY, DestinationZ [, PickMask])
This is not correct
Raypic() needs a direction NOT an endpoint ...
- Tue Jul 09, 2024 1:48 am
- Forum: 3D Programming
- Topic: CreateEntity() failing
- Replies: 4
- Views: 4301
Re: CreateEntity() failing
Thanks minimy
Confusing dough, helpfile clearly says a line3d is a mesh. So assumed that an Entity could be created from it.
I need the Entity because I need a visibility mask to NOT let it show on all cameras
The way you do it works, but .... I am losing the visibility mask and the line is shown on ...
Confusing dough, helpfile clearly says a line3d is a mesh. So assumed that an Entity could be created from it.
I need the Entity because I need a visibility mask to NOT let it show on all cameras
The way you do it works, but .... I am losing the visibility mask and the line is shown on ...
- Mon Jul 08, 2024 10:02 pm
- Forum: 3D Programming
- Topic: CreateEntity() failing
- Replies: 4
- Views: 4301
CreateEntity() failing
Hello,
Does someone know why the ENT = CreateEntity(#PB_Any, MeshID(LIN), #PB_Material_None,0,0,0,-1,#Mask2) does not work in the below example code ?
Thanks in advance
#Mask1 = 1 << 0 ;binary 1
#Mask2 = 1 << 1 ;binary 2
InitEngine3D()
InitSprite()
OpenWindow(0, 0, 0, 640, 480, "Line3D ...
Does someone know why the ENT = CreateEntity(#PB_Any, MeshID(LIN), #PB_Material_None,0,0,0,-1,#Mask2) does not work in the below example code ?
Thanks in advance
#Mask1 = 1 << 0 ;binary 1
#Mask2 = 1 << 1 ;binary 2
InitEngine3D()
InitSprite()
OpenWindow(0, 0, 0, 640, 480, "Line3D ...
- Mon May 27, 2024 12:10 am
- Forum: Applications - Feedback and Discussion
- Topic: IceDesign GUI designer
- Replies: 726
- Views: 281521
Re: IceDesign GUI designer
Chris,
I updated to 2.1.5 but unfortunatly now i have this huge problem because you have changed the concept of constant naming so that the old ways is no longer possible.
fi
Enumeration Gadgets
#Gadget_WinSymCommandFusebox_BtnImg_SizeU ----------2.1.5---> #WinSymCommandFusebox_BtnImg_SizeU ...
I updated to 2.1.5 but unfortunatly now i have this huge problem because you have changed the concept of constant naming so that the old ways is no longer possible.
fi
Enumeration Gadgets
#Gadget_WinSymCommandFusebox_BtnImg_SizeU ----------2.1.5---> #WinSymCommandFusebox_BtnImg_SizeU ...
- Thu Apr 25, 2024 10:42 am
- Forum: Applications - Feedback and Discussion
- Topic: IceDesign GUI designer
- Replies: 726
- Views: 281521
Re: IceDesign GUI designer
Thanks Chris
- Thu Apr 25, 2024 2:14 am
- Forum: Applications - Feedback and Discussion
- Topic: IceDesign GUI designer
- Replies: 726
- Views: 281521
Re: IceDesign GUI designer
Chris,
My commercial project has 34 different windows
I don't know how many users of IceDesign there are but as I recall there was at least one other user that has a lot of windows in one project.
If some just recompiles some of the windows it will create same problems as I had.
I manually removed ...
My commercial project has 34 different windows
I don't know how many users of IceDesign there are but as I recall there was at least one other user that has a lot of windows in one project.
If some just recompiles some of the windows it will create same problems as I had.
I manually removed ...