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 / A weird problem with creating files...

Author
Message
sovr
14
Years of Service
User Offline
Joined: 2nd Jan 2010
Location: USA
Posted: 12th Aug 2014 00:07
Hello everyone! I am having an issue that I am either stupid and can not see the small error or agk doing something weird. Here is the code I have for the program:



When I send a network message to this application with get_app as the first message (along with more messages) it goes through the code under the:



statement. When I hit the:



it does not produce the file at all! even when the title is populated, and the code array is also populated. I have no clue at this point why this is happening! I do know that a C# program looks at file after it is produced, which would be the closest reason why it does not work. I figure I would ask here for any ideas, thank you in advance!

website: http://worksimpleintelligen.wix.com/parkers-apps
facebook: https://www.facebook.com/ParkersApps
youtube: http://www.youtube.com/user/mrsovr
Marl
12
Years of Service
User Offline
Joined: 19th Nov 2011
Location: Bradford, UK
Posted: 12th Aug 2014 03:27
One thing I noticed is that you have the line;

before cmd_recv$ has been initialized, which could lead to unpredictable results.

As a first step at tracing the fault, I would suggest logging all messages to a file to check that what is received is what is expected.
sovr
14
Years of Service
User Offline
Joined: 2nd Jan 2010
Location: USA
Posted: 12th Aug 2014 03:44
ok I will try to log the program, if I can't figure it out I will do it in tier 2. Thank you!

website: http://worksimpleintelligen.wix.com/parkers-apps
facebook: https://www.facebook.com/ParkersApps
youtube: http://www.youtube.com/user/mrsovr
mr_d
DBPro Tool Maker
17
Years of Service
User Offline
Joined: 26th Mar 2007
Location: Somewhere In Australia
Posted: 12th Aug 2014 12:02
hi sovr,
my comment on what you have is that title doesn't seem to be assigned a value anywhere, so when you say
Quote: "it does not produce the file at all! even when the title is populated"
I assume you mean you hard-coded a value before trying to create the file.
anyway, if this is so, then my only other comment is that maybe it has actually created the file, but it's not where you expect it to be - I've found this myself before where files are created under the local profile of the logged in user (assuming this is for windows).

Login to post a reply

Server time is: 2024-05-13 12:56:00
Your offset time is: 2024-05-13 12:56:00