IRC Networks
Irc Logs Stats
Start date: 2007-09-27 02:48:27
Last update: 2008-04-02 18:00:08
Channels: 41
Logged Lines: 6229042
Size: 1806.37 MB
Powered by
Channel Info
Network: freenodeChannel: #csharp |
Search in www.irclog.org
Log from #csharp at freenode 2006-07-20
Pages: 1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
Next >
[00:00]<gjrvcxnne>m0`: if it's disecting the value, then it would be modifying memory it's not supposed to
[00:00]<gjrvcxnne>although...
[00:00]<gjrvcxnne>it sounds so stupid when i say that to myself
[00:00]<d0`>Attempted to read or write protected memory. This is often an indication that other memory is corrupt.
[00:00]<d0`>bam
[00:00]<gjrvcxnne>damn... wtf...
[00:00]<d0`> uint hotdog = 515;
[00:00]<d0`> System.Windows.Forms.MessageBox.Show(HDDevice.hdGetErrorString(hotdog));
[00:00]<rnmgxjsv>did you declare as ansi
[00:01]<d0`>let me do what RedGhost sais
[00:01]<gjrvcxnne>sure, could be the return val
[00:01]<d0`>[DllImport("hd", EntryPoint = "#12",CharSet="Ansi")]
[00:01]<rnmgxjsv>o:
[00:01]<rnmgxjsv>CharSet=Ansi
[00:01]<rnmgxjsv>isnt it an enum
[00:01]<d0`>hmm how do you declare as ansi?
[00:01]<d0`>ah ok
[00:02]<rnmgxjsv>CharSet=CharSet.Ansi
[00:02]<rnmgxjsv>should be it
[00:02]<d0`>yea it should be Cahrset :)
[00:03]<d0`>Attempted to read or write protected memory. This is often an indication that other memory is corrupt.
[00:03]<gjrvcxnne>lol
[00:03]<rnmgxjsv>o:
[00:03]<rnmgxjsv>well anyways, it should be declared as ansi anyways :P
[00:03]<d0`>HDDevice.hdGetErrorString(515) :) = r/w protected mem
[00:03]<gjrvcxnne>m0`: can you debug the dll you are using?
[00:03]<d0`>hmm
[00:03]<d0`>how>?
[00:04]<rnmgxjsv>oh
[00:04]<gjrvcxnne>do you have the source code?
[00:04]<rnmgxjsv>r/w protected
[00:04]<d0`>no
[00:04]<d0`>its 30K
[00:04]<rnmgxjsv>VirtualProtect( )
[00:04]<d0`>Virtual? Where do I use that?
[00:04]<rnmgxjsv>its a win32 api
[00:04]<rnmgxjsv>in kernel32.dll
[00:04]<d0`>hmm
[00:04]<rnmgxjsv>you can remove the protection
[00:04]<rnmgxjsv>allow PAGE_READWRITE_EXECUTE
[00:04]<rnmgxjsv>maybe the dll requires some initializer
[00:04]<d0`>"Attempted to read or write protected memory. This is often an indication that other memory is corrupt." But that is mainly saying I have no 515 there
[00:04]<rnmgxjsv>and has it protected
[00:05]<d0`>See how difficult Hex is :)
[00:05]<gjrvcxnne>m0`: this has NOTHING to do with hex
[00:05]<d0`>yes
[00:05]<d0`>0x515 works :(
[00:05]<gjrvcxnne>m0`: get that out of your head RIGHT NOW
[00:05]<gjrvcxnne>what does it return tho
[00:05]<d0`>203 works
[00:05]<gjrvcxnne>nothing?
[00:06]<d0`>yea nothing for now
[00:06]<gjrvcxnne>because there is no error code 1301 (0x515)
[00:06]<gjrvcxnne>there IS a 515 (0x203)
[00:06]<d0`>jhmm
[00:06]<d0`>your right
[00:06]<gjrvcxnne>honestly, it sounds like the dll is bugged
[00:06]<d0`>yea
[00:07]<d0`>we alla greed that since 3 weeks :)
[00:07]<gjrvcxnne>i would file it as a bug with the developers of that api...
[00:07]<d0`>What should I tell them?
[00:07]<d0`>heh
[00:07]<gjrvcxnne>what you could do, is since it is just a function that returns the error codes, is make your own fucntions to do that
[00:07]<[dam]>don't tell.. broke legs and blow up cars..
[00:07]<d0`>GoatCheez thats alot of error strings
[00:08]<gjrvcxnne>tell them the function throws an exception when the error HD_EXCEEDED_MAX_VELOCITY is passed in as an argument
[00:08]<d0`>Or I will just not display the error strings
[00:08]<d0`>GoatCheez: in C++ it doesn't throw an exception
[00:08]<gjrvcxnne>m0`: bah, make a macro then to just spit out the def name instead of a description
[00:08]<d0`>C++ it shows fine, and correct
[00:08]<gjrvcxnne>m0`: C++ doesn't throw exceptions... the error stilll occurs, but it just doesn't say anything
[00:08]<d0`>yes it does
[00:09]<d0`>it says now
[00:09]<d0`>Error Code: 203
[00:09]<d0`>Device warning: Device exceeded the maximuym velocity limit: <- Description
[00:09]<d0`>^^- C++
[00:09]<gjrvcxnne>. the error stilll occurs, but it just doesn't say anything
[00:09]<gjrvcxnne>i didn't say that the fucntion wouldn't return
[00:10]<gjrvcxnne>since .net checks bounds and such, it throws an exception when there is a violation
[00:10]<d0`>hdGetErrorString(0x203) = "Device warning: Device exceeded the maximuym velocity limit:"
[00:10]<gjrvcxnne>C++ won't do that, so the program continues to try and execute
[00:10]<d0`>hmm
[00:11]<d0`>I can't tell them it doesn';t work where in C++ it clearly shows the correct error
[00:11]<gjrvcxnne>m0`: tell them to run bounds checker and call that function
[00:11]<gjrvcxnne>they will see that there was an unauthorized memory access
[00:11]<pz2>maximum velocity limit?
[00:12]<sdnffdxdlld>fbr ... like the device was moving too fast
[00:12]<pz2>that really seems odd for a standard error
[00:13]<pz2>did I drop the mouse out the window? overclock the cdrom?
[00:13]<sdnffdxdlld>fbr ... if you dont know what the device is how can you say its an odd error :P
[00:14]<gjrvcxnne>m0`: try calling in C# hdGetErrorString(0x0302) and tell me what it gives you
[00:14]<rxrcr>oh awesome. I love it when I find Event Handler misuses and bugs
[00:14]<gjrvcxnne>then try 0x03020000 and 0x02030000
[00:14]<dbq>hi, i'm trying to use file i/o, and i get this error, on this line:
[00:15]<dbq>File blah = new File("blah.dat");
[00:15]<dbq>Error 6 Cannot declare variable of static type 'System.IO.File' D:\gdesktop\WordProperties\MetaEngine\Cache.cs 21 13 MetaEngine
[00:15]<gjrvcxnne>path
[00:15]<gjrvcxnne>oh
[00:15]<gjrvcxnne>lol
[00:15]<2frgcd>hey guys







