|
Rob - UniqueConstraints throw a ConstraintException when the constraint is broken. This provides more than enough info to work out what's been violated.
"WPF has many lovers. It's a veritable porn star!" - Josh Smith As Braveheart once said, "You can take our freedom but you'll never take our Hobnobs!" - Martin Hughes.
My blog | My articles | MoXAML PowerToys | Onyx
|
|
|
|
|
i m getting an error-Load report failed. when we run the report,how to remove it.
|
|
|
|
|
Hi everyone.
I am having some trouble with GDI plus. At my work, we have several artists creating animations with an application we made with C# (frames are rendered with GDI+'s Graphics). Recently, there have been several issues between artists and developers trying to open the same animation (therefore, invoking the drawing of them).
Some of the artists use Windows 7. When they upload the image of a frame, it works fine. On the developer side, some of us use VMware or crappier PCs. We open the animation the artist made, and a "System.OutOfMemoryException" is thrown. I looked at the code and it was the DrawImage code (with ImageAttributes). Strangely enough, this ONLY happens when drawing the images imported to the application with Windows 7. Even stranger, if I call the simpler version of DrawImage, it does not crash.
We then started to chase what was happening, and it appears Windows 7 adds some metadata to the images, which is causing GDI+ to crash on certain machines when drawing with image attributes. Using a PNG Stripper(http://www.steelbytes.com/?mid=30[^]) we ran the files uploaded to our application and would no longer get this message.
I have several questions:
1. Is this a known issue with GDI+?
2. Is there a way to prevent this bug (other than attaching the stripper as a batch tool before uploading the images, and other than using a regular DrawImage call)?
3. Has anyone else experienced this?
My specs:
- C# 2.0
- VS2005
- Microsoft .Net Framework 2.0
|
|
|
|
|
Hi,
I haven't experienced this myself, however I am aware GDI+ and .NET generate a rather silly error code or OOM Exception when something is "wrong" with the image format, see the MSDN documentation[^].
So what you would like to have is a GDI+ update that brings the non-Win7 machines up to Win7 level, however I don't know such update exists.
PS: you probably could automate the stripper tool in your workflow, using the .NET Process class, without resorting to batch files that is.
Luc Pattyn [Forum Guidelines] [My Articles]
DISCLAIMER: this message may have been modified by others; it may no longer reflect what I intended, and may contain bad advice; use at your own risk and with extreme care.
|
|
|
|
|
Yeah, thats going to be the last option i want to take. I am already doing soem batch processing on other files, so I already know how to include the stripper tool.
I would actually prefer to do the metadata strip from inside my code, and not call a separate process to do so.
Thanks for your help!
|
|
|
|
|
I am having a weird issue where i can build a form on my computer and everything looks fine at design and runtime. However when I install onto another machine the positions of the controls changes and the buttons etc move to different positions on there screen.
This happens even when using the default anchor position of top and left.
If i set the forms AutoSize property to True then for the most part it fixes the issue on most machines, but not always.
I am using Visual Studio 2008 Team with .NET 3.5 SP1 (VB)
Thanks for any help
--
"Keyboard not found. Press < F1 > to RESUME. "
Source unknown (appears in many common BIOSes as a real error message)
|
|
|
|
|
Three possible causes spring immediately to mind, all of which normally only cause small differences in control positions. So if you are experiencing large variations these are probably not the cause of your problem.
1) You are probably already aware that having different screen resolutions can cause slight movement in controls.
2) Also having different DPI settings can do the same.
3) One computer having Large Fonts enabled and one not, sometimes causes weird effects.
Henry Minute
Do not read medical books! You could die of a misprint. - Mark Twain
Girl: (staring) "Why do you need an icy cucumber?"
“I want to report a fraud. The government is lying to us all.”
|
|
|
|
|
Hi
I want to search Data in DatagridView on Keypress Event. Like If i press any key then the data starts with that latter should be selected one by one for the selected cell in selected column.
So How can I do it?
Thanks in advance
|
|
|
|
|
how to create a crystal report in vb.net using ms access.i want a step by step process to create a report using MS ACCESS
|
|
|
|
|
|
|
|
Hello Guna,
Well I might not get your whole idea of gridview paging so please bear with me if I am wrong but there are options in the GridView properties that allows for paging right? and recalling to my limited knowledge I don't think there is any need to use the SqlSever ROW_Number() function.
This is my first time trying to give opinions and stuffs so sorry for any misguidance and lack of knowledge
|
|
|
|
|
You can set AllowPaging to true in your gridview, then under
the event PageIndexChanging for your gridview add a method that does something like:
protected void YourGridViewName(object sender, GridViewPageEventArgs e)
{
YourGridViewName.PageIndex = e.NewPageIndex;
YourGridViewName.DataBind();
}
|
|
|
|
|
Add html in gridview tag
<asp:gridview id="gdcomp" .........="" allow="" paging="True" pagesize="10">
Then
In Business layer:
Protected Sub gdcomp_PageIndexChanging(ByVal sender As Object, ByVal e As System.Web.UI.WebControls.GridViewPageEventArgs) Handles gdcomp.PageIndexChanging
gdcomp.PageIndex = e.NewPageIndex
End Sub
I hope this is helpful for u.
|
|
|
|
|
Below javascript locally working but after uploading on server not working even data is there in DB, I mean logically it should display but not.
imgCounter = 0;
ipCounter = 0;
setTimeout("updateImage()",500);
function updateImage()
{
//alert('enter updateImage');
var currentImageSrc = new Array();
//alert('Before Hidden');
var hiddenImage=document.getElementById("Hiddenid11").value
var hiddendata=document.getElementById("Hiddenid13").value
var hiddenTitle=document.getElementById("Hiddenid12").value
var AdvertiseMentId=document.getElementById("Hiddenid15").value
//alert('After Hidden');
//var currentImageSrc = new Array();
currentImageSrc=hiddenImage.split("||")
//alert('enter SPLIT');
var finddata = new Array()
finddata=hiddendata.split("||")
var ImageTitle = new Array()
ImageTitle=hiddenTitle.split("||")
var AddId = new Array()
AdvertiseMentId=AdvertiseMentId.split("||")
if(currentImageSrc.length > 1)
{
//alert('currentImageSrc enter updateImage');
var RotateDiv=document.getElementById("RotateDiv");
if(finddata[imgCounter]==1)
{
//alert("Inside");
//alert('Block if');
RotateDiv.style.display="block"
RotateDiv.innerHTML=currentImageSrc[imgCounter]
}
else
{
//alert('Block else');
RotateDiv.style.display="block"
RotateDiv.innerHTML="<IMG width='800' height='75' onclick='javascript:incCount("+AdvertiseMentId[imgCounter]+");' id='rotateImg' style='CURSOR: hand ; border:Solid 2px #000000;' alt='"+ImageTitle[imgCounter]+"' src='Images/ADD/"+currentImageSrc[imgCounter]+"'>";
}
imgCounter=imgCounter+1;
var TotalImages=document.getElementById("Hiddenid14");
if(imgCounter >= TotalImages.value)
{
imgCounter=0;
}
setTimeout("updateImage()",5000);
//alert('end updateImage');
}
}
thanks
You get the best out of others when you give the best of yourself.
|
|
|
|
|
A few points.
- Your code is javascript, but this forum is the .NET Framework. You stand less chance of getting an answer here than in, say, the web development forum.
- Putting "I need solution urgent" is just plain rude. You may not have noticed, but we are all volunteers here. If you need an answer so bloody urgently, pay for it.
- You've given no indication as to what's wrong with your code, and I'm not going to wade through it trying to figure it out.
- You should wrap your code in pre tags so it gets formatted properly.
"WPF has many lovers. It's a veritable porn star!" - Josh Smith As Braveheart once said, "You can take our freedom but you'll never take our Hobnobs!" - Martin Hughes.
My blog | My articles | MoXAML PowerToys | Onyx
|
|
|
|
|
I have a solution which works on a sql database . In my solution I have a SqlServerProject which attaches the database file to local server by right-clicking on it and click Deploy and a SetupProject and other projects . I want to install this solution on a target computer and I want to know what to do with my SetupProject to do the Deployment task of my SqlServerProject?
|
|
|
|
|
Stop cross posting and maybe someone will offer suggestions
only two letters away from being an asset
|
|
|
|
|
What do you mean by that?!
|
|
|
|
|
He means that you should pick the most appropriate forum and stick with it. If you have a question in the right forum, then there's a chance that it will be answered properly. You might not get the full answer the first time, but as people contribute to the thread you get a better understanding and everybody benefits. If you have postings in multiple forums, there's less chance of that dialogue building up and everybody loses.
"WPF has many lovers. It's a veritable porn star!" - Josh Smith As Braveheart once said, "You can take our freedom but you'll never take our Hobnobs!" - Martin Hughes.
My blog | My articles | MoXAML PowerToys | Onyx
|
|
|
|
|
I've been away from .NET for a couple of years now, only using it now and then for small projects. Has anything been added for playing and manipulating audio? What I'm looking for is something that could be used as the basis for writing synthesizers and effects. I've done this with C#/.NET using Managed DirectX, but I don't think that MDX is supported any more. I later switched over to using P/Invoke and the Win32 Wave API.
I've looked at the System.Media namespace, but there's not enough there to do much more than simple wave file playback.
Is there anything in WPF? A cursory look at System.Windows.Media didn't turn up anything interesting beyond the MediaPlayer class.
Are we still in a position of having to roll our own audio libraries using P/Invoke?
|
|
|
|
|
Depending on what you want to do, and what kind of performance you need, there are a few options.
The easiest is using one of the managed wrappers for DirectShow or DirectX audio (DirectShow is no longer part of DirectX, and DirectX audio really now means XAudio2, which is replacing DirectSound).
The more complicated, but more efficient for performance, is to write your own manged <-> unmanaged interface layer, and use things like command batching and shared memory, since every call across the managed / unmanaged interface is a real performance killer.
There are three kinds of people in the world - those who can count and those who can't...
|
|
|
|
|
You may want to look at the libraries that come with XNA studio. Better multimedia support can be found in the gaming world....
"we must lose precision to make significant statements about complex systems."
-deKorvin on uncertainty
|
|
|
|
|
For my purpose there are some .NET classes that almost but not quite right and can't be fixed by subclassing and overloading.
I just downloaded the .NET Framework source from MS Shared Source web site
http://referencesource.microsoft.com/netframework.aspx[^]
Now I wonder could I take some classes code from the library and reuse and taylor the code in my library?
It's not like I intend to replace the .NET Framework, I just want to write a difficult to write control. And base its code on an existing one is much easier and a good use of reference material, wouldn't it?
I'm not sure...
A train station is where the train stops. A bus station is where the bus stops. On my desk, I have a work station....
_________________________________________________________
My programs never have bugs, they just develop random features.
|
|
|
|