I’ve done a silly thing ! And you ?

Starting a brand new wekk with a smile may be a good idea.

In my current project, at use time, I was astonished by a feature I coded, checked carefully (watched the code) and that feature does not worked.

After some days, I decided to verify what happens, thinking after all I may have forgotten to write it !

What a surprise to see that I only forgot to call the method. I wrote the method, it worked fine, but I do not called it !

Oups !

What was yours, lately ?

PS: I recall, once I saw it, that I wrote the method to save data well before creating the window where I have to call it. I think that is the base of the error.

Happens to the best of us :wink:
My latest “oups” was not code related but still Xojo related.

I had uploaded the latest version of a console app and went into the terminal through SSH to start it.
I got the error message “File does not exist”! What?
Checked the path to the parent folder…“Directory does not exist”! …

30 minutes and a lot of hair loss later…I was not logged in to the right server… ! Damn bookmarks…

And yeah I’ve done the exact thing as you some times too! :wink:

My latest “oops”

Had a method that connected to a remote windows server and executed a simple “format e: /y”. Accidently typed the “wrong” IP Address in my method. Whoops 900GB of data deleted :frowning:

Last week I was loading many different coordinates from a file and storing them using a single array (but I was treating it like a multidimensional array). I couldn’t figure out why I couldn’t get the index from the coordinates using index = x + y * ElementsPerRow. Turns out I’d printed the coordinates backwards to the file by mistake. So my X was my Y and my Y was my X.

I’d changed so much correct code trying to figure out what was wrong and an incorrect file was the last possibility on my mind. I was sure it was a problem in my code, but I couldn’t find out why it wouldn’t work. Very frustrating at the time but laughable now that I think about it.

Joshua:

Your answer reminds me a trouble with a Macintosh (Quadra 700 or PowerMac 8100 ???) main logic board that does not worked anymore at the time.

I was back from the city and in the car while driving I was thinking: “I’ve tryed anythin I can think at… Excepted removing the clock battery. No. No. It cannot be that…”

And it was that ! I removed the clock battery, wait one minute or so, replace it, Connect the MLB and power on it. It “re-worked”.

How I was happy !!!

When you get to be my age you sometimes forget what you have already done. More than once I have been doing something else and had a thought of a particular function or feature I want to add to one of my programs. When I finally get to my desk, bring up the project in Xojo and start to look to see where the best place to put the “new” code is, I find that I’ve already implemented that feature.

At that point I feel really stupid and decide to go play Pong or Asteroids so I can’t do any damage.

That would be a multi-tasking issue. … The brain becomes overwhelmed by tasks and you continue to add to the task stack, which raises in temporary memory, and by the time the long term memory attempts to query a new task, “some have vanished” from temporary memory (can’t add memory cards darn!)… Only to be “remembered” upon revisiting your code and logical flow :slight_smile: Happens to all multi-taskers. (Hmmm…revisiting a few of my forum posts can verify that :-)) Welcome to the CPU, virtual memory, and static memory process of the human mind. …truly amazing actually… If only we could easily port it all to Xojo :wink:

Never believe its age… If we were all as old as we felt, somedays we’d be dead :slight_smile:

I equate my brain to a spongue. When I was young I absorbed everything. At some point for everything I learned I needed to give something up. It started with wet socks and has worked it’s way up. Soon I’ll need water wings! What forum is this again?

Sponge Peter Square Pants :wink:

I just spent 3 days trying to get a menubar to work properly.
Yes, a MENUBAR !!!

I still have no idea why the original wouldn’t display correctly - but someone sent me a menubar which I added to my project, and then things went as expected :slight_smile:

Update:
Turns out my original project file was corrupted slightly, with regards to the menubar - it had a value of 129817337 instead of 0?