✅ [SOLVED] app hangs during JSON serialization

Whenever the program gets to the part where it has to read or write to file, it succeeds but then doesn't continue farther
9 Replies
qqdev
qqdev2w ago
Did you debug it?
NilT_PL#9208
NilT_PL#9208OP2w ago
nothing stood out to me, but I'm new to c# development
qqdev
qqdev2w ago
Where exactly is it hanging?
NilT_PL#9208
NilT_PL#9208OP2w ago
at CzyZapisac(). ZapiszPytaniaDoPliku() finishes it's job, Writes the line to the console, and nothing else happens It's supposed to go back to the while(true) loop in StworzPytanie() i got it the while(true) loop in CzyZapisac() was running infinitely it was also completely unnecessary
qqdev
qqdev2w ago
Nice!
NilT_PL#9208
NilT_PL#9208OP2w ago
!solved
qqdev
qqdev2w ago
Why was it running infinitely tho?
NilT_PL#9208
NilT_PL#9208OP2w ago
no idea, a break; instruction in the switch statement should have closed it, but wouldn't
MODiX
MODiX2w ago
If you have no further questions, please use /close to mark the forum thread as answered

Did you find this page helpful?