Questions tagged [oxygene]

Oxygene is a general-purpose object-oriented programming language based on Pascal. Oxygene can be compiled to the Microsoft Common Language Runtime (.NET and the Mono), Java & Android's Dalvik, as well as the Objective-C runtime.

Oxygene is a general-purpose object-oriented programming language based on Pascal. Oxygene can be compiled to the Microsoft Common Language Runtime (.NET and the Mono), Java & Android's Dalvik, as well as the Objective-C runtime.

106 questions
2
votes
2 answers

Why .net program on linux under mono fails to run?

I ran my Delphi-prism (.NET) program on Linux under Mono. It ran for awhile and crashed with the following error message on the terminal. But the same program runs perfectly fine on Windows 7 Can anyone tell me why? Unhandled Exception:…
ThN
  • 3,235
  • 3
  • 57
  • 115
2
votes
2 answers

Is it normal for a .NET program to be using 50% of the CPU on an average all the time?

I was just test driving my program and was looking at its process' memory usage and others. Then, I noticed my .NET program was about 50% of CPU almost always every once in awhile it would jump to 98% CPU. If you run it long enough, the program lack…
ThN
  • 3,235
  • 3
  • 57
  • 115
2
votes
1 answer

Replacement for TList in Delphi Prism.

I am migrating an application written in Delphi 2007 to Delphi Prism, which is the best option to replace the TList class? Thanks in advance. Bye.
Salvador
  • 16,132
  • 33
  • 143
  • 245
2
votes
1 answer

How to preserve ViewState when changing master page of a content page?

I have created two master pages for my website. one for normal use, and another for print. On my normal master page, I have a button which sets Session['P'] to '1'. On the print master page, I have another button which sets Session['P'] to '0'. And…
iMan Biglari
  • 4,674
  • 1
  • 38
  • 83
2
votes
1 answer

Graphics.DrawLines : Parameter is not valid

For this problem, I did comb through Stackoverflow similar questions for an answer. Although a lot of them were helpful, they didn't solve my problem. My program draws polygon on a winform using graphics.DrawLines method as…
ThN
  • 3,235
  • 3
  • 57
  • 115
2
votes
3 answers

How to enforce single instance of an application under mono?

So, I am able to enforce single instance of my application on Windows as follows. [STAThread] class method Program.Main(args: array of string); begin var mutex := new Mutex(true, "{8F6F0AC4-B9A1-45fd-A8CF-72F04E6BDE8F}"); if…
ThN
  • 3,235
  • 3
  • 57
  • 115
2
votes
1 answer

Are there any .NET replacement for timeBeginPeriod and timeEndPeriod methods?

I've been working on a program that communicates on SerialPort and having problem with it. It's communication is below 50% or less. If not, it times out most of the time. From my research into this issue, I found out that global or system timer…
ThN
  • 3,235
  • 3
  • 57
  • 115
2
votes
1 answer

Why is Dialogresult nil?

This never happened to me before. I do have System.Windows.Forms namespace under uses clause and I am able to use DialogResult's properties. Look at the code below. It's where the problem is in my program. if (thewinform.ShowDialog=DialogResult.OK)…
ThN
  • 3,235
  • 3
  • 57
  • 115
1
vote
1 answer

Exposing functionality via Prism & Com Interop

How does one go about exposing a class written in Prism via COM Interop? For example, given the following interface: TYPE IFoo = public interface property bar: string; read; end; FooImpl = class( IFoo ) private function GetBar :…
skamradt
  • 15,366
  • 2
  • 36
  • 53
1
vote
0 answers

Streaming oxygene saturation data from apple watch

I am currently developing an application in order to stream data like heart rate, active energy burned, distance walking and oxygen saturation from the Apple Watch. For this, I have followed all the steps to build a workout session and checked all…
Farmer
  • 11
  • 1
1
vote
3 answers

Delphi Prism / VS 2008: Switching from code to design with one key?

I've used several Versions of the Delphi IDE for many years. When I'm using Delphi Prism, I have to deal with Visual Studio - in my case especially VS 2008. One of the most annoying things to me is that I have to right-click on my form to switch to…
dajood
  • 3,758
  • 9
  • 46
  • 68
1
vote
1 answer

Using Devexpress ASP.NET controls with Delphi Prism

Has anybody had any hands-on experience using Devexpress ASP.NET components with Delphi Prism? At the moment I'm specifically interested in using their "Calendar and Scheduling for ASP.NET" suite. Sharing your pros/cons, successes/failures would be…
rhazell
  • 285
  • 1
  • 3
  • 5
1
vote
1 answer

Microsoft.IdentityModel.Logging: Strong name signature could not be verified

I'm trying to use the Microsoft JWT Library. I have downloaded and compiled the source code, but when I try to run it, I have the following error: Could not load file or assembly 'Microsoft.IdentityModel.Logging, Version=1.0.0.0, Culture=neutral,…
Patrick8639
  • 31
  • 1
  • 7
1
vote
1 answer

.NET equivalent to Delphi's "DebugHook" variable to test for presence of debugger

When a program is running under the control of the debugger in the Delphi IDE, it is possible to detect this because the variable "DebugHook" is set to a value <> 0. Is there an equally easy way to check for the debugger when debugging a .NET…
Olaf Hess
  • 1,453
  • 11
  • 18
1
vote
1 answer

Include Unmanaged Type attribute in COM interface

I'm writing COM interfaces in Oxygene for a COM callable wrapper class. I can't figure out how to marshall a System.Decimal property as currency (native COM type) since the Oxygene compiler won't allow the syntax that worked for Delphi.NET. Here's a…
Pascal Fan
  • 35
  • 4