Very strange text mode font problem

Question about which tools to use, bugs, the best way to implement a function, etc should go here. Don't forget to see if your question is answered in the wiki first! When in doubt post here.
Post Reply
earlz

Very strange text mode font problem

Post by earlz »

for some very strange after adding a master frame buffer(to prevent flicker) my font is screwed up until i reset the font 6-10 times and sometimes it is like only space is messed up or only a few characters

the wierd part is it works fine in virtual pc
could anyone tell me why this happens or even if they have experienced it before
btw
even writing straight to video memory is messed up



edit:
Actually it is a VBE extension problem, code works fine when i comment it out
maybe post a bug
User avatar
Candy
Member
Member
Posts: 3882
Joined: Tue Oct 17, 2006 11:33 pm
Location: Eindhoven

Re:Very strange text mode font problem

Post by Candy »

Jordan3 wrote: for some very strange after adding a master frame buffer(to prevent flicker) my font is screwed up until i reset the font 6-10 times and sometimes it is like only space is messed up or only a few characters

the wierd part is it works fine in virtual pc
could anyone tell me why this happens or even if they have experienced it before
btw
even writing straight to video memory is messed up
Sounds like you store your font in some place that is being overwritten by something else. Specific ideas are that you're overrunning the font buffer because it's allocated too small, you're allocating it on the stack and return a pointer (and the stack is going to be overwritten), you got a pointer error or unchecked pointer somewhere that accidentally overwrites this (due to chance, is still pretty likely if you forgot to initialize a pointer). Last option could be an error in your memory manager, but I hope not.
Post Reply