Welcome, Guest. Please login or register. Did you miss your activation email?

Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - taliebram

Pages: [1]
1
General / Re: Code crashes upon using font.loadFromFile
« on: June 25, 2021, 01:50:59 pm »
I'm fairly new to c++ and MVS, but I assume I am if these are enabled:



2
General / Re: Code crashes upon using font.loadFromFile
« on: June 24, 2021, 09:36:47 am »
Yes, I even redownloaded it to make sure (2017 MVS 64 bit version), but still did not fix the problem. However, I did bypass it by using the loadfromMemory, and apparently the setString() does work with c strings, so I made it work.

Doesn't seem like a long term solution, but my relatively simple program is almost finished so I am also less inclined to stop looking for a solution.

3
General / Re: Code crashes upon using font.loadFromFile
« on: June 23, 2021, 11:51:11 am »
I do not know what the problem is, but for now I bypassed the loadingfromfile, by loading in form memory. This works fine, but now when I pass a std::string to text.setString() the program crashes. I also tried converting a std::string to a sf::string, which also resulted in a crash. It does not crash when it gets char arrays.

4
General / Re: Code crashes upon using font.loadFromFile
« on: June 23, 2021, 09:21:16 am »
Oh that was a mistype from me, but I already tried about all input configurations (I changed the screenshot).

 The code also just instantly crashes, and you would expect the code just to continue, it does not matter what kind of input I give the font.loadFromFile() function. I did do some reading and everyone who had the same problem could fix it by using the correct dependencies, but I am already doing that (I think, see first screenshot).

So I do not know what to do, anybody who can help me?

5
General / Code crashes upon using font.loadFromFile
« on: June 22, 2021, 03:20:10 pm »
Hello,


I'm currently working on a project, and until now I have not had any issues with the SFML library. I am currently trying to add some text to my window, but loading in any font results in an instant crash. I have double-checked the linking of the libraries to make sure that I am using -d as I am in debug mode.

I have also tried adding the full path, but that also results in a crash. Using the sf::Text without loading in any font just results in a single pixel being drawn.

I have also tried using different fonts, but that also did not work.

I can add a code snippet, but I have tried it in a small test script where it also fails. I am using the ImGUI::SFML combination, but I don't see how that could be of any influence. I have tried everything I could find online, but I can't find any solution.


Anybody who could help me, I have been stuck for almost a whole day on this now?

This is the error I get when running it in debug mode:
Quote
Unhandled exception at 0x00007FFEC332A1CB (ucrtbased.dll) in OnlineSpikes.exe: 0xC0000005: Access violation reading location 0xFFFFFFFFFFFFFFFF.

I am using Visual Studio 2017. and using SFML 2.5.1



Below are the library dependencies I have:


6
General / Re: Bouncing ball simulation
« on: February 02, 2021, 05:52:15 pm »



This is a very interesting video, which goes a bit further than you were considering, but it starts very simple, so if you only watch the first half you should get a better understanding about the physics/interaction.

7
I'm working on a project for my master and i get the error: C:\SFML-2.5.1\include\SFML/System/String.hpp(527): warning : field of class type without a DLL interface used in a class with a DLL interface . I get this warning around 50 times, however the program still works, should i be worried about this? If yes how can I fix it? If no how can I turn this warning of?

Background info:
- Windows 10
- Program also used CUDA 9.0
- using MVS 15

Pages: [1]