Active TopicsActive Topics  Display List of Forum MembersMemberlist  Search The ForumSearch  HelpHelp
  RegisterRegister  LoginLogin
Klik! SizeLib.Net
 Klik! Software Forum : Klik! SizeLib.Net
Subject Topic: the annoying License Warning..... Post ReplyPost New Topic
Author
Message << Prev Topic | Next Topic >>
jetxu
Newbie
Newbie


Joined: March 27 2008
Posts: 3
Posted: March 27 2008 at 2:41pm | IP Logged Quote jetxu

hi, dear support:

i am evaluating the Klik SizerLib for my project. i always get the annoying license warning from time to time.

for the sample application or new created application, the SizerLib works fine. but when i apply this tool to our project, during the runtime, after the annoying license warning msgbox pop up, it crashes !!! our application catches the error as "Object reference not set to an instance of an object".

our application is very large, contains many solutions and many projects. 

could you guys just set one license warning at the start-up instead of popping up from time to time?

if the evaluation passes, we will buy this product.

 

Back to Top View jetxu's Profile Search for other posts by jetxu
 
Klik! Support
Admin Group
Admin Group
Avatar

Joined: October 01 2003
Location: Turkey
Posts: 313
Posted: March 27 2008 at 2:47pm | IP Logged Quote Klik! Support

Hello,

Thank you for your evaluation first of all...

Our evaluation dialog should popup only once when you start your application and no more. We have carefully adjusted it so it minimally disturbs the evaluator during the evaluation process...

And when we come to the error, this should not occur, at least should not be caused by our component. Could you please provide us details about this exception, the one provided in the details of the exception dialog?

Looking forward to hear from you...



__________________
Best Regards,

Klik! Support Team
Back to Top View Klik! Support's Profile Search for other posts by Klik! Support
 
jetxu
Newbie
Newbie


Joined: March 27 2008
Posts: 3
Posted: March 27 2008 at 3:35pm | IP Logged Quote jetxu

seems some incompatibility with our project:

i got these errors info:

************* Exception Text **************
System.NullReferenceException: Object reference not set to an instance of an object.
   at Klik.Windows.Forms.SizeLib.v3.SLControl.CalculateScales()
   at Klik.Windows.Forms.SizeLib.v3.SLResizer.ResizeControls(Objec t sender, EventArgs e)
   at System.Windows.Forms.Control.OnResize(EventArgs e)
   at System.Windows.Forms.Form.OnResize(EventArgs e)
   at System.Windows.Forms.Control.OnSizeChanged(EventArgs e)
   at System.Windows.Forms.Control.UpdateBounds(Int32 x, Int32 y, Int32 width, Int32 height, Int32 clientWidth, Int32 clientHeight)
   at System.Windows.Forms.Control.UpdateBounds(Int32 x, Int32 y, Int32 width, Int32 height)
   at System.Windows.Forms.Control.SetBoundsCore(Int32 x, Int32 y, Int32 width, Int32 height, BoundsSpecified specified)
   at System.Windows.Forms.Form.SetBoundsCore(Int32 x, Int32 y, Int32 width, Int32 height, BoundsSpecified specified)
   at System.Windows.Forms.Control.SetBounds(Int32 x, Int32 y, Int32 width, Int32 height, BoundsSpecified specified)
   at System.Windows.Forms.Control.set_Size(Size value)
   at System.Windows.Forms.Form.set_Size(Size value)
   at MainForm_SizeChanged(Object sender, EventArgs e) in 

   at System.Windows.Forms.Control.OnSizeChanged(EventArgs e)
   at System.Windows.Forms.Control.UpdateBounds(Int32 x, Int32 y, Int32 width, Int32 height, Int32 clientWidth, Int32 clientHeight)
   at System.Windows.Forms.Control.UpdateBounds()
   at System.Windows.Forms.Control.WndProc(Message& m)
   at System.Windows.Forms.ScrollableControl.WndProc(Message& m)
   at System.Windows.Forms.ContainerControl.WndProc(Message& m)
   at System.Windows.Forms.Form.WndProc(Message& m)
   at MainForm.WndProc(Message& message) in    at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(M essage& m)
   at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Mes sage& m)
   at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)

Back to Top View jetxu's Profile Search for other posts by jetxu
 
jetxu
Newbie
Newbie


Joined: March 27 2008
Posts: 3
Posted: March 27 2008 at 4:11pm | IP Logged Quote jetxu

in last post, the MDIForm's size is changed when changing the MainFrame Window's size, got the above error.

 

and, if call  MDIForm.Show(), get the following:

See the end of this message for details on invoking
just-in-time (JIT) debugging instead of this dialog box.

