Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

AppGameKit Classic Chat / [Tier 2]: Having problems with 108.23b, windows template.

Author
Message
ThrOtherJoJo
12
Years of Service
User Offline
Joined: 24th Mar 2012
Location: California
Posted: 29th Jul 2014 06:33 Edited at: 29th Jul 2014 06:45
After copying the necessary template files over, setting the VS2008 environment to the correct lib folder, etc, etc, when I go to build I'm getting this error in the vsprintf.c file.

The error points here in the file at line 137:


The error is: Unhandled exception at 0x75a7812f in Template.exe: Microsoft C++ exception: int at memory location 0x0020ea44..

I know the memory location will be different so...

Prove Your Worthiness
KG2Entertainment.com
bjadams
AGK Backer
16
Years of Service
User Offline
Joined: 29th Mar 2008
Location:
Posted: 30th Jul 2014 14:21
why do agk t2 templates never seem to work?
Paul Johnston
TGC Developer
21
Years of Service
User Offline
Joined: 16th Nov 2002
Location: United Kingdom
Posted: 30th Jul 2014 16:24
I can't replicate the error here. vsprintf.c is not part of AppGameKit, is there a call stack associated with the error?
ThrOtherJoJo
12
Years of Service
User Offline
Joined: 24th Mar 2012
Location: California
Posted: 31st Jul 2014 04:04 Edited at: 31st Jul 2014 08:20
I have attached a screenshot of the environment with stack shown.

I'm getting this error on the bare bones project that was provided.

Prove Your Worthiness
KG2Entertainment.com

Attachments

Login to view attachments
Paul Johnston
TGC Developer
21
Years of Service
User Offline
Joined: 16th Nov 2002
Location: United Kingdom
Posted: 31st Jul 2014 16:15
I just tried the VS2008 template in debug mode and didn't get any exceptions, so I'm not sure what's going on here. What is the value of the "format" variable? You mentioned you copied the template files, what happens if you run them from the original install location?
ThrOtherJoJo
12
Years of Service
User Offline
Joined: 24th Mar 2012
Location: California
Posted: 1st Aug 2014 03:43 Edited at: 1st Aug 2014 03:45
Thanks, Paul for your response.
The format variable just says,
Quote: "<bad ptr> CXX0030: Error: expression cannot be evaluated
"


When running the template from the original install location a dialog box pop ups talking about 'Inconsistent Line Endings'.

The full message is :
Quote: "
The line ending in the following file are not consistent. Do you want to normalize the line endings?

c:\Program Files\The Game Creators\AGK10823b\IDE\apps\template_windows\template.cpp

Line ending:
Windows(CR LF) this part is in a dropdown box
"


I chose Yes.


Next, I have to comment out some portions of code in the Core.cpp file because of compile errors. I always do this since the beginning of using AGK.



...after that it compiles but then I get the error message from vsprintf.c. This time I ran it from the install location and the format variable had something in it. I've attached a screenshot.

But when I ran the program a second time the format variable showed <Bad Ptr>.

Prove Your Worthiness
KG2Entertainment.com

Attachments

Login to view attachments
Paul Johnston
TGC Developer
21
Years of Service
User Offline
Joined: 16th Nov 2002
Location: United Kingdom
Posted: 1st Aug 2014 17:14
Ok, my mistake. My tests were happening on the version 2 template which does work. I managed to replicate the error on the 108.23b version when in debug mode. I must have changed something in between that resolved this, I'll fix it in the earlier version and release an update. This is one reason why I don't like trying to support two different versions at the same time!

However you shouldn't be getting any compiler errors in Core.cpp, particularly as those lines are just definitions. It could be that you are using a different version of the Windows SDK, I'm using 7.1 found here
ThrOtherJoJo
12
Years of Service
User Offline
Joined: 24th Mar 2012
Location: California
Posted: 1st Aug 2014 18:27
Quote: "This is one reason why I don't like trying to support two different versions at the same time!"


I hear ya.

And I will make sure I do that SDK update.

Thanks for your time!

Prove Your Worthiness
KG2Entertainment.com
ThrOtherJoJo
12
Years of Service
User Offline
Joined: 24th Mar 2012
Location: California
Posted: 2nd Aug 2014 06:00 Edited at: 2nd Aug 2014 06:01
...108.24 works like a charm.

Prove Your Worthiness
KG2Entertainment.com

Login to post a reply

Server time is: 2024-04-26 19:25:33
Your offset time is: 2024-04-26 19:25:33