Welcome!

By registering with us, you'll be able to discuss, share and private message with other members of our community.

SignUp Now!
  • Guest, before posting your code please take these rules into consideration:
    • It is required to use our BBCode feature to display your code. While within the editor click < / > or >_ and place your code within the BB Code prompt. This helps others with finding a solution by making it easier to read and easier to copy.
    • You can also use markdown to share your code. When using markdown your code will be automatically converted to BBCode. For help with markdown check out the markdown guide.
    • Don't share a wall of code. All we want is the problem area, the code related to your issue.


    To learn more about how to use our BBCode feature, please click here.

    Thank you, Code Forum.

C# Same code = issue?

TableFlipGod

Bronze Coder
049CBC78-4906-4776-B2D9-6A7DA429A740.png011FC418-8E97-440B-869C-851D9B1DE6FB.png

So its the same code on a different program. I dont understand why it doesnt work. ( on the first image(the consoleapp) it shows the exact fps) but on the form(second image) it shows .5 .5 then 0 After that its done.
 
Console.clear() is commented out on the second one.
That's the first one I noticed, but maybe there's more differences.

Try copying & pasting both sets of code into a comparison tool online to auto-detect differences.

It could also be that some sort of dependency or module is missing in the second project...
 
Console.clear() is commented out on the second one.
That's the first one I noticed, but maybe there's more differences.

Try copying & pasting both sets of code into a comparison tool online to auto-detect differences.

It could also be that some sort of dependency or module is missing in the second project...
There is no difference, i commented out that line because when you run a forms application. It prints out to the vs output console, and there isnt a Clear(); function for it.
 
No, i have a class with a run function( the Main(); function)
Is there a difference between how you call that function between the console app and the forms application? Do you create the thread in a different way in the forms app?
Currently i moved it into the Form1.cs class but im getting off it now, have a migraine. But i get an error saying value isnt as expected or something ill post it tomarrow.
 
Is it possible that you could copy the code and paste it into the built-in code feature on CF? It would be easier for us to look over and give you a better idea on how to fix this issue.
 
I dont have access to my pc at this time
If the code is truly exactly the same and it's not working, then clearly there is an issue with a module / dependency, or another file. You will need to show us other attached files that may affect this, as well as anything imported in for the working version. Without this information, there is nothing CF can do to help because if the code truly is identical, then it's definitely something else.
 
If the code is truly exactly the same and it's not working, then clearly there is an issue with a module / dependency, or another file. You will need to show us other attached files that may affect this, as well as anything imported in for the working version. Without this information, there is nothing CF can do to help because if the code truly is identical, then it's definitely something else.
Ok so what can I do?
 

New Threads

Latest posts

Buy us a coffee!

Back
Top Bottom