FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Access Violation error

 
Post new topic   Reply to topic     Forum Index -> DFL
View previous topic :: View next topic  
Author Message
stjepan



Joined: 11 Apr 2005
Posts: 22
Location: Croatia

PostPosted: Fri Apr 15, 2005 1:06 pm    Post subject: Access Violation error Reply with quote

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
View user's profile Send private message
stjepan



Joined: 11 Apr 2005
Posts: 22
Location: Croatia

PostPosted: Fri Apr 15, 2005 1:08 pm    Post subject: Reply with quote

You can see screenshot here:

_________________
I speak a little English. I am beginner in programming. I know C++, C# and D.
Back to top
View user's profile Send private message
stjepan



Joined: 11 Apr 2005
Posts: 22
Location: Croatia

PostPosted: Fri Apr 15, 2005 2:19 pm    Post subject: Reply with quote

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
View user's profile Send private message
stjepan



Joined: 11 Apr 2005
Posts: 22
Location: Croatia

PostPosted: Sun Apr 17, 2005 12:53 am    Post subject: Reply with quote

Nobody has problem like this?!
Please help Sad
_________________
I speak a little English. I am beginner in programming. I know C++, C# and D.
Back to top
View user's profile Send private message
stjepan



Joined: 11 Apr 2005
Posts: 22
Location: Croatia

PostPosted: Sun Apr 17, 2005 3:27 am    Post subject: Reply with quote

There is also access violation when pressing any key.
Sad
new Pen(Color(0, 0, 255)); // doesn't work Sad
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
View user's profile Send private message
Chris Miller



Joined: 27 Mar 2004
Posts: 514
Location: The Internet

PostPosted: Sun Apr 17, 2005 4:52 pm    Post subject: Reply with quote

Here, http://www.dprogramming.com/rich.exe

I don't see your screenshot.

I ran your tests and they all work fine here. Confused
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
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic     Forum Index -> DFL All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group