|
"Device not supported" in Intraweb |
|
One of these days I was making some changes to my YAC Data On-Line
data analysis application (that is written in Delphi + Intraweb a.k.a. VCL for the Web).
To my surprise, a perfectly working program, after some seemingly innocent changes,
started raising the "Device not supported" exception on startup...
After several hours(!) of looking for the problem,
it turned out that this was caused by one missing instruction in a new if clause.
The application, on startup, looks at parameters passed in the link to the program,
and, depending on these parameters, shows one of several forms to the user
(login, list of surveys, a pre-defined report, etc.).
I changed the logic behind this behavior and after the change,
there were several code paths that resulted in the application never calling the TIWForm.SetAsMainForm procedure
(SetAsMainForm should be called for the form that is to be displayed as the first one to the user;
you may call SetAsMainForm several times for different forms - the last one that receives this call will be shown).
A stupid and simple error that should've taken at most 2 minutes to fix,
but the totally misleading message had me fooled for quite a while.
So, I hope this short info will help anybody that encounters this problem.
Top
|
Comments |
#1
controlr
wrote on
2011-03-22 14:17:03
|
You just saved me 20 hours! Great and important post, thanks. Mike
|
#2
Bruno Portella Simão
wrote on
2011-07-04 20:58:47
|
Thanks, you saved me a lot of hours! Bruno
|
#3
Nappi
wrote on
2012-04-13 02:41:28
|
Very good. Very tanks for you.
|
#4
Rick
wrote on
2012-09-29 22:30:56
|
You just likely saved me many hours of frustration. THANKS!!
|
#5
Alex
wrote on
2013-01-25 13:28:32
|
big thanks!!
|
|
Top |
|
Top
|