Search found 35 matches

by bytecave
Wed Mar 11, 2020 12:18 am
Forum: Linux
Topic: (PB 5.72 Beta 2) - OpenWindowedScreen example crashes
Replies: 4
Views: 2666

Re: (PB 5.72 Beta 2) - OpenWindowedScreen example crashes

Thank you. I tried XFCE and still get the crash on Mint Tricia. I'll fire up an Ubuntu VM and give it a whirl.

[ EDIT ]: Created Ubuntu 18.04 LTS desktop VM and everything works there. PB 5.72 Beta 2 definitely does not seem to like Mint 19 Tricia.

Debugging PB compiler and IDE internals on Linux ...
by bytecave
Tue Mar 10, 2020 5:19 pm
Forum: Linux
Topic: (PB 5.72 Beta 2) - OpenWindowedScreen example crashes
Replies: 4
Views: 2666

Re: (PB 5.72 Beta 2) - OpenWindowedScreen example crashes

#NULL wrote:Does not happen here, runs fine. Ubuntu 18.04.
Do you happen to be running Cinammon? Or what Desktop Manager are you running? I'll try with the same. Thank you!
by bytecave
Tue Mar 10, 2020 3:39 am
Forum: Linux
Topic: (PB 5.72 Beta 2) - OpenWindowedScreen example crashes
Replies: 4
Views: 2666

(PB 5.72 Beta 2) - OpenWindowedScreen example crashes

In running the first example from the docs for OpenWindowedScreen ("Example: Fixed screen size with gadgets"), the code begins to execute and then somewhere within the inner Repeat loop, it eventually crashes and the following error is displayed: "The debugged executable quit unexpectedly."

This ...
by bytecave
Sat Feb 22, 2020 6:16 am
Forum: Coding Questions
Topic: ButtonImageGadget - SetGadgetAttribute doesn't copy image
Replies: 8
Views: 2355

Re: ButtonImageGadget - SetGadgetAttribute doesn't copy imag

Quick wrap-up thank you. :)

This convinced me: Alternatively, there is also the option of using static image numbers by deselecting the #PB_Any option for the images in the Form > Image Manager menu.
It's obvious now that you've pointed it out :wink: and totally under my control; I can ensure no ...
by bytecave
Mon Feb 17, 2020 7:49 pm
Forum: Coding Questions
Topic: ButtonImageGadget - SetGadgetAttribute doesn't copy image
Replies: 8
Views: 2355

Re: ButtonImageGadget - SetGadgetAttribute doesn't copy imag

