CGDevTools Forum

Welcome to the Official CGDevTools Support Community Forums.

New IWCGJQMobile application with usersession vars

General discussion

by kmmagic » 07 Mar 2018 18:28

Hello,
Building my first IWCGJQ Mobile Test/Learning application based on JQMobileDemoIW14 and I must be missing something.

In my other IWCGJQ Web Applications where I use CGDevtools components exclusively, I access usersession objects and variables at will.

In my IWCGJQ Mobile Test/Learning application I cannot seem to access usersession objects and variables the same way.

For example in the design UI I can specifiy a usersession variable for a label caption like
usersession.testvariable without any complaint from the IDE. The IDE sees that the usersession's unit in in the uses and I can see all the objects and variables in code completion. But when I compile and run the application and click on a control where I'm trying to assign this variable I get an exception raised: access violation at 0x0040b066: write of address 0x00000084.

Just to be sure that I didn't build the application structure incorrectly, I took a copy of the JQMobileDemoIW14 demo app and added one string variable to the usersession unit and tried to access it in the main form and I got the same type or error message.

Whats different about building a mobie IW app than a regular IW Web Application?
kmmagic
 
Posts: 43
Joined: 28 Dec 2016 11:54

by Jorge Sousa » 07 Mar 2018 18:55

Hi

Nothing its different with regard to the UserSession,

Please send us your demo copy, so that we can better understand.

tia
Best Regards
CGDevTools Develop / Support Team
Home Page: http://www.cgdevtools.com
Jorge Sousa
 
Posts: 4261
Joined: 17 May 2012 09:58

by kmmagic » 07 Mar 2018 19:29

Hey Jorge,

Thanks for the quick response.

I'm trying to upload a zipped up project for you to look at but It doesn't seem to be going through.

I'll try again.

Regards

Kevin
kmmagic
 
Posts: 43
Joined: 28 Dec 2016 11:54

by kmmagic » 08 Mar 2018 14:33

Hi Jorge,
I pushed up a zip file of the demo project with a change that demonstrates the error. I can't see if you received it.

Pls let me know.

Kevin
kmmagic
 
Posts: 43
Joined: 28 Dec 2016 11:54

by Jorge Sousa » 08 Mar 2018 15:27

Hi

No we didn't receive it, where did you send to?

You can use Upload attachment in this forum or send by email to support at cgdevtools dot com
Best Regards
CGDevTools Develop / Support Team
Home Page: http://www.cgdevtools.com
Jorge Sousa
 
Posts: 4261
Joined: 17 May 2012 09:58

by kmmagic » 08 Mar 2018 16:06

Please review line 57 in Main.pas
kmmagic
 
Posts: 43
Joined: 28 Dec 2016 11:54

by kmmagic » 08 Mar 2018 16:10

Cannot upload the file through the forum. I emailed to support@cgdevtools.com
kmmagic
 
Posts: 43
Joined: 28 Dec 2016 11:54

by Jorge Sousa » 08 Mar 2018 17:02

Ok, thanks

We will replay asawc
Best Regards
CGDevTools Develop / Support Team
Home Page: http://www.cgdevtools.com
Jorge Sousa
 
Posts: 4261
Joined: 17 May 2012 09:58

by Alexander Bulei » 09 Mar 2018 10:38

Hi kmmagic,

The access violation caused because the UserSession is nil.
Please check your ServerController, and assign the OnNewSession event (IWServerControllerBaseNewSession).

Best Regards.
Group: Developers | Support Team

  • info [at] cgdevtools.com - General information
  • sales [at] cgdevtools.com - Sales department
  • support [at] cgdevtools.com - Product and Technical Support
User avatar
Alexander Bulei
Site Admin
 
Posts: 3635
Joined: 15 May 2012 08:52
Location: Mealhada, Portugal

by kmmagic » 10 Mar 2018 18:56

Thank you Alexander. I figured something got dropped while adapting the demo.
kmmagic
 
Posts: 43
Joined: 28 Dec 2016 11:54


Return to General

cron

Who is online

Users browsing this forum: No registered users and 1 guest

Contact Us.