---
product: Chilkat
product_version: 11.7.0
language: b4x
language_label: B4X
document: language guide
---
> Chilkat 11.7.0 · language=b4x · this file: `https://www.chilkatsoft.com/ai-docs/v/11.7.0/b4x/guide.md`
> Class pages: `https://www.chilkatsoft.com/ai-docs/v/11.7.0/b4x/classes/<Class>.md`

# Chilkat for B4X — language guide — v11.7.0

> This guide has only generated sections so far. The class pages carry the per-member detail.

## Object creation, unlocking and error handling

**Declare / Initialize / Dispose**

```visual-basic
Sub Process_Globals
    Private obj As ChilkatGlobal
End Sub

' Call Initialize before first use -- typically in AppStart (B4J)
' or Activity_Create (B4A):
obj.Initialize                ' classes without events
obj.Initialize("evt")        ' classes with events: "evt" becomes the
                              ' prefix of event Subs such as evt_PercentDone
```

`Initialize / Initialize (EventName As String)`

Creates the underlying native Chilkat object. Classes that support events take an `EventName` argument: it becomes the prefix of the event Subs (`<EventName>_AbortCheck`, `<EventName>_PercentDone`, `<EventName>_ProgressInfo`); classes without events take no arguments. The native Chilkat library loads automatically on the first Initialize — from the APK on Android, or extracted from ChilkatB4J.jar on Windows/Linux/macOS.

`IsInitialized As Boolean`

`True` if `Initialize` has been called and the native object exists.

`Dispose`

Explicitly frees the underlying native object. Calling `Dispose` is optional — every ChilkatGlobal is also freed automatically when garbage-collected — but is recommended for long-lived objects holding sockets, sessions, or large buffers. A disposed object can be re-Initialized.

Literals in B4X: true is `True`, false is `False`, null/none is `Null`.

## Classes

[Class index for B4X](https://www.chilkatsoft.com/ai-docs/v/11.7.0/b4x/index.md)