Thanks TI-994A! I am using PB's Form Editor for this application, and it uses LoadImage on 5 different images, in the format Img_wndMain_1 = LoadImage(...). Since I can't assume the internal implementation (can't know which values it chooses for image numbers) of LoadImage, I'd have to chose image ...
by bytecave
Mon Feb 17, 2020 12:59 am
Forum: Coding Questions
Topic: ButtonImageGadget - SetGadgetAttribute doesn't copy image
Replies: 8
Views: 2355

Re: ButtonImageGadget - SetGadgetAttribute doesn't copy imag

Thank you both for your feedback. In my scenario, where setting a different image into a buttonimagegadget every several seconds, I now save the last img# (returned from LoadImage) and before I set a new image (on the next call to the function), I FreeImage the previous one. This should prevent the ...
by bytecave
Sun Feb 16, 2020 6:41 am
Forum: Coding Questions
Topic: ButtonImageGadget - SetGadgetAttribute doesn't copy image
Replies: 8
Views: 2355

ButtonImageGadget - SetGadgetAttribute doesn't copy image

When setting the image of a ButtonImageGadget via SetGadgetAttribute, the underlying image is not copied into the gadget, but instead just the handle to the image is saved in the gadget. This means if you LoadImage an image, you can't call FreeImage on it after setting it in the ButtonImageGadget ...
by bytecave
Sat Feb 15, 2020 11:03 pm
Forum: Applications - Feedback and Discussion
Topic: Web image server for kiosk, wall tablet, etc.
Replies: 3
Views: 2625

Re: Web image server for kiosk, wall tablet, etc.

Thanks Kwai chang cain! If you're actually using it, might want to pick up the version I just posted. I was updating the thumbnails with SetGadgertAttribute in a thread which caused a memory leak an wonky UI after a few days of running. Now use PostEvent() to main window and update thumbnails there ...
by bytecave
Mon Feb 10, 2020 12:31 am
Forum: Coding Questions
Topic: 64-bit PB does not find 32-bit compiler in Compiler Options
Replies: 1
Views: 951

64-bit PB does not find 32-bit compiler in Compiler Options

My projects all compile for both 32 and 64-bit. In 5.71 and prior, when both 32-bit and 64-bit compilers are installed, both compiler architectures are available in Compiler Options. With 5.72 LTS Beta 1, the 32-bit PB only finds 32-bit compiler, and vice-versa for 64-bit. The other architecture ...
by bytecave
Sun Feb 09, 2020 8:55 am
Forum: Applications - Feedback and Discussion
Topic: Web image server for kiosk, wall tablet, etc.
Replies: 3
Views: 2625

Web image server for kiosk, wall tablet, etc.

I have several tablets mounted to my walls, each displaying a slideshow using ActionTiles(tm) ( https://www.actiontiles.com/ ). Others do the same with DakBoard or SharpTools.io. If you are in a similar situation, you looked for a method to return a random image from a specified folder in response ...
by bytecave
Thu Jul 19, 2018 8:24 pm
Forum: Announcement
Topic: [GAME] Eldarian Odyssey
Replies: 12
Views: 5562

Re: [GAME] Eldarian Odyssey

I don't have any detailed stats. I just counted 94 different valid objects and 48 rooms. The files Nouns.txt and Rooms.txt give you an idea of the objects/actions supported and show you all the environment and description detail that you will see when you LOOK or LOOK <object>. I dynamically alter ...
by bytecave
Thu Jul 19, 2018 6:15 pm
Forum: Announcement
Topic: [GAME] Eldarian Odyssey
Replies: 12
Views: 5562

Re: [GAME] Eldarian Odyssey

This was a surprising result of the freeze on RegisterFontFile workaround i put in! I copied some code from the forums that looked similar to this:
hFont = AddFontMemResourceEx_(*pFontBuffer, iFontLength, 0, @"1")

Note the last parameter. Instead of passing the address of a variable that could ...
by bytecave
Thu Jul 19, 2018 1:32 am
Forum: Announcement
Topic: [GAME] Eldarian Odyssey
Replies: 12
Views: 5562

Re: [GAME] Eldarian Odyssey

Hi Luis. This is a known PureBasic design flaw (issue?). It uses a blocking call to notify apps of font change: https://www.purebasic.fr/english/viewtopic.php?f=4&t=70402&hilit=registerfontfile. I have seen it a few times on my own PCs A workaround that often worked for me is to delete all the files ...
by bytecave
Wed Jul 18, 2018 5:41 pm
Forum: Announcement
Topic: [GAME] Eldarian Odyssey
Replies: 12
Views: 5562

Re: [GAME] Eldarian Odyssey

The zipped game is in the Binaries folder of the OSS repo: https://bitbucket.org/bytecave/eldarian-odyssey/src. The unzipped game is about 3mb because it's a standalone EXE with all of the artwork and fonts embedded inside. Thanks for your interest!
by bytecave
Wed Jul 18, 2018 4:56 am
Forum: Announcement
Topic: [GAME] Eldarian Odyssey
Replies: 12
Views: 5562

Re: [GAME] Eldarian Odyssey

Thanks Paul!

Not sure what is going on. I had my wife and two beta testers try on all of their machines, and tried on all of mine, variously these 8 machines were running Win 7, Win 8.1 and Win 10. Can't repro. BUT... I decided to downgrade to the released version of the compiler, was running 5.7 ...