Welcome Guest! You need to login or register to make posts.

Notification

Icon
Error

Options
Go to last post Go to first unread
dbriers  
#1 Posted : Friday, April 1, 2005 3:16:00 AM(UTC)
dbriers

Rank: Member

Groups: Member
Joined: 3/31/2005(UTC)
Posts: 3

Hi there...

This morning we moved a site into production using the .NET control. Everything seemed to be working fine, but after a few changes (bugfixes, etc), the control has suddenly stopped working completely...

It is now giving me the following error:
Code:
Object reference not set to an instance of an object. 
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code. 

Exception Details: System.NullReferenceException: Object reference not set to an instance of an object.

Source Error: 

An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.  

Stack Trace: 


[NullReferenceException: Object reference not set to an instance of an object.]
   Aurigma.GraphicsMill.SyncHandler.OnThreadStopped(Exception exception) +81
   Aurigma.GraphicsMill.SyncHandler.OnThreadStoppedHandler(Object sender, ErrorEventArgs e) +26
   Aurigma.GraphicsMill.Thread.raise_Stopped(Object i1, ErrorEventArgs i2) +34
   Aurigma.GraphicsMill.Thread.TimerEventProcessor() +524
   Aurigma.GraphicsMill.Thread.ChangeActivityStatus(ActivityStatus status) +76
   Aurigma.GraphicsMill.Thread.EntryPoint() +674
   Aurigma.GraphicsMill.Thread.Start() +312
   Aurigma.GraphicsMill.Codecs.JpegWriter._AddFrame(Frame frame) +226
   Aurigma.GraphicsMill.Codecs.FormatWriter.AddFrame(IFrame frame) +463
   Aurigma.GraphicsMill.Bitmap.Save(String fileName, IEncoderOptions options) +264
   Aurigma.GraphicsMill.WebControls.BitmapViewer.SavePreviewImage() +339
   Aurigma.GraphicsMill.WebControls.BitmapViewer.Render(HtmlTextWriter output) +1703
   System.Web.UI.Control.RenderControl(HtmlTextWriter writer) +243
   System.Web.UI.Control.RenderChildren(HtmlTextWriter writer) +72
   System.Web.UI.HtmlControls.HtmlForm.RenderChildren(HtmlTextWriter writer) +44
   System.Web.UI.HtmlControls.HtmlForm.Render(HtmlTextWriter output) +261
   System.Web.UI.Control.RenderControl(HtmlTextWriter writer) +243
   System.Web.UI.Control.RenderChildren(HtmlTextWriter writer) +72
   System.Web.UI.Control.Render(HtmlTextWriter writer) +7
   System.Web.UI.Control.RenderControl(HtmlTextWriter writer) +243
   System.Web.UI.Page.ProcessRequestMain() +1926


I know it is not a source code issue, as exactly the same code works on my development environment. Any ideas would be much appreciated, as currently users are not able to use the site...

Thanks and regards
David Briers

Edited by user Monday, December 24, 2007 4:00:46 PM(UTC)  | Reason: Not specified

dbriers  
#2 Posted : Friday, April 1, 2005 5:04:00 AM(UTC)
dbriers

Rank: Member

Groups: Member
Joined: 3/31/2005(UTC)
Posts: 3

Hi - me again...

Just wanted to say that I finally discovered what the problem was...

I had set the controls PreviewImageResizeRatio to be 1 - this seemed to work perfectly on development, but as soon as I moved it into production (where we are pulling the images from another server via a UNC path), I guess it couldn't load the images in time, and thus gave the aboe error...

I changed this value to 2, and now everything seems to be working perfectly...

Sorry to bother you needlessly, but perhaps this post can assist someone else who may be having the same problem as I was...

Regards
David
Fedor  
#3 Posted : Friday, April 1, 2005 5:06:00 AM(UTC)
Fedor

Rank: Advanced Member

Groups: Member, Administration, Moderator
Joined: 7/28/2003(UTC)
Posts: 1,660

Thanks: 5 times
Was thanked: 76 time(s) in 74 post(s)
Hello David,

I am happy that you have found workaround. What is your development and production machine OSes?
Best regards,
Fedor Skvortsov
dbriers  
#4 Posted : Wednesday, April 6, 2005 12:19:00 AM(UTC)
dbriers

Rank: Member

Groups: Member
Joined: 3/31/2005(UTC)
Posts: 3

Hi - sorry for replying so late...

The OS for the dev machine is Windows 2000 SP 4
The OS for the prod machine is the same, but the setup is a little more complicated (load balanced, with a DB server (Windows Server 2003), and two web servers (both Windows 2000)

However, another issue has cropped up - not quite as daunting but hopefully something which you folks will be able to help me with quite quickly...

In my app I have four radiobuttons to resize the image to (10%), (25%), (50%), (100%) depending on which button is pressed...

However, I found that sometimes, on trying to resize to 10% (especially after having enlarged the image from the default 25% to 50% or 100%), the following error is thrown...

Argument 'CropRectangle' is out of range

The source code for the radio button event is as follows

Code:
Private Sub rblZoom_SelectedIndexChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles rblZoom.SelectedIndexChanged
        If rblZoom.SelectedItem.Value <= imgIllustration.MaxZoom And rblZoom.SelectedItem.Value >= imgIllustration.MinZoom Then
            Try
                imgIllustration.Zoom = rblZoom.SelectedItem.Value
            Catch exc As Exception
                Response.Write(exc)
            End Try
        End If
End Sub


The values for the button are (Text 10%, value = 0.1) (Text 25%, value=0.25) etc...

Any ideas as to why I am sporadically getting this error would be much appreciated

Thanks
David

Edited by user Monday, December 24, 2007 4:01:02 PM(UTC)  | Reason: Not specified

Fedor  
#5 Posted : Thursday, April 7, 2005 12:24:00 PM(UTC)
Fedor

Rank: Advanced Member

Groups: Member, Administration, Moderator
Joined: 7/28/2003(UTC)
Posts: 1,660

Thanks: 5 times
Was thanked: 76 time(s) in 74 post(s)
Hello David,

We confirm the bug. Graphics Mill 3.1 with this fix will be available on next week.

For workaround please try to change zoom in client side code:

Code:
<script language="javascript">
function rblZoom_Change(){
    var imgIllustration=document.getElementById("<%=imgIllustration.ClientID%>"); 
    imgIllustration.setZoom(this.options[this.selectedIndex].value*1);
}        
</script>


<asp:DropDownList ID="rblZoom" ... onchange="rblZoom_Change();">>
...
</asp:DropDownList>

Edited by user Monday, December 24, 2007 4:01:15 PM(UTC)  | Reason: Not specified

Best regards,
Fedor Skvortsov
Users browsing this topic
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.