Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Calendar
  New Posts New Posts RSS Feed - Crash - Set a large size "Subject" to event
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Crash - Set a large size "Subject" to event

 Post Reply Post Reply
Author
Message
amitb View Drop Down
Groupie
Groupie
Avatar

Joined: 13 September 2006
Status: Offline
Points: 50
Post Options Post Options   Thanks (0) Thanks(0)   Quote amitb Quote  Post ReplyReply Direct Link To This Post Topic: Crash - Set a large size "Subject" to event
    Posted: 22 January 2009 at 5:35am
Hello,

I am facing a crash after an assert when i try to set a event subject with a long size (say 500 characters )

If i try to reproduce the issue in Calendar Sample, I am facing with the same
problem.

However i want to set it to a limit of 50.
How to do that ??

See the following image when it crashed after the assert in sample


Back to Top
mdoubson View Drop Down
Senior Member
Senior Member
Avatar

Joined: 17 November 2008
Status: Offline
Points: 1705
Post Options Post Options   Thanks (0) Thanks(0)   Quote mdoubson Quote  Post ReplyReply Direct Link To This Post Posted: 22 January 2009 at 8:59am
Sorry - can't reproduce in release 13 - tried > 1K string with spaces inside.
Back to Top
mdoubson View Drop Down
Senior Member
Senior Member
Avatar

Joined: 17 November 2008
Status: Offline
Points: 1705
Post Options Post Options   Thanks (0) Thanks(0)   Quote mdoubson Quote  Post ReplyReply Direct Link To This Post Posted: 22 January 2009 at 3:53pm
btw - may be you use database backend and this is db exception on field size? You should use some app level handler to prevent such situation as core don't know about your app level restriction. This is why my sample with XML file-based db working without problem. 
Back to Top
amitb View Drop Down
Groupie
Groupie
Avatar

Joined: 13 September 2006
Status: Offline
Points: 50
Post Options Post Options   Thanks (0) Thanks(0)   Quote amitb Quote  Post ReplyReply Direct Link To This Post Posted: 23 January 2009 at 1:52am
Hello Mark,

It is not a error on DB side.

What i want to know is that, is there any way where i can restrict the user to set a event subject to 50 characters.????


Back to Top
mdoubson View Drop Down
Senior Member
Senior Member
Avatar

Joined: 17 November 2008
Status: Offline
Points: 1705
Post Options Post Options   Thanks (0) Thanks(0)   Quote mdoubson Quote  Post ReplyReply Direct Link To This Post Posted: 23 January 2009 at 10:06am
 
YES - in Release 13 - in term of visualisation in timeline mode user will have control on event pixel size (default 100) but db will store full string and you can see and edit it in event dialog.
 
If you sure this is not db problem - means it already covered in release 13 and this is why I could not reproduce it.
 
See on picture very long string in event properties dialog (> 1K)
Back to Top
amitb View Drop Down
Groupie
Groupie
Avatar

Joined: 13 September 2006
Status: Offline
Points: 50
Post Options Post Options   Thanks (0) Thanks(0)   Quote amitb Quote  Post ReplyReply Direct Link To This Post Posted: 28 January 2009 at 3:55am
Ok,
When can we expect the release 13 to be out to us ????
Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.04
Copyright ©2001-2021 Web Wiz Ltd.

This page was generated in 0.141 seconds.