Caves Travel Diving Graphics Mizar Texts Cuisine Lemkov Contact Map RSS Polski
Trybiks' Dive Texts Intraweb "Device not supported" in Intraweb YAC Software
  Back

List

Charsets

Charts

DBExpress

Delphi

HTML

Intraweb

MSTest

PHP

Programming

R

Rhino Mocks

Software

Testing

UI Testing

VB.NET

VCL

WPF

"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

Add a comment (fields with an asterisk are required)
Name / nick *
Mail (will remain hidden) *
Your website
Comment (no tags) *
Enter the text displayed below *
 

Top

Tags

Intraweb

Delphi


Related pages

Delphi interfaces... again

Checking "Dangling" Event Handlers in Delphi Forms

Drag-n-drop files onto the application window

Intraweb and MaxConnections

A Case for FreeAndNIL

Intraweb as an Apache DSO module

Automated GUI Testing

Rounding and precision on the 8087 FPU

SessionTimeout in Intraweb

Using TChart with Intraweb

Unknown driver: MySQL

TIdMessage's CharSet

Software Guarantees

Automated Testing of Window Forms

TChart - Missing Labels in Axes

Memory Leaks and Connection Explosions in DBExpress

Controlling Conditional Defines and Compilation Switches

Detecting Memory Leaks with DUnit

last_insert_id() and DBExpress

Registering Extensions

DBExpress and Thread Safety

Forms as Frames

Checking Dangling Pointers vs. the New Memory Manager

</form> ... <form>

Accessing Protected Members

Objects, interfaces, and memory management in Delphi