THE LATEST

Error Incompatible type TWideStringList under XCode

If your trying to use a TStringList in your IOS Xe2 Firemonkey application you will probably encounter the following errors when compiling under Xcode.

Show Plain Text
Text code
  1. Error: Incompatible types: got "TStringList" expected "TWideStringList"
  2.  
Show Plain Text
Text code
  1. Error: Incompatible type for arg no. 4: Got "TWideStringList", expected "TStrings"

The problem relates to the TStringList defaulting to a TWideStringList rather that the IOS compatible version, to fix this use the Classes class as follows :-

Show Plain Text
Delphi code
  1. var
  2.    lines: Classes.TStringList;
  3. ...
  4.    lines := Classes.TStringList.Create();
  5. ...

RECENT ARTICLES

dynamically create a Firemonkey drop shadow

Just a quick code example of how to dynamically create a drop shadow effect, pretty simple stuff but with the lack of documentation examples are rare so it seems. This example adds a drop shadow to a TMemo...

embarcadero dbexpress SQLConnection DriverName access violation DbxCommon150.bpl

I struck a problem trying to use the dbExpress TSQLConnection components on an upgraded BDS2006 application where the program would compile and link fine but when you ran the application it would fail with the following access violation error...

Getting embarcadero dbexpress mysql working - DBX Error: Driver not initialized

Sometimes the simple things are harder than you expected and dbexpress probably comes under that category, it was less express than I had expected but once you figure things out it does work. Some of the problems were my fault while others took time due to the obscur nature of the errors returned by XE and XE2...

Java console error could not initialize class sun.awt.X11GraphicsEnvironment

Well this is another sanity post to save me next time I need to figure this problem out again, the issue is running a applet on a server in a Headless X11 environment. There are java program settings to force checking that a X11 display is present and similar command line options do the same, however this doesn't help when trying to run on your server console terminal in a Headless environment...

Filed under: Java  Tags: Applet

Macbook pro external monitor screen blackout flicker

I recently updated my work machine to a Apple macbook pro and have been using the laptop LCD along with my external monitor which is a Samsung 204B via a mini port to DVI connector. Resulting in the not so popular screen blank out or flicker which occurs at a random interval, no rhyme or reason...

Filed under: Apple  Tags: Hardware, Os X