My program is crashing when I click on the Edit /Paste function of the menu bar.
I have an application that reads a tab delimited file to edit items on an external website by copying and pasting one item at a time (no API or javascript accessibility). I have extracted this routine from a more extensive working program that uses a database.
I have a single window with an HTML viewer, three text windows for each element in one line of the input file, a button to load the website, a button that opens the text file, a button that loads a record and copies one element onto the clipboard, and a button that edits a text string copied from a textbox in the HTML viewer and reloads the edited string to paste back over the original string in the HTML Viewer. (I use the clipboard extensively!)
The main window uses an Opening Event that only defines the window and elements on the screen. With only the basic window open, If I select Edit/Paste from the menubar. the program crashes after a few seconds with an “Application Crashed due to an access violation” message. Any ideas?
OSX Tahoe v26.0, XOJO 2025 v2. (It also crashed before I updated to Tahoe)
Go to System Settings/Software Update. Be prepared for a long update - it is a 17Gb download. You can set it for an overnight update but plug in any laptop!
I was trying to get useful information, Christoph was just being off-topic about “OSX” (it’s macOS now).
You don’t ask your mechanic to fix your car without seeing it, we can’t fix your issues magically either. At the very minimum we need a crash log to speculate why, and we need an example project to attempt to fix.
Remember: On the Mac you need Full Keyboard Access turned on in System Preferences (Keyboard->Shortcuts) in order to manually set focus to non-text controls.
Thanks for all your comments. I thought it may have been something silly that I could fix. I just submitted this as an Issue so that I could attach the progam to troubleshoot it.
Paste (Text) in TextFields (Name, location, …) does not crash, else I get a Crash, but you do not trap the Paste in your submlited example.
When I get the crash, I do not know where the text data is meant to go (I do not saw where the cursor is).
Also, Next button crash but it is not the only one.
Add a MenuHander for EditPaste either in App or in your Window and route the data where you want it (but not in the HTMLViewer…)
Note to all: there is an HTMLViewer who goes to Google (and Google asked me to “register” or be OK with I do not know what).