Welcome, Guest. Please login or register.
Did you miss your activation email?
September 05, 2010, 06:14:19 AM
 Code Cortex CommunityCode CortexVideo TutorialsError with video tutorial "Jumping in Head First"
Pages: [1]
Print
Author Topic: Error with video tutorial "Jumping in Head First"  (Read 2347 times)
eggy
Apprentice
*
Posts: 2


View Profile Email
« on: April 12, 2009, 01:02:45 AM »

Using Inventor Alpha 5 when I attempt to run the Image Program code included with Inventor after following along with the video tutorial I receive an error, please see attached image. Note that I did not modify any code within the ImageProgram.asm source file.
Logged
Neo
Administrator
Adventurer
*****
Posts: 26



View Profile WWW
« Reply #1 on: April 12, 2009, 09:55:25 AM »

Thanks so much for letting me know, since that's not good.  Sad  For some reason it thinks that WindowProc doesn't exist.  Does it still have a function named WindowProc in ImageProgram.asm or has it disappeared?

If it exists and it isn't being found, it's an error in updating the values of global variables.  You can double-check this by renaming WindowProc to, let's say WindowProc2, and renaming it back to WindowProc.  If the global variable then finds WindowProc, it just wasn't updated properly, so that should probably be easy to fix once I figure out why it's not updating in the first place.

If it doesn't exist, it's an error in the initial parsing of files.  That's probably an easier error to find, though more surprising, because loading should happen exactly the same way every time the files are loaded.

Could you let me know whether WindowProc exists, and if it does, whether the renaming trick worked?  Thanks a ton, and sorry about the errors!
Logged

Become one with the code.
eggy
Apprentice
*
Posts: 2


View Profile Email
« Reply #2 on: April 12, 2009, 05:57:59 PM »

It seems that the WindowProc function does exist and that renaming trick worked.
Logged
Neo
Administrator
Adventurer
*****
Posts: 26



View Profile WWW
« Reply #3 on: April 13, 2009, 11:06:09 AM »

Awesome, thanks.  Grin
I'll hunt down the case that isn't updating global variables properly, and the hope is that the updating will be significantly better with the changes I'll be making for alpha 6.  For example, I'll have it reevaluate anything with errors when compiling (there are a few other cases I know of where this is a problem by design), and on changes, only notify things that make sense to notify when it makes sense to notify them.

I have another program built with Inventor IDE where renaming something global actually lags very badly because it's notifying absolutely everything on every keystroke.  There's also the 365,229-line assembling test case that takes 10 minutes to load, over half of which is just notifying the whole file of the couple dozen line labels, hehe.  Wink
Logged

Become one with the code.
Neo
Administrator
Adventurer
*****
Posts: 26



View Profile WWW
« Reply #4 on: April 27, 2009, 11:45:06 AM »

I've now fixed the updating of variables when things get added or removed, though I'm still not entirely sure what caused the case you experienced.  I'll have an updated release out once I get support for operating system code fixed up... hopefully in the next week or so, since I need it for my honours project.  Thanks for the help!   Grin
Logged

Become one with the code.
Pages: [1]
Print
Jump to: