void taPlugins::EnumeratePlugins() { String folder; for (int i = 0; i < plugin_folders.size; ++i) { => folder = plugin_folders.FastEl(i); QDir pluginsDir(folder); // enumerate all files in the folder, and try loading foreach (QString fileName, pluginsDir.entryList(QDir::Files)) { taPluginInst* pl = LoadPlugin(pluginsDir.absoluteFilePath(fileName)); if (pl) { plugins.Add(pl); } } } } (gdb)print folder $16 = {static con_0 = {static con_0 = , static con_1 = { static con_0 = , static con_1 = , static con_NULL = { static con_0 = , static con_1 = , static con_NULL = , mrep = 0x81c00e8}, mrep = 0x81c00d0}, static con_NULL = , mrep = 0x81c00b8}, static con_1 = , static con_NULL = , mrep = 0x40e77aa8} print &folder $17 = (taString *) 0xbfe12d28