IRC Networks
Irc Logs Stats
Start date: 2007-09-27 02:48:27
Last update: 2008-10-24 20:19:38
Channels: 41
Logged Lines: 6230436
Size: 1825.68 MB
Powered by
Channel Info
Network: freenodeChannel: #csharp |
Search in www.irclog.org
Log from #csharp at freenode 2006-07-31
[17:21]<rwyfcygs>He's not using it ; the .NET stuff is
[17:21]<gjrvcxnne>oh...
[17:21]<svlnvnz>i set the picturebox.image = mybitmap
[17:21]<svlnvnz>and onpaint the framework try to draw it, but fail
[17:22]<gjrvcxnne>stpeter: can you pastebin the code you use to get the bitmap?
[17:22]<rwyfcygs>I don't suppose it's a malformed image is it?
[17:22]<gjrvcxnne>that's what i'm thinking
[17:22]<svlnvnz>yes seems i set an invalid buffer for the bitmap
[17:22]<svlnvnz>but only on 2003 have problems
[17:22]<gjrvcxnne>it might be almost fine...but might have a property that's off that would be used on win2k3
[17:22]<rwyfcygs>Which processor is w2k3 running on?
[17:22]<rwyfcygs>AMD64?
[17:23]<svlnvnz>and anyway i .Clone() the original bitmap so i don't use any strange protected memory from the system
[17:23]<svlnvnz>a simple P4
[17:23]<rwyfcygs>There goes my "NX BIT" theory
[17:23]<svlnvnz>NX BIT?
[17:24]<rwyfcygs>Not eXecute
[17:24]<svlnvnz>it's something i can disable?
[17:24]<svlnvnz>:)
[17:24]<rwyfcygs>Allows memory to be marked as data, prevents buffer overruns by not allowing code from that region to run.
[17:24]<rwyfcygs>P4 has no NX bit
[17:24]<dnn2nd>awilkins: XmlDocument has not a way to set the indenting?
[17:25]<rwyfcygs>meeby : XmlDocument is an object model. It has no indenting. I'm not sure if the XML property allows you to set it.
[17:25]<gjrvcxnne>awilkins: newer P4's do have a NX bit
[17:25]<gjrvcxnne>lol... it's also now called DEP
[17:25]<dnn2nd>the EMT64 ones have it
[17:25]<gjrvcxnne>(DEP is the general term for it)
[17:25]<svlnvnz>.Clone() on bitmaps copy the bitmap data? or create a new bitmap that points always to the same pixels data?
[17:26]<rwyfcygs>Ah well, DEP will only get triggered by malformed image data...
[17:26]<rwyfcygs>Dunno (pokes around in Bitmap class)
[17:26]<svlnvnz>the memory of a bitmap doesn't need to be executed
[17:26]<svlnvnz>i think :)
[17:26]<gjrvcxnne>stpeter: should create a copy for everything... but is something in the original is screwed, the copy should be as well
[17:27]<rwyfcygs>Guess what, .Clone() calls the gdiplus.dll Clone routine :-(
[17:27]<rwyfcygs>Could be doing anything in there.
[17:27]<rwyfcygs>Try it with a fresh shiny new bimap that you drew yourself with a few Graphics calls.
[17:28]<svlnvnz>http://www.everfall.com/paste/id.php?7s9uhpntb5l6
[17:28]<gjrvcxnne>yeah... that's a good idea
[17:28]<svlnvnz>like this?
[17:29]<gjrvcxnne>sure
[17:31]<svlnvnz>ehm i'm getting the exception with this code :(
[17:31]<rwyfcygs>At least we can rule out wonky bitmathen
[17:31]<gjrvcxnne>then it's something somewhere else i guess
[17:31]<rwyfcygs>*bitmap then (low-bandwidth connection and poor typing)
[17:32]<rwyfcygs>Aha. is this code on the same thread as the form?
[17:32]<gjrvcxnne>same exact exception right??
[17:32]<svlnvnz>yes
[17:32]<rwyfcygs>The whole "COULD BE FROM FOREIGN THREAD" comment is a dewad giveaaway.
[17:33]<svlnvnz>no the callback is called in the directshow thread
[17:33]<rwyfcygs>That could be the problem
[17:33]<hzzzd>4 stpeter : you can turn on highlights by using combobox and set your code language - for example:http://www.everfall.com/paste/id.php?7s9uhpntb5l6
[17:34]<rwyfcygs>Don't know why it would be different on Win2kS though
[17:34]<svlnvnz>awilkins: yes this is the really fucking
[17:34]<rwyfcygs>Envirobugs suck
[17:35]<gjrvcxnne>sorry, had a contact fall out
[17:35]<rwyfcygs>Have you tried the code on your dev machine in release mode?
[17:35]<svlnvnz>no
[17:35]<gjrvcxnne>bahahahahah
[17:35]<svlnvnz>always debug
[17:35]<svlnvnz>could be?
[17:35]<gjrvcxnne>is your dev machine single processor?
[17:35]<svlnvnz>debug version on xp and 2003
[17:35]<svlnvnz>yes both single
[17:35]<svlnvnz>and p4 :)
[17:36]<svlnvnz>same directx version
[17:36]<gjrvcxnne>eh, different os, different behavior... i'd assume 2k3 does more to even our thread priority
[17:36]<svlnvnz>same dshow filter drivers
[17:36]<svlnvnz>i've the lock()
[17:36]<gjrvcxnne>are you using VS 2005?
[17:36]<svlnvnz>yes
[17:37]<gjrvcxnne>oh, interesting then.... vs2005 usually points out non-threadsafe code
[17:37]<svlnvnz>directshow is not supported
[17:37]<svlnvnz>i use the directshownet pinvoke from sourceforge.net lib
[17:38]<svlnvnz>directshownet.sf.net
[17:38]<gjrvcxnne>have you updated DX9 to the latest for both comps?
[17:38]<svlnvnz>yez
[17:38]<svlnvnz>days and days to verify the differences
[17:38]<svlnvnz>between comps
[17:38]<svlnvnz>no luck
[17:39]<svlnvnz>and for the first time google don't help
[17:39]<svlnvnz>first time in my live :|
[17:39]<svlnvnz>life?
[17:40]<gjrvcxnne>it's porbably the sf library you are using.... dunno really though
[17:42]<svlnvnz>could be but is't a simple collection of the com iterfaces of directshow and if they are wrong the crash should be on the com calls
[17:43]<svlnvnz>arg argh argh :-(
[17:43]<svlnvnz>Bitmap grab = new Bitmap(m_videoWidth, m_videoHeight, m_stride, System.Drawing.Imaging.PixelFormat.Format24bppRgb, pBuffer);
[17:43]<svlnvnz>i have other options to draw a buffer?
[17:44]<svlnvnz>i must create a bitmap or can draw with directly the buffer?
[17:44]<svlnvnz>i think the problem is the creation of this bitmap
[17:51]<hzzzd>4 awilkins : where a u nw?
[17:51]<rwyfcygs>Leeds
[17:51]<hzzzd>UK?
[17:51]<rwyfcygs>Yes
[17:51]<hzzzd>cool place
[17:52]<hzzzd>i`ve saw it at " Top gear")
[17:52]<rwyfcygs>Som nice places to eat.
[17:52]<rwyfcygs>"Top Gear" on the other hand, has very little resemblance to reality.
[17:52]<hzzzd>i now(very sad)
[17:53]<rwyfcygs>Ever since Fifth Gear took over the job of being boring consumer motor journalists, Mr Clarkson has had a fine time arsing around as much as he likes, and getting paid for it.
[17:53]<gjrvcxnne>stpeter: com interop can be tricky. It looks like something is either trying to lock the pixel data, when it has already been locked, or is trying to access the pixel data without it being locked... other than that we would have to have your whole project to say anything... and even if we did, i'm at work, so it's not like i'm going to be downloading your whole project here and debugging it lol







