Welcome, Guest
Username: Password: Remember me
General discussions, feature requests for CodeTyphon Project and discussions that don't fit in any of the other specific CodeTyphon forum categories.
  • Page:
  • 1

TOPIC:

division by zero in CT5.00 9 years 6 months ago #6018

  • Maximiliano
  • Maximiliano's Avatar Topic Author
  • Offline
  • Junior Member
  • Junior Member
  • Posts: 47
  • Thank you received: 3
This error appears.
Sometimes when I change a property, or when the form is displayed in design mode.

Spanish
Este error aparece solo, cuando cambio una propiedad, o cuando aparece el formulario en modo diseƱo.
Attachments:

Please Log in or Create an account to join the conversation.

Last edit: by Maximiliano.

division by zero in CT5.00 9 years 6 months ago #6019

  • Sternas Stefanos
  • Sternas Stefanos's Avatar
  • Offline
  • Moderator
  • Moderator
  • Ex Pilot, M.Sc, Ph.D
  • Posts: 4508
  • Thank you received: 1100
Thanks Sir
We fix this in Lab CT version 5.10
PilotLogic Architect and Core Programmer
The following user(s) said Thank You: Maximiliano

Please Log in or Create an account to join the conversation.

division by zero in CT5.00 9 years 6 months ago #6021

  • Maximiliano
  • Maximiliano's Avatar Topic Author
  • Offline
  • Junior Member
  • Junior Member
  • Posts: 47
  • Thank you received: 3
and if press cancel. Crash IDE, if press Accept continue

Please Log in or Create an account to join the conversation.

Last edit: by Maximiliano.

division by zero in CT5.00 9 years 6 months ago #6073

  • Bernd Klingesberger
  • Bernd Klingesberger's Avatar
  • Offline
  • Junior Member
  • Junior Member
  • Posts: 25
  • Thank you received: 0
I do have the same issue with 5.11 with Ubuntu 14.04 x64. Thx for help.

Please Log in or Create an account to join the conversation.

division by zero in CT5.00 9 years 6 months ago #6074

  • gulyone
  • gulyone's Avatar
  • Offline
  • Junior Member
  • Junior Member
  • Posts: 99
  • Thank you received: 5
I dont know if it helps but the division by zero issue that you are talking about ALWAYS pops up when you debug your program step by step and open assembler window... at least on windows 32/64.

as I needed assembler debuging I went back to typhon 4.80 wich is to my opinion the most stable typhon version so far.

Now I am back to CT 5.1 with its buggy assembler window

Please Log in or Create an account to join the conversation.

Last edit: by gulyone.

division by zero in CT5.00 9 years 6 months ago #6079

  • Sternas Stefanos
  • Sternas Stefanos's Avatar
  • Offline
  • Moderator
  • Moderator
  • Ex Pilot, M.Sc, Ph.D
  • Posts: 4508
  • Thank you received: 1100
Sir, we fix assembler dialog problems
PilotLogic Architect and Core Programmer
The following user(s) said Thank You: gulyone

Please Log in or Create an account to join the conversation.

division by zero in CT5.00 8 years 6 months ago #8284

  • concrete
  • concrete's Avatar
  • Offline
  • New Member
  • New Member
  • Posts: 11
  • Thank you received: 0
This is STILL happening more than a year later with version 5.40.

I just encountered it for the first time today. Nothing changed in my code. I just opened up my project, tried to add a second TTimer onto my form, and after that I always get "Division by zero" when I run the program.

I thought the timer was doing something strange, so I removed it from the form...compiled again, and the error was still there.

I went back to a version of my project from yesterday, and it's fine. So now with the working version, I again added something to the form, and when I compile it, I'm back to division by zero.

Even if I do something simple like move a button component to a different position on my form, it still creates the division by zero problem. Exact same code as my working version from yesterday. The only difference is the position of ANY component on a form. As soon as I move something (or add something), it seems to inject some kind of garbage into the code during compilation.

What the hell is going on?

Please Log in or Create an account to join the conversation.

Last edit: by concrete.

division by zero in CT5.00 8 years 6 months ago #8285

  • Sternas Stefanos
  • Sternas Stefanos's Avatar
  • Offline
  • Moderator
  • Moderator
  • Ex Pilot, M.Sc, Ph.D
  • Posts: 4508
  • Thank you received: 1100
Sir
can you give us more info ?
your OS etc ?
PilotLogic Architect and Core Programmer

Please Log in or Create an account to join the conversation.

division by zero in CT5.00 8 years 6 months ago #8293

  • concrete
  • concrete's Avatar
  • Offline
  • New Member
  • New Member
  • Posts: 11
  • Thank you received: 0
I'm using Windows 7 (64-bit)..

The problem is definitely in the way the form data is being saved. My guess is that something is being assigned a value of zero, when it should be 1 or higher. And I don't know what was trying to divide that number, because I have absolutely no "div" or "/" operations in my code.

To try and isolate the problem, I started deleting components from my form. Each time I deleted something, I re-compiled to see if there would be a different result.

I started deleting a bunch of buttons, edit boxes, panels, etc. The first 20 or so components didn't result if anything different. And then after I had only a very few things left on my form (I think it was one PageControl with a couple tabs and a few buttons), I compiled again and all of a sudden the Division by Zero problem was gone.

Unfortunately, in all the chaos, I couldn't tell you exactly what I deleted before the problem went away because there were too many things going on. I tried to delete one thing at a time, then re-compile, but it was taking way too much time...so I started deleting things in groups.

If it happens again, I'll keep a log of what I'm deleting until the problem is gone.

Please Log in or Create an account to join the conversation.

  • Page:
  • 1