View previous topic :: View next topic |
Author |
Message |
stjepan
Joined: 11 Apr 2005 Posts: 22 Location: Croatia
|
Posted: Fri Apr 15, 2005 1:06 pm Post subject: Access Violation error |
|
|
When I am using Color struct, there is access violation error.
Vathix, please send me compiled (.exe) example RichTextBox. I'll try run it. _________________ I speak a little English. I am beginner in programming. I know C++, C# and D. |
|
Back to top |
|
|
stjepan
Joined: 11 Apr 2005 Posts: 22 Location: Croatia
|
Posted: Fri Apr 15, 2005 1:08 pm Post subject: |
|
|
You can see screenshot here:
_________________ I speak a little English. I am beginner in programming. I know C++, C# and D. |
|
Back to top |
|
|
stjepan
Joined: 11 Apr 2005 Posts: 22 Location: Croatia
|
Posted: Fri Apr 15, 2005 2:19 pm Post subject: |
|
|
WOW!
Look at this: Code: | Color(0, 0, 255); // OK
Color c = Color(0, 0, 255); // Access Violation
Color col = Color(255); // Access Violation
Color(250, 100, 253, 112); // OK |
_________________ I speak a little English. I am beginner in programming. I know C++, C# and D. |
|
Back to top |
|
|
stjepan
Joined: 11 Apr 2005 Posts: 22 Location: Croatia
|
Posted: Sun Apr 17, 2005 12:53 am Post subject: |
|
|
Nobody has problem like this?!
Please help _________________ I speak a little English. I am beginner in programming. I know C++, C# and D. |
|
Back to top |
|
|
stjepan
Joined: 11 Apr 2005 Posts: 22 Location: Croatia
|
Posted: Sun Apr 17, 2005 3:27 am Post subject: |
|
|
There is also access violation when pressing any key.
new Pen(Color(0, 0, 255)); // doesn't work
Color(0, 0, 255); // works fine
Color c = Color(0, 0, 255); // doesn't work _________________ I speak a little English. I am beginner in programming. I know C++, C# and D. |
|
Back to top |
|
|
Chris Miller
Joined: 27 Mar 2004 Posts: 514 Location: The Internet
|
Posted: Sun Apr 17, 2005 4:52 pm Post subject: |
|
|
Here, http://www.dprogramming.com/rich.exe
I don't see your screenshot.
I ran your tests and they all work fine here.
Have you tried these tests in a new source file, without the rest of your code? Perhaps your surrounding code is causing problems with the compiler.
Sorry that I can't help more. |
|
Back to top |
|
|
|