Xojo Conferences

Platforms to show: All Mac Windows Linux Cross-Platform

You find this example project in your Plugins Download as a Xojo project file within the examples folder: /Util/loadtester
This example is the version from Sun, 17th Mar 2012.
Project "loadtester.rbp"
Class App Inherits ConsoleApplication
Const LibDL = ""
EventHandler Function Run(args() as String) As Integer // For testing why a plugin does not load // compile for Linux or Mac OS X // run in terminal with path to plugin shared library from your compiled application // pick path from arguments dim testpath as string = args(1) print "Path: "+testpath // declare for loading shared library declare function dlopen lib LibDL (path as cstring, mode as integer) as ptr declare function dlerror lib LibDL () as CString // load lib dim p as ptr = dlopen(testpath, 2) // check for error and print message if p <> nil then print "OK" end if print dlerror() End EventHandler
End Class
End Project

Feedback, Comments & Corrections

The items on this page are in the following plugins: MBS Util Plugin.

MBS Xojo Plugins