|
Post by neverstoplearning on Sept 15, 2021 11:46:30 GMT -5
After receiving this error ("System Primitive Failure"), I was puzzled as to what caused this error... so i "rem"ed or deleted the last entry i made to the program thinking id get back to a running program...That did'nt work.
Can someone give me some idea what happened or what i can do to prevent this error in the future?
Thank you for any advice or suggestions. - Robert
|
|
|
Post by Walt Decker on Sept 15, 2021 12:06:39 GMT -5
Need a little more info than provided. What did you rem that you think caused the problem? Did you use DEBUG and step through the code to confirm that the remed code is actually the culprit?
|
|
|
Post by neverstoplearning on Sept 15, 2021 12:35:16 GMT -5
Thanks Walt, I had not used the debug feature yet..
I added some text to a graphics window... print #MG, "Place 50 50" Print #MG, "/gfhjfjg" I think that I'm adding too much to the graphics window... I'm trying to figure out when to "flush" graphics and with what timing... I guess that may be where to start (In general) Most of my commands are writing to the Graphics Window..
|
|
|
Post by Walt Decker on Sept 15, 2021 12:57:13 GMT -5
Are you trying to print text with: Print #MG, "/gfhjfjg" If so, change it to: Print #MG, "|gfhjfjg" or Print #MG, "\gfhjfjg"
PS: All flush does is write the cashed control directives to a memory bitmap so the graphic will be persistant. That can be done at any point after rendering.
|
|
|
Post by neverstoplearning on Sept 15, 2021 13:08:17 GMT -5
Thanks Walt.. I did use the Debug..per your suggestion. that did help... And while i still wonder about the best time to "Delsegment or Flush" that understanding will come the more i immerse myself into the language and lots of trial and error. Thanks Walt... problem averted for now. -Robert
|
|
|
Post by Brandon Parker on Sept 15, 2021 13:47:45 GMT -5
With respect to Flush/DelSegment, it is dependent on what your program will be doing. If you are just placing a bunch of stuff on the GraphicBox once and that is it then simply issue the Flush command once after all of the drawing operations have been completed. Segments should be used when you plan on adding & removing chunks of drawn items or if you want to overwrite currently drawn and flushed objects.
{:0)
Brandon Parker
|
|