Welcome,
Guest
. Please
login
or
register
. Did you miss your
activation email?
French forum
Home
Help
Search
Login
Register
SFML community forums
»
Bindings - other languages
»
DotNet
»
Exceptions when using Transform.GetInverse()
Print
Pages: [
1
]
Author
Topic: Exceptions when using Transform.GetInverse() (Read 2969 times)
0 Members and 1 Guest are viewing this topic.
Wibbs
Newbie
Posts: 40
Exceptions when using Transform.GetInverse()
«
on:
June 26, 2012, 05:22:21 pm »
Hey,
I'm having a few problems using the Transform.GetInverse() function.
Using the following program:
using
System
;
using
SFML.Audio
;
using
SFML.Window
;
using
SFML.Graphics
;
namespace
SFMLGraphicsModule
{
class
Program
{
static
void
Main
(
string
[
]
args
)
{
Transform transform
=
new
Transform
(
)
;
transform
.
Rotate
(
10
,
30
,
30
)
;
transform
.
Translate
(
49
,
59
)
;
Transform result
=
transform
.
GetInverse
(
)
;
}
}
}
I get an unhandled AccessViolationException when attempting to use the function. Am I doing something wrong here?
Thanks in advance,
Wibbs
Logged
Laurent
Administrator
Hero Member
Posts: 32498
Re: Exceptions when using Transform.GetInverse()
«
Reply #1 on:
June 26, 2012, 09:11:13 pm »
This code works for me. Make sure that your CSFML DLLs are not outdated.
Logged
Laurent Gomila - SFML developer
Radnen
Newbie
Posts: 17
Re: Exceptions when using Transform.GetInverse()
«
Reply #2 on:
August 28, 2012, 09:35:10 am »
I can confirm that this code does not work for me either as of August 28th 2012.
I'm using the 2.0 RC that has been hosted on the site (and its csfml files), I believe there was something broken in that build (that is perhaps fixed by now).
Logged
Print
Pages: [
1
]
SFML community forums
»
Bindings - other languages
»
DotNet
»
Exceptions when using Transform.GetInverse()