Should preemptive threads use 100% CPU?
Trying out preemptive threads in a console app, and it no matter how much sleep time I give the threads or the main event loop, the process uses exactly 100% CPU in activity monitor. Is this normal? I...
View ArticleXojo2024R3: Problem saving sorted classes in IDE
I have been working for some time on conversion of inherited code for web app from Xojo2018 to Xojo2024. One of the problems that I see has to do with IDE I think. The app has folder called FileDefs...
View ArticleButton Focus Ring -- how to move it to another button?
Hi. I have an app with two buttons. The second button is disabled to start, and a user sees a focus ring around the button they have to use to enter their data.They can just hit Enter/Return and it...
View ArticleCandle Flame
Back in around the beginning of 2023 I started a project but ended up on the “back burner” then kind of forgot about it. D’oh Any way its was my attempt at making a flame or flickering candle flame...
View ArticleTool tip when hovering over a popup menu - while hovering and without making...
Hello all, Does anyone have an idea how to add a tooltip to a webpopmenu? I would like to add a different tooltip for each popupmenu item. Adding one to the object itself is easy. However, I want to...
View ArticleApp quit exception when a thread using a 3rd party API had been used
So I am in the process of moving previous console helper classes into preemptive threaded ones. These classes address measurement instruments; sometimes via Serial, sometimes through supplier APIs....
View ArticleCoreAudioMBS returns code -1
Hi, I need to get the volume of the default sound output on iOS. GetSoundVolumeMBS raises an exception (not supported on iOS), although the documentation says iOS is supported (). So I’m trying...
View ArticleWhy does Session.Event.Closing always fire when appQuiting = False?
Why does Session.Event.Closing always fire when appQuiting = False? It appears to do this spontaneously. Tim 2 posts - 2 participants Read full topic
View ArticleLaunch a program from console
Quick question: Once upon a time you could launch a program with something like var f as folderitem f = SpecialFolder.Documents.Child(“TheProgramFolder”).Child(“MySpecialProgram”).Launch. This option...
View ArticleThe layout locking of web controls does not work on phone browsers
These web controls (webContainers) has the lockBotton=true and his bottom border is on the bottom of the design webpage, but these bottom parts are putted on the middle of the page and not on bottom...
View ArticleWeirdest error I’ve seen so far in Xojo
What’s going on here? 4 posts - 2 participants Read full topic
View ArticleConverting to preemtive threads
Before converting the functions in all classes (60) using preemptive threading I would like to be sure if the conversion method is correct. Old features : var result as boolean MSMSemaphore.signal Try...
View ArticleShape coordenates
Is there a reason why X,Y coordinates on 2D objects are the object center and in Graphics the X, Y are the coordinates of the top-left corner? Canvas 1 Sub Paint(g As Graphics, areas() As Rect)...
View ArticleLimit for MP3 Files In A Project
My app will utilize 10,860 mp3 files. Is it feasible to drag these into the project or should they be linked from another location? Thanks! 6 posts - 3 participants Read full topic
View ArticlePreemptive Threads and Singletons
Setting a class up as a singleton is not uncommon: Shared Function SharedInstance() As MyClass If mSharedInstance Is Nil Then mSharedInstance = New MyClass End If Return mSharedInstance End Function...
View ArticleExpected String() but got Variant()
Good afternoon (o; I have a JSON backend where I get visit status from our online shop system. As a test I have set up a simple DesktopListBox with four columns. So when the JSON is returned and HTTP...
View ArticleDBKit bug workaround
If you place a non-user interface control on a window using DBKit, you’ll get an IllegalCastException at runtime when that window is opened. It’s fixed for the next beta but in the meantime, replace...
View ArticleDynaPDF Header & Footer
Does anyone have an example of adding headers to a PDF file with DynaPDF? 4 posts - 2 participants Read full topic
View ArticleNews from the MBS Xojo Plugins Version 24.4
In this article I want to introduce you the new functionalities from the MBS Xojo Plugins in version 24.4. ZXing We had zxing classes in our plugins to recognize barcodes for many years. The older...
View ArticleSystem.Speak on iOS - how to stop it from speaking?
I am wanting to include some text-to-speech for my mobile users. I am testing out the System.Speak built-in function. This will work, but I cannot get the system to stop speaking until it is finished....
View Article