View Single Post
Old 09-12-2009, 07:15 PM   #139
Antartica
Evangelist
Antartica ought to be getting tired of karma fortunes by now.Antartica ought to be getting tired of karma fortunes by now.Antartica ought to be getting tired of karma fortunes by now.Antartica ought to be getting tired of karma fortunes by now.Antartica ought to be getting tired of karma fortunes by now.Antartica ought to be getting tired of karma fortunes by now.Antartica ought to be getting tired of karma fortunes by now.Antartica ought to be getting tired of karma fortunes by now.Antartica ought to be getting tired of karma fortunes by now.Antartica ought to be getting tired of karma fortunes by now.Antartica ought to be getting tired of karma fortunes by now.
 
Antartica's Avatar
 
Posts: 423
Karma: 1517132
Join Date: Jun 2006
Location: Madrid, Spain
Device: quaderno, remarkable2, yotaphone2, prs950, iliad, onhandpc, newton
Quote:
Originally Posted by ericshliao View Post
I have a question:
In the example given by Antartica, there is a line "if((Epd=EpdInit(NULL))=NULL)", and before v1.9h I used this line wihout modification. For v1.9h, I got compilation error at that line, so I modified it as "if((Epd=EpdInit(NULL))==NULL)" and I put it in my test program.
Will that line affect using auto-refresh? Did it cause failing to disabe auto-refresh before?
The first one should get an "invalid L-value" compiler error, it's a mistake on my part. The modification you propose is correct; that was the intended line.

About that mistake making the program not working: I don't know how it passed the compilation for the erroneous line; in principle Epd shouldn't become NULL because the parenthesis, but as that is incorrect C, the compiler could have interpreted it as without parenthesis... and then Epd would become NULL, making program to fail to send commands to xepdmg. Nevertheless it's very strange that it managed to compile that erroneus line of code :-?

Quote:
I can't compile xepdmgrclient.c, so I copied all code of xepdmgrclient.c.
Can you paste here the errors you got?

Thanks for your testing
Antartica is offline   Reply With Quote