************** Exception Text **************
System.NullReferenceException: Object reference not set to an instance of an object.
   at Klik.Windows.Forms.SizeLib.v3.SLControl.CalculateScales()
   at Klik.Windows.Forms.SizeLib.v3.SLResizer.ResizeControls(Objec t sender, EventArgs e)
   at System.Windows.Forms.Control.OnResize(EventArgs e)
   at System.Windows.Forms.Form.OnResize(EventArgs e)
   at System.Windows.Forms.Control.OnSizeChanged(EventArgs e)
   at System.Windows.Forms.Control.UpdateBounds(Int32 x, Int32 y, Int32 width, Int32 height, Int32 clientWidth, Int32 clientHeight)
   at System.Windows.Forms.Control.UpdateBounds()
   at System.Windows.Forms.Control.WmWindowPosChanged(Message& m)
   at System.Windows.Forms.Control.WndProc(Message& m)
   at System.Windows.Forms.ScrollableControl.WndProc(Message& m)
   at System.Windows.Forms.ContainerControl.WndProc(Message& m)
   at System.Windows.Forms.Form.WndProc(Message& m)
   at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(M essage& m)
   at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Mes sage& m)
   at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)


************** Loaded Assemblies **************
mscorlib
    Assembly Version: 2.0.0.0
    Win32 Version: 2.0.50727.1433 (REDBITS.050727-1400)
    CodeBase: file:///C:/WINNT/Microsoft.NET/Framework/v2.0.50727/mscorlib .dll
----------------------------------------

Back to Top View jetxu's Profile Search for other posts by jetxu
 
Klik! Support
Admin Group
Admin Group
Avatar

Joined: October 01 2003
Location: Turkey
Posts: 313
Posted: March 28 2008 at 2:45am | IP Logged Quote Klik! Support

Hello There,

Thank you very much for the info you provided...

The exception source, CalculateScales(), is a fucntion with a few lines of code and in there the only object used is a reference to is MainContainer, which can be a form or a usercontrol depending on where you did place the SLResizer.

We are not sure how you are using SLResizer but in design-time, dropping our component onto a form/usercontrol should automatically set the values for MainContainer in Windows Form Designer generated code section. Could you please tell us about how you are using the component?

We also would like to give you a solution. Open the designer generated code section in your form/usercontrol, locate the endinit call of slresizer component and before this call, place these codes :

this.slResizer1.MainContainer = this;

this.slResizer1.MainContainerStartSize = new System.Drawing.Size(520, 278);

This should correct the object reference error. If you can provide us more info on how you use the control (dropping onto the form, creating an instance in code, etc.), that would be very helpfull to locate the exact cause of it.

Looking forward to hear from you...



__________________
Best Regards,

Klik! Support Team
Back to Top View Klik! Support's Profile Search for other posts by Klik! Support
 
marcusmccallum
Newbie
Newbie


Joined: September 22 2009
Location: United Kingdom
Posts: 4
Posted: September 24 2009 at 9:02am | IP Logged Quote marcusmccallum

Hi,

I am getting the same message (roughly) as jetxu.

What I have is a form, with a tabcontrol with 2 pages on the second tabpage there is a second tabcontrol that I add tabpages to using a button (add tabpage). The tabpages are added as a class, I have put a resizer in the class as well (altho' when it is not there the error still occurs). Now I can add a tabpage and it looks good, but once I try to resize I get the same error as above. I looked at the endinit and made sure the section you are referring to above is there and it is. But I still get the object reference error. Any ideas?

 

Ta

M

 

Back to Top View marcusmccallum's Profile Search for other posts by marcusmccallum
 
Klik! Support
Admin Group
Admin Group
Avatar

Joined: October 01 2003
Location: Turkey
Posts: 313
Posted: September 25 2009 at 12:28am | IP Logged Quote Klik! Support

Hello There,

Is there any possibility you can send us a sample project to reproduce the issue you mentioned?



__________________
Best Regards,

Klik! Support Team
Back to Top View Klik! Support's Profile Search for other posts by Klik! Support
 
marcusmccallum
Newbie
Newbie


Joined: September 22 2009
Location: United Kingdom
Posts: 4
Posted: September 25 2009 at 1:55am | IP Logged Quote marcusmccallum

Hi,

I am sending a sample project to

'support@kliksoft.com'

Regards

M

Back to Top View marcusmccallum's Profile Search for other posts by marcusmccallum
 

If you wish to post a reply to this topic you must first login
If you are not already registered you must first register

  Post ReplyPost New Topic
Printable version Printable version

Forum Jump
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot delete your posts in this forum
You cannot edit your posts in this forum
You cannot create polls in this forum
You cannot vote in polls in this forum

Powered by Web Wiz Forums version 7.6
Copyright ©2001-2003 Web Wiz Guide

This page was generated in 0.1875 seconds